BackOffice


Click here for a complete list of operations.

PostPurchase

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /puckanetennisclub/app/BackOffice.asmx HTTP/1.1
Host: lightingsports.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.joycesoftware.com/PostPurchase"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <PostPurchase xmlns="http://www.joycesoftware.com">
      <Header>
        <Id>int</Id>
        <PurchaseGuid>string</PurchaseGuid>
        <Type>int</Type>
        <SupplierGUID>string</SupplierGUID>
        <EmployeeGUID>string</EmployeeGUID>
        <CurrencyRate>decimal</CurrencyRate>
        <PurchaseDate>dateTime</PurchaseDate>
        <PaidDate>dateTime</PaidDate>
        <TotalIncVat>decimal</TotalIncVat>
        <TotalExcVat>decimal</TotalExcVat>
        <PaymentTotal>decimal</PaymentTotal>
        <ChangeGiven>decimal</ChangeGiven>
        <SupplierNotes>string</SupplierNotes>
        <CreatedOnUtc>dateTime</CreatedOnUtc>
        <CurrentStatus>int</CurrentStatus>
        <LastStatus>int</LastStatus>
        <PurchaseNumber>string</PurchaseNumber>
        <SupplierReference>string</SupplierReference>
        <SupplierInvoiceNumber>string</SupplierInvoiceNumber>
        <InvoiceHour>decimal</InvoiceHour>
        <InvoiceMinute>decimal</InvoiceMinute>
        <PaymentDueDate>dateTime</PaymentDueDate>
        <ChequeNumber>string</ChequeNumber>
        <Custom1>string</Custom1>
        <Custom2>string</Custom2>
        <Custom3>string</Custom3>
        <Custom4>string</Custom4>
        <Custom5>string</Custom5>
        <StoreCode>string</StoreCode>
        <Exported>string</Exported>
        <CheckedBy>string</CheckedBy>
        <OrderDate>dateTime</OrderDate>
        <IsPurchaseOrder>string</IsPurchaseOrder>
        <ActualTotalIncVAT>decimal</ActualTotalIncVAT>
        <TotalDiscount>decimal</TotalDiscount>
        <Lines>
          <PurchaseLine>
            <Id>int</Id>
            <PurchaseGuid>string</PurchaseGuid>
            <LineGuid>string</LineGuid>
            <LineType>int</LineType>
            <ProductGUID>string</ProductGUID>
            <ProductDescription>string</ProductDescription>
            <Sku>string</Sku>
            <TaxCategoryId>int</TaxCategoryId>
            <TaxRate>decimal</TaxRate>
            <UnitPrice>decimal</UnitPrice>
            <UnitCost>decimal</UnitCost>
            <Quantity>decimal</Quantity>
            <TotalPriceInc>decimal</TotalPriceInc>
            <TotalPriceExc>decimal</TotalPriceExc>
            <LineMessage1>string</LineMessage1>
            <LineMessage2>string</LineMessage2>
            <LineMessage3>string</LineMessage3>
            <LineMessage4>string</LineMessage4>
            <LineMessage5>string</LineMessage5>
            <CreatedOnUtc>dateTime</CreatedOnUtc>
            <PackSize>decimal</PackSize>
            <PackCost>decimal</PackCost>
            <BatchNumber>string</BatchNumber>
            <ExpiryDate>dateTime</ExpiryDate>
            <ProductType>decimal</ProductType>
            <OrderQuantity>decimal</OrderQuantity>
            <TotalDiscount>decimal</TotalDiscount>
            <SpecialOfferGUID>string</SpecialOfferGUID>
          </PurchaseLine>
          <PurchaseLine>
            <Id>int</Id>
            <PurchaseGuid>string</PurchaseGuid>
            <LineGuid>string</LineGuid>
            <LineType>int</LineType>
            <ProductGUID>string</ProductGUID>
            <ProductDescription>string</ProductDescription>
            <Sku>string</Sku>
            <TaxCategoryId>int</TaxCategoryId>
            <TaxRate>decimal</TaxRate>
            <UnitPrice>decimal</UnitPrice>
            <UnitCost>decimal</UnitCost>
            <Quantity>decimal</Quantity>
            <TotalPriceInc>decimal</TotalPriceInc>
            <TotalPriceExc>decimal</TotalPriceExc>
            <LineMessage1>string</LineMessage1>
            <LineMessage2>string</LineMessage2>
            <LineMessage3>string</LineMessage3>
            <LineMessage4>string</LineMessage4>
            <LineMessage5>string</LineMessage5>
            <CreatedOnUtc>dateTime</CreatedOnUtc>
            <PackSize>decimal</PackSize>
            <PackCost>decimal</PackCost>
            <BatchNumber>string</BatchNumber>
            <ExpiryDate>dateTime</ExpiryDate>
            <ProductType>decimal</ProductType>
            <OrderQuantity>decimal</OrderQuantity>
            <TotalDiscount>decimal</TotalDiscount>
            <SpecialOfferGUID>string</SpecialOfferGUID>
          </PurchaseLine>
        </Lines>
        <ExternalCode>string</ExternalCode>
        <TermDays>long</TermDays>
      </Header>
      <Lines>
        <PurchaseLine>
          <Id>int</Id>
          <PurchaseGuid>string</PurchaseGuid>
          <LineGuid>string</LineGuid>
          <LineType>int</LineType>
          <ProductGUID>string</ProductGUID>
          <ProductDescription>string</ProductDescription>
          <Sku>string</Sku>
          <TaxCategoryId>int</TaxCategoryId>
          <TaxRate>decimal</TaxRate>
          <UnitPrice>decimal</UnitPrice>
          <UnitCost>decimal</UnitCost>
          <Quantity>decimal</Quantity>
          <TotalPriceInc>decimal</TotalPriceInc>
          <TotalPriceExc>decimal</TotalPriceExc>
          <LineMessage1>string</LineMessage1>
          <LineMessage2>string</LineMessage2>
          <LineMessage3>string</LineMessage3>
          <LineMessage4>string</LineMessage4>
          <LineMessage5>string</LineMessage5>
          <CreatedOnUtc>dateTime</CreatedOnUtc>
          <PackSize>decimal</PackSize>
          <PackCost>decimal</PackCost>
          <BatchNumber>string</BatchNumber>
          <ExpiryDate>dateTime</ExpiryDate>
          <ProductType>decimal</ProductType>
          <OrderQuantity>decimal</OrderQuantity>
          <TotalDiscount>decimal</TotalDiscount>
          <SpecialOfferGUID>string</SpecialOfferGUID>
        </PurchaseLine>
        <PurchaseLine>
          <Id>int</Id>
          <PurchaseGuid>string</PurchaseGuid>
          <LineGuid>string</LineGuid>
          <LineType>int</LineType>
          <ProductGUID>string</ProductGUID>
          <ProductDescription>string</ProductDescription>
          <Sku>string</Sku>
          <TaxCategoryId>int</TaxCategoryId>
          <TaxRate>decimal</TaxRate>
          <UnitPrice>decimal</UnitPrice>
          <UnitCost>decimal</UnitCost>
          <Quantity>decimal</Quantity>
          <TotalPriceInc>decimal</TotalPriceInc>
          <TotalPriceExc>decimal</TotalPriceExc>
          <LineMessage1>string</LineMessage1>
          <LineMessage2>string</LineMessage2>
          <LineMessage3>string</LineMessage3>
          <LineMessage4>string</LineMessage4>
          <LineMessage5>string</LineMessage5>
          <CreatedOnUtc>dateTime</CreatedOnUtc>
          <PackSize>decimal</PackSize>
          <PackCost>decimal</PackCost>
          <BatchNumber>string</BatchNumber>
          <ExpiryDate>dateTime</ExpiryDate>
          <ProductType>decimal</ProductType>
          <OrderQuantity>decimal</OrderQuantity>
          <TotalDiscount>decimal</TotalDiscount>
          <SpecialOfferGUID>string</SpecialOfferGUID>
        </PurchaseLine>
      </Lines>
    </PostPurchase>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <PostPurchaseResponse xmlns="http://www.joycesoftware.com">
      <PostPurchaseResult />
    </PostPurchaseResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /puckanetennisclub/app/BackOffice.asmx HTTP/1.1
Host: lightingsports.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <PostPurchase xmlns="http://www.joycesoftware.com">
      <Header>
        <Id>int</Id>
        <PurchaseGuid>string</PurchaseGuid>
        <Type>int</Type>
        <SupplierGUID>string</SupplierGUID>
        <EmployeeGUID>string</EmployeeGUID>
        <CurrencyRate>decimal</CurrencyRate>
        <PurchaseDate>dateTime</PurchaseDate>
        <PaidDate>dateTime</PaidDate>
        <TotalIncVat>decimal</TotalIncVat>
        <TotalExcVat>decimal</TotalExcVat>
        <PaymentTotal>decimal</PaymentTotal>
        <ChangeGiven>decimal</ChangeGiven>
        <SupplierNotes>string</SupplierNotes>
        <CreatedOnUtc>dateTime</CreatedOnUtc>
        <CurrentStatus>int</CurrentStatus>
        <LastStatus>int</LastStatus>
        <PurchaseNumber>string</PurchaseNumber>
        <SupplierReference>string</SupplierReference>
        <SupplierInvoiceNumber>string</SupplierInvoiceNumber>
        <InvoiceHour>decimal</InvoiceHour>
        <InvoiceMinute>decimal</InvoiceMinute>
        <PaymentDueDate>dateTime</PaymentDueDate>
        <ChequeNumber>string</ChequeNumber>
        <Custom1>string</Custom1>
        <Custom2>string</Custom2>
        <Custom3>string</Custom3>
        <Custom4>string</Custom4>
        <Custom5>string</Custom5>
        <StoreCode>string</StoreCode>
        <Exported>string</Exported>
        <CheckedBy>string</CheckedBy>
        <OrderDate>dateTime</OrderDate>
        <IsPurchaseOrder>string</IsPurchaseOrder>
        <ActualTotalIncVAT>decimal</ActualTotalIncVAT>
        <TotalDiscount>decimal</TotalDiscount>
        <Lines>
          <PurchaseLine>
            <Id>int</Id>
            <PurchaseGuid>string</PurchaseGuid>
            <LineGuid>string</LineGuid>
            <LineType>int</LineType>
            <ProductGUID>string</ProductGUID>
            <ProductDescription>string</ProductDescription>
            <Sku>string</Sku>
            <TaxCategoryId>int</TaxCategoryId>
            <TaxRate>decimal</TaxRate>
            <UnitPrice>decimal</UnitPrice>
            <UnitCost>decimal</UnitCost>
            <Quantity>decimal</Quantity>
            <TotalPriceInc>decimal</TotalPriceInc>
            <TotalPriceExc>decimal</TotalPriceExc>
            <LineMessage1>string</LineMessage1>
            <LineMessage2>string</LineMessage2>
            <LineMessage3>string</LineMessage3>
            <LineMessage4>string</LineMessage4>
            <LineMessage5>string</LineMessage5>
            <CreatedOnUtc>dateTime</CreatedOnUtc>
            <PackSize>decimal</PackSize>
            <PackCost>decimal</PackCost>
            <BatchNumber>string</BatchNumber>
            <ExpiryDate>dateTime</ExpiryDate>
            <ProductType>decimal</ProductType>
            <OrderQuantity>decimal</OrderQuantity>
            <TotalDiscount>decimal</TotalDiscount>
            <SpecialOfferGUID>string</SpecialOfferGUID>
          </PurchaseLine>
          <PurchaseLine>
            <Id>int</Id>
            <PurchaseGuid>string</PurchaseGuid>
            <LineGuid>string</LineGuid>
            <LineType>int</LineType>
            <ProductGUID>string</ProductGUID>
            <ProductDescription>string</ProductDescription>
            <Sku>string</Sku>
            <TaxCategoryId>int</TaxCategoryId>
            <TaxRate>decimal</TaxRate>
            <UnitPrice>decimal</UnitPrice>
            <UnitCost>decimal</UnitCost>
            <Quantity>decimal</Quantity>
            <TotalPriceInc>decimal</TotalPriceInc>
            <TotalPriceExc>decimal</TotalPriceExc>
            <LineMessage1>string</LineMessage1>
            <LineMessage2>string</LineMessage2>
            <LineMessage3>string</LineMessage3>
            <LineMessage4>string</LineMessage4>
            <LineMessage5>string</LineMessage5>
            <CreatedOnUtc>dateTime</CreatedOnUtc>
            <PackSize>decimal</PackSize>
            <PackCost>decimal</PackCost>
            <BatchNumber>string</BatchNumber>
            <ExpiryDate>dateTime</ExpiryDate>
            <ProductType>decimal</ProductType>
            <OrderQuantity>decimal</OrderQuantity>
            <TotalDiscount>decimal</TotalDiscount>
            <SpecialOfferGUID>string</SpecialOfferGUID>
          </PurchaseLine>
        </Lines>
        <ExternalCode>string</ExternalCode>
        <TermDays>long</TermDays>
      </Header>
      <Lines>
        <PurchaseLine>
          <Id>int</Id>
          <PurchaseGuid>string</PurchaseGuid>
          <LineGuid>string</LineGuid>
          <LineType>int</LineType>
          <ProductGUID>string</ProductGUID>
          <ProductDescription>string</ProductDescription>
          <Sku>string</Sku>
          <TaxCategoryId>int</TaxCategoryId>
          <TaxRate>decimal</TaxRate>
          <UnitPrice>decimal</UnitPrice>
          <UnitCost>decimal</UnitCost>
          <Quantity>decimal</Quantity>
          <TotalPriceInc>decimal</TotalPriceInc>
          <TotalPriceExc>decimal</TotalPriceExc>
          <LineMessage1>string</LineMessage1>
          <LineMessage2>string</LineMessage2>
          <LineMessage3>string</LineMessage3>
          <LineMessage4>string</LineMessage4>
          <LineMessage5>string</LineMessage5>
          <CreatedOnUtc>dateTime</CreatedOnUtc>
          <PackSize>decimal</PackSize>
          <PackCost>decimal</PackCost>
          <BatchNumber>string</BatchNumber>
          <ExpiryDate>dateTime</ExpiryDate>
          <ProductType>decimal</ProductType>
          <OrderQuantity>decimal</OrderQuantity>
          <TotalDiscount>decimal</TotalDiscount>
          <SpecialOfferGUID>string</SpecialOfferGUID>
        </PurchaseLine>
        <PurchaseLine>
          <Id>int</Id>
          <PurchaseGuid>string</PurchaseGuid>
          <LineGuid>string</LineGuid>
          <LineType>int</LineType>
          <ProductGUID>string</ProductGUID>
          <ProductDescription>string</ProductDescription>
          <Sku>string</Sku>
          <TaxCategoryId>int</TaxCategoryId>
          <TaxRate>decimal</TaxRate>
          <UnitPrice>decimal</UnitPrice>
          <UnitCost>decimal</UnitCost>
          <Quantity>decimal</Quantity>
          <TotalPriceInc>decimal</TotalPriceInc>
          <TotalPriceExc>decimal</TotalPriceExc>
          <LineMessage1>string</LineMessage1>
          <LineMessage2>string</LineMessage2>
          <LineMessage3>string</LineMessage3>
          <LineMessage4>string</LineMessage4>
          <LineMessage5>string</LineMessage5>
          <CreatedOnUtc>dateTime</CreatedOnUtc>
          <PackSize>decimal</PackSize>
          <PackCost>decimal</PackCost>
          <BatchNumber>string</BatchNumber>
          <ExpiryDate>dateTime</ExpiryDate>
          <ProductType>decimal</ProductType>
          <OrderQuantity>decimal</OrderQuantity>
          <TotalDiscount>decimal</TotalDiscount>
          <SpecialOfferGUID>string</SpecialOfferGUID>
        </PurchaseLine>
      </Lines>
    </PostPurchase>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <PostPurchaseResponse xmlns="http://www.joycesoftware.com">
      <PostPurchaseResult />
    </PostPurchaseResponse>
  </soap12:Body>
</soap12:Envelope>