WarehouseService


Click here for a complete list of operations.

DespatchSave

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 /RosecomUAT/Service/APIV1/WarehouseService.asmx HTTP/1.1
Host: rosecommunications.salestarconnect.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/DespatchSave"

<?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>
    <DespatchSave xmlns="http://tempuri.org/">
      <pDespatch>
        <Reference>string</Reference>
        <SaleOrder>
          <OrderReference>string</OrderReference>
          <Channel>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Channel>
          <Currency>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Currency>
          <SaleDate>dateTime</SaleDate>
          <IsCreditCheckCompleted>boolean</IsCreditCheckCompleted>
          <DeliveryInfomation>
            <DeliveryServiceCode>string</DeliveryServiceCode>
            <DeliveryCharge>decimal</DeliveryCharge>
            <DeliveryTaxRate>decimal</DeliveryTaxRate>
            <DeliveryTaxAmount>decimal</DeliveryTaxAmount>
            <TrackingNumber>string</TrackingNumber>
            <DeliveryMethod xsi:nil="true" />
          </DeliveryInfomation>
          <Customer>
            <CustomerID>int</CustomerID>
            <Reference>string</Reference>
            <Contacts xsi:nil="true" />
            <Category xsi:nil="true" />
            <IntroductionDate>dateTime</IntroductionDate>
            <Source xsi:nil="true" />
            <MainAccountManager xsi:nil="true" />
            <SharedAccountManagers xsi:nil="true" />
            <IsActive>boolean</IsActive>
            <IsMergeInvoice>boolean</IsMergeInvoice>
            <PriceType xsi:nil="true" />
            <Currency xsi:nil="true" />
            <TaxGroup xsi:nil="true" />
            <IsApproved>boolean</IsApproved>
            <ApprovedUser xsi:nil="true" />
            <ApprovedDate>dateTime</ApprovedDate>
            <PaymentTerm xsi:nil="true" />
            <SelfBillingPeriod xsi:nil="true" />
            <Logo>base64Binary</Logo>
            <MailingAddress xsi:nil="true" />
            <InvoiceAddress xsi:nil="true" />
            <DeliveryAddress xsi:nil="true" />
            <WebSite>string</WebSite>
            <OrderConfirmationEmail xsi:nil="true" />
            <DespatchConfirmationEmail xsi:nil="true" />
            <SendMethod xsi:nil="true" />
            <SendFormat xsi:nil="true" />
            <SendAddress>string</SendAddress>
            <ReceiveMethod xsi:nil="true" />
            <ReceiveFormat xsi:nil="true" />
            <TurnOverLevel xsi:nil="true" />
            <EmployeeCountLevel xsi:nil="true" />
            <BankAccount xsi:nil="true" />
            <Proofs xsi:nil="true" />
            <Comment>string</Comment>
            <SourceNote>string</SourceNote>
            <NetworkReferenceNumber>string</NetworkReferenceNumber>
            <CompanyName>string</CompanyName>
            <CompanyRegistrationNo>string</CompanyRegistrationNo>
            <CompanyVatNo>string</CompanyVatNo>
            <Industry xsi:nil="true" />
            <MobilePhoneCountLevel xsi:nil="true" />
            <TradingAsType xsi:nil="true" />
            <CreditLimit>decimal</CreditLimit>
            <LoggedInSiteID>int</LoggedInSiteID>
            <SiteName>string</SiteName>
            <CreditRates>string</CreditRates>
            <CreditCategory xsi:nil="true" />
            <AccountCode>string</AccountCode>
            <Opportunities xsi:nil="true" />
            <AlternativeReference>string</AlternativeReference>
            <TimeWithEmployer>int</TimeWithEmployer>
            <DisplayName>string</DisplayName>
            <CurrencyCode>string</CurrencyCode>
            <Symbol>string</Symbol>
            <ExchangeRate>decimal</ExchangeRate>
            <OnStop>boolean</OnStop>
            <UserName>string</UserName>
            <Password1>string</Password1>
            <Password2>string</Password2>
            <Email>string</Email>
            <Fax>string</Fax>
            <Phone>string</Phone>
            <AvailableToSpend>decimal</AvailableToSpend>
            <Application xsi:nil="true" />
            <AllowedApplicationIDs xsi:nil="true" />
            <LangCode>string</LangCode>
            <AccountBalance>decimal</AccountBalance>
            <ProspectType>boolean</ProspectType>
          </Customer>
          <SaleOrderDetails>
            <SaleOrderDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
          </SaleOrderDetails>
          <Connections>
            <Connection xsi:nil="true" />
            <Connection xsi:nil="true" />
          </Connections>
          <Payments>
            <Payment xsi:nil="true" />
            <Payment xsi:nil="true" />
          </Payments>
          <DeliveryAddress>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <AddressLine3>string</AddressLine3>
            <AddressLine4>string</AddressLine4>
            <AddressLine5>string</AddressLine5>
            <City>string</City>
            <State>string</State>
            <PostCode>string</PostCode>
            <Country xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
            <DateSince>dateTime</DateSince>
            <DurationFromInMonths>int</DurationFromInMonths>
            <PremisesType xsi:nil="true" />
            <IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
            <AddressSequence>int</AddressSequence>
            <FullAddress>string</FullAddress>
            <HouseName>string</HouseName>
            <ConsigneeName>string</ConsigneeName>
            <AddressCode>string</AddressCode>
            <PhoneNumber>string</PhoneNumber>
            <CustomerID>int</CustomerID>
            <ContactID>int</ContactID>
          </DeliveryAddress>
          <InvoiceAddress>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <AddressLine3>string</AddressLine3>
            <AddressLine4>string</AddressLine4>
            <AddressLine5>string</AddressLine5>
            <City>string</City>
            <State>string</State>
            <PostCode>string</PostCode>
            <Country xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
            <DateSince>dateTime</DateSince>
            <DurationFromInMonths>int</DurationFromInMonths>
            <PremisesType xsi:nil="true" />
            <IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
            <AddressSequence>int</AddressSequence>
            <FullAddress>string</FullAddress>
            <HouseName>string</HouseName>
            <ConsigneeName>string</ConsigneeName>
            <AddressCode>string</AddressCode>
            <PhoneNumber>string</PhoneNumber>
            <CustomerID>int</CustomerID>
            <ContactID>int</ContactID>
          </InvoiceAddress>
          <StockAvailability>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </StockAvailability>
          <TotalTax>decimal</TotalTax>
          <TotalAmount>decimal</TotalAmount>
          <TotalInForiegnCurrency>decimal</TotalInForiegnCurrency>
          <TotalDiscount>decimal</TotalDiscount>
          <IsRequirementCompleted>boolean</IsRequirementCompleted>
          <IsSaleOrderApproved>boolean</IsSaleOrderApproved>
          <IsSaleOrderValidated>boolean</IsSaleOrderValidated>
          <POReference>string</POReference>
          <POReferenceProof>
            <Name>string</Name>
            <Description>string</Description>
            <ProofType xsi:nil="true" />
            <ProofCategory xsi:nil="true" />
            <ProofData>base64Binary</ProofData>
            <ProofFieldValues xsi:nil="true" />
          </POReferenceProof>
          <ContactPerson>string</ContactPerson>
          <CustomerSaleOrderRef>string</CustomerSaleOrderRef>
          <ShortNote>string</ShortNote>
          <IsAddressVerificationCompleted>boolean</IsAddressVerificationCompleted>
          <AddressVerificationReference>
            <Reference>string</Reference>
            <CardNumber>string</CardNumber>
            <CardValidFrom>dateTime</CardValidFrom>
            <CardValidTo>dateTime</CardValidTo>
            <IssueNumber>string</IssueNumber>
            <SecurityCode>string</SecurityCode>
            <Cv2AvsCheckResultType xsi:nil="true" />
            <PostCode>string</PostCode>
            <CardType xsi:nil="true" />
          </AddressVerificationReference>
          <DespatchCompletedStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </DespatchCompletedStatus>
          <Note>string</Note>
          <InternalNote>string</InternalNote>
          <WarrantyNote>string</WarrantyNote>
          <DeliveryInstruction>string</DeliveryInstruction>
          <OrderValidationNote>string</OrderValidationNote>
          <SaleInvoiceID>long</SaleInvoiceID>
          <IsVATExcluded>boolean</IsVATExcluded>
          <Application>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Application>
          <Site>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Site>
          <Location>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Location>
          <EmployeeID>long</EmployeeID>
          <IsTandCRead>boolean</IsTandCRead>
          <InvoiceReference>string</InvoiceReference>
          <TrackableNo>string</TrackableNo>
          <TrackableItemID>int</TrackableItemID>
          <Supplier>
            <SupplierReference>string</SupplierReference>
            <SupplierName>string</SupplierName>
            <POAddress xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
          </Supplier>
          <InvoiceID>int</InvoiceID>
          <ChannelID>int</ChannelID>
          <DespatchDate>dateTime</DespatchDate>
          <SaleOrderStatus>string</SaleOrderStatus>
          <PaidAmount>decimal</PaidAmount>
          <InvoiceRef>
            <Invoice xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </InvoiceRef>
          <SaleOrderStatusID>int</SaleOrderStatusID>
          <OrderStatusTypeID>int</OrderStatusTypeID>
          <IsWithoutVat>boolean</IsWithoutVat>
          <IsCreditApproved>boolean</IsCreditApproved>
          <IsPickListNotRequired>boolean</IsPickListNotRequired>
          <IsOnlyCreditApproval>boolean</IsOnlyCreditApproval>
          <IsMergeInvoice>boolean</IsMergeInvoice>
          <IsAllocateKitFundDiscountFromPreBalance>boolean</IsAllocateKitFundDiscountFromPreBalance>
          <IsMinimumMarginApproved>boolean</IsMinimumMarginApproved>
          <Cv2AvsCheckResultID>int</Cv2AvsCheckResultID>
          <PacNumberReceivedID>int</PacNumberReceivedID>
          <ConnectionCompletedID>int</ConnectionCompletedID>
          <POReceivedID>int</POReceivedID>
          <AuthorizedEmployeeID>int</AuthorizedEmployeeID>
          <SaleAdminEmployeeID>int</SaleAdminEmployeeID>
          <OrderValidateID>int</OrderValidateID>
          <DuplicateCheckingID>int</DuplicateCheckingID>
          <Cv2AvsApprovedID>int</Cv2AvsApprovedID>
          <IdentityCheckApprovedID>int</IdentityCheckApprovedID>
          <ExchangeRate>decimal</ExchangeRate>
          <SupplierRespondStatusID>int</SupplierRespondStatusID>
          <TotalStaffCommission>decimal</TotalStaffCommission>
          <TotalKitFundAmount>decimal</TotalKitFundAmount>
          <KitFundBalance>decimal</KitFundBalance>
          <UtilizedKitFundDiscountFromPreviousKitFund>decimal</UtilizedKitFundDiscountFromPreviousKitFund>
          <UtilizedKitFundDiscountFromCurrentSaleKitFund>decimal</UtilizedKitFundDiscountFromCurrentSaleKitFund>
          <CashBackPaymentTermID>int</CashBackPaymentTermID>
          <bSingleInvoice>boolean</bSingleInvoice>
          <bSaleOrderReveseVat>boolean</bSaleOrderReveseVat>
          <LangCode>string</LangCode>
          <CampaignCodeID>int</CampaignCodeID>
          <EstimatedDeliveryDate>dateTime</EstimatedDeliveryDate>
          <LoggedUserID>long</LoggedUserID>
          <DealID>int</DealID>
          <DealNumber>string</DealNumber>
          <CRMOrderID>string</CRMOrderID>
          <UpdatePricePermanentt>boolean</UpdatePricePermanentt>
          <ShiftID>int</ShiftID>
          <bLayaway>boolean</bLayaway>
          <IsVoucherMeEnable>boolean</IsVoucherMeEnable>
          <EffectiveDate>string</EffectiveDate>
          <AgreedCommissionList>
            <CustomerDealCommission xsi:nil="true" />
            <CustomerDealCommission xsi:nil="true" />
          </AgreedCommissionList>
          <bCustomerSearchFirst>boolean</bCustomerSearchFirst>
          <bUpdateSaleOrder>boolean</bUpdateSaleOrder>
          <LastUpdate>base64Binary</LastUpdate>
          <TempVoucherMeDetails>
            <TempVoucherMeDetails xsi:nil="true" />
            <TempVoucherMeDetails xsi:nil="true" />
          </TempVoucherMeDetails>
        </SaleOrder>
        <DespatchedDate>dateTime</DespatchedDate>
        <DeliveryInfo>
          <DeliveryServiceCode>string</DeliveryServiceCode>
          <DeliveryCharge>decimal</DeliveryCharge>
          <DeliveryTaxRate>decimal</DeliveryTaxRate>
          <DeliveryTaxAmount>decimal</DeliveryTaxAmount>
          <TrackingNumber>string</TrackingNumber>
          <DeliveryMethod>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </DeliveryMethod>
        </DeliveryInfo>
        <Comment>string</Comment>
        <SendingSite>
          <ID>int</ID>
          <Name>string</Name>
          <DataType>int</DataType>
        </SendingSite>
        <CustomerReceivedDate>dateTime</CustomerReceivedDate>
        <WeightInKiloGram>decimal</WeightInKiloGram>
        <CustomerDeliveryStatus>
          <ID>int</ID>
          <Name>string</Name>
          <DataType>int</DataType>
        </CustomerDeliveryStatus>
        <DespatchDetails>
          <DespatchDetail>
            <OrderDetailID>int</OrderDetailID>
            <OrderDetailSequence>int</OrderDetailSequence>
            <Product xsi:nil="true" />
            <QuantityDespatched>int</QuantityDespatched>
            <DespatchItems xsi:nil="true" />
            <TaxAmount>decimal</TaxAmount>
            <TotalAmount>decimal</TotalAmount>
            <Discount>decimal</Discount>
            <SupplierReturnDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
            <IsCourrior>boolean</IsCourrior>
          </DespatchDetail>
          <DespatchDetail>
            <OrderDetailID>int</OrderDetailID>
            <OrderDetailSequence>int</OrderDetailSequence>
            <Product xsi:nil="true" />
            <QuantityDespatched>int</QuantityDespatched>
            <DespatchItems xsi:nil="true" />
            <TaxAmount>decimal</TaxAmount>
            <TotalAmount>decimal</TotalAmount>
            <Discount>decimal</Discount>
            <SupplierReturnDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
            <IsCourrior>boolean</IsCourrior>
          </DespatchDetail>
        </DespatchDetails>
        <CourierTrackingNumber>string</CourierTrackingNumber>
        <CourierTrackingURL>string</CourierTrackingURL>
        <EmployeeID>int</EmployeeID>
        <IsComplete>boolean</IsComplete>
        <IsDelivered>boolean</IsDelivered>
        <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
        <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
        <Note>string</Note>
        <SupplierReturn>
          <Reference>string</Reference>
          <Date>dateTime</Date>
          <Supplier>
            <SupplierReference>string</SupplierReference>
            <SupplierName>string</SupplierName>
            <POAddress xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
          </Supplier>
          <Site>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Site>
          <Employee>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Employee>
          <Courier>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Courier>
          <Note>string</Note>
          <CourierTrackingNumber>string</CourierTrackingNumber>
          <TotalValue>decimal</TotalValue>
          <SupplierReturnStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </SupplierReturnStatus>
          <SupplierAuthorisationReference>string</SupplierAuthorisationReference>
          <PostReturnStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </PostReturnStatus>
          <SupplierCreditNoteReference>string</SupplierCreditNoteReference>
          <SupplierCreditNoteTotal>decimal</SupplierCreditNoteTotal>
          <SendMethod>int</SendMethod>
          <AuthorizedBy>string</AuthorizedBy>
          <AuthorizedDate>dateTime</AuthorizedDate>
          <DeliveryCost>decimal</DeliveryCost>
          <bComplete>boolean</bComplete>
          <SupplierReturnDetails>
            <SupplierReturnDetails xsi:nil="true" />
            <SupplierReturnDetails xsi:nil="true" />
          </SupplierReturnDetails>
        </SupplierReturn>
        <TotalAmount>decimal</TotalAmount>
        <TotalTaxAmount>decimal</TotalTaxAmount>
        <TotalDiscount>decimal</TotalDiscount>
        <InvoiceRef>string</InvoiceRef>
        <CourierName>string</CourierName>
        <DeliveryProductName>string</DeliveryProductName>
      </pDespatch>
      <pAuthentication>
        <UserName>string</UserName>
        <Password>string</Password>
        <DealerCode>string</DealerCode>
        <PasswordLevel2>string</PasswordLevel2>
        <IsAuthenticated>boolean</IsAuthenticated>
        <NewPassword>string</NewPassword>
        <EmployeeID>int</EmployeeID>
        <AppServerPath>string</AppServerPath>
        <IsAPIUser>boolean</IsAPIUser>
      </pAuthentication>
    </DespatchSave>
  </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>
    <DespatchSaveResponse xmlns="http://tempuri.org/">
      <DespatchSaveResult>
        <IsError>boolean</IsError>
        <ErrorCode>int</ErrorCode>
        <ErrorMessage>string</ErrorMessage>
        <BusinessObjectList>
          <Despatch>
            <Reference>string</Reference>
            <SaleOrder xsi:nil="true" />
            <DespatchedDate>dateTime</DespatchedDate>
            <DeliveryInfo xsi:nil="true" />
            <Comment>string</Comment>
            <SendingSite xsi:nil="true" />
            <CustomerReceivedDate>dateTime</CustomerReceivedDate>
            <WeightInKiloGram>decimal</WeightInKiloGram>
            <CustomerDeliveryStatus xsi:nil="true" />
            <DespatchDetails xsi:nil="true" />
            <CourierTrackingNumber>string</CourierTrackingNumber>
            <CourierTrackingURL>string</CourierTrackingURL>
            <EmployeeID>int</EmployeeID>
            <IsComplete>boolean</IsComplete>
            <IsDelivered>boolean</IsDelivered>
            <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
            <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
            <Note>string</Note>
            <SupplierReturn xsi:nil="true" />
            <TotalAmount>decimal</TotalAmount>
            <TotalTaxAmount>decimal</TotalTaxAmount>
            <TotalDiscount>decimal</TotalDiscount>
            <InvoiceRef>string</InvoiceRef>
            <CourierName>string</CourierName>
            <DeliveryProductName>string</DeliveryProductName>
          </Despatch>
          <Despatch>
            <Reference>string</Reference>
            <SaleOrder xsi:nil="true" />
            <DespatchedDate>dateTime</DespatchedDate>
            <DeliveryInfo xsi:nil="true" />
            <Comment>string</Comment>
            <SendingSite xsi:nil="true" />
            <CustomerReceivedDate>dateTime</CustomerReceivedDate>
            <WeightInKiloGram>decimal</WeightInKiloGram>
            <CustomerDeliveryStatus xsi:nil="true" />
            <DespatchDetails xsi:nil="true" />
            <CourierTrackingNumber>string</CourierTrackingNumber>
            <CourierTrackingURL>string</CourierTrackingURL>
            <EmployeeID>int</EmployeeID>
            <IsComplete>boolean</IsComplete>
            <IsDelivered>boolean</IsDelivered>
            <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
            <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
            <Note>string</Note>
            <SupplierReturn xsi:nil="true" />
            <TotalAmount>decimal</TotalAmount>
            <TotalTaxAmount>decimal</TotalTaxAmount>
            <TotalDiscount>decimal</TotalDiscount>
            <InvoiceRef>string</InvoiceRef>
            <CourierName>string</CourierName>
            <DeliveryProductName>string</DeliveryProductName>
          </Despatch>
        </BusinessObjectList>
        <ActualRecordsCount>int</ActualRecordsCount>
        <MetaData>string</MetaData>
      </DespatchSaveResult>
    </DespatchSaveResponse>
  </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 /RosecomUAT/Service/APIV1/WarehouseService.asmx HTTP/1.1
Host: rosecommunications.salestarconnect.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>
    <DespatchSave xmlns="http://tempuri.org/">
      <pDespatch>
        <Reference>string</Reference>
        <SaleOrder>
          <OrderReference>string</OrderReference>
          <Channel>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Channel>
          <Currency>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Currency>
          <SaleDate>dateTime</SaleDate>
          <IsCreditCheckCompleted>boolean</IsCreditCheckCompleted>
          <DeliveryInfomation>
            <DeliveryServiceCode>string</DeliveryServiceCode>
            <DeliveryCharge>decimal</DeliveryCharge>
            <DeliveryTaxRate>decimal</DeliveryTaxRate>
            <DeliveryTaxAmount>decimal</DeliveryTaxAmount>
            <TrackingNumber>string</TrackingNumber>
            <DeliveryMethod xsi:nil="true" />
          </DeliveryInfomation>
          <Customer>
            <CustomerID>int</CustomerID>
            <Reference>string</Reference>
            <Contacts xsi:nil="true" />
            <Category xsi:nil="true" />
            <IntroductionDate>dateTime</IntroductionDate>
            <Source xsi:nil="true" />
            <MainAccountManager xsi:nil="true" />
            <SharedAccountManagers xsi:nil="true" />
            <IsActive>boolean</IsActive>
            <IsMergeInvoice>boolean</IsMergeInvoice>
            <PriceType xsi:nil="true" />
            <Currency xsi:nil="true" />
            <TaxGroup xsi:nil="true" />
            <IsApproved>boolean</IsApproved>
            <ApprovedUser xsi:nil="true" />
            <ApprovedDate>dateTime</ApprovedDate>
            <PaymentTerm xsi:nil="true" />
            <SelfBillingPeriod xsi:nil="true" />
            <Logo>base64Binary</Logo>
            <MailingAddress xsi:nil="true" />
            <InvoiceAddress xsi:nil="true" />
            <DeliveryAddress xsi:nil="true" />
            <WebSite>string</WebSite>
            <OrderConfirmationEmail xsi:nil="true" />
            <DespatchConfirmationEmail xsi:nil="true" />
            <SendMethod xsi:nil="true" />
            <SendFormat xsi:nil="true" />
            <SendAddress>string</SendAddress>
            <ReceiveMethod xsi:nil="true" />
            <ReceiveFormat xsi:nil="true" />
            <TurnOverLevel xsi:nil="true" />
            <EmployeeCountLevel xsi:nil="true" />
            <BankAccount xsi:nil="true" />
            <Proofs xsi:nil="true" />
            <Comment>string</Comment>
            <SourceNote>string</SourceNote>
            <NetworkReferenceNumber>string</NetworkReferenceNumber>
            <CompanyName>string</CompanyName>
            <CompanyRegistrationNo>string</CompanyRegistrationNo>
            <CompanyVatNo>string</CompanyVatNo>
            <Industry xsi:nil="true" />
            <MobilePhoneCountLevel xsi:nil="true" />
            <TradingAsType xsi:nil="true" />
            <CreditLimit>decimal</CreditLimit>
            <LoggedInSiteID>int</LoggedInSiteID>
            <SiteName>string</SiteName>
            <CreditRates>string</CreditRates>
            <CreditCategory xsi:nil="true" />
            <AccountCode>string</AccountCode>
            <Opportunities xsi:nil="true" />
            <AlternativeReference>string</AlternativeReference>
            <TimeWithEmployer>int</TimeWithEmployer>
            <DisplayName>string</DisplayName>
            <CurrencyCode>string</CurrencyCode>
            <Symbol>string</Symbol>
            <ExchangeRate>decimal</ExchangeRate>
            <OnStop>boolean</OnStop>
            <UserName>string</UserName>
            <Password1>string</Password1>
            <Password2>string</Password2>
            <Email>string</Email>
            <Fax>string</Fax>
            <Phone>string</Phone>
            <AvailableToSpend>decimal</AvailableToSpend>
            <Application xsi:nil="true" />
            <AllowedApplicationIDs xsi:nil="true" />
            <LangCode>string</LangCode>
            <AccountBalance>decimal</AccountBalance>
            <ProspectType>boolean</ProspectType>
          </Customer>
          <SaleOrderDetails>
            <SaleOrderDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
          </SaleOrderDetails>
          <Connections>
            <Connection xsi:nil="true" />
            <Connection xsi:nil="true" />
          </Connections>
          <Payments>
            <Payment xsi:nil="true" />
            <Payment xsi:nil="true" />
          </Payments>
          <DeliveryAddress>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <AddressLine3>string</AddressLine3>
            <AddressLine4>string</AddressLine4>
            <AddressLine5>string</AddressLine5>
            <City>string</City>
            <State>string</State>
            <PostCode>string</PostCode>
            <Country xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
            <DateSince>dateTime</DateSince>
            <DurationFromInMonths>int</DurationFromInMonths>
            <PremisesType xsi:nil="true" />
            <IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
            <AddressSequence>int</AddressSequence>
            <FullAddress>string</FullAddress>
            <HouseName>string</HouseName>
            <ConsigneeName>string</ConsigneeName>
            <AddressCode>string</AddressCode>
            <PhoneNumber>string</PhoneNumber>
            <CustomerID>int</CustomerID>
            <ContactID>int</ContactID>
          </DeliveryAddress>
          <InvoiceAddress>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <AddressLine3>string</AddressLine3>
            <AddressLine4>string</AddressLine4>
            <AddressLine5>string</AddressLine5>
            <City>string</City>
            <State>string</State>
            <PostCode>string</PostCode>
            <Country xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
            <DateSince>dateTime</DateSince>
            <DurationFromInMonths>int</DurationFromInMonths>
            <PremisesType xsi:nil="true" />
            <IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
            <AddressSequence>int</AddressSequence>
            <FullAddress>string</FullAddress>
            <HouseName>string</HouseName>
            <ConsigneeName>string</ConsigneeName>
            <AddressCode>string</AddressCode>
            <PhoneNumber>string</PhoneNumber>
            <CustomerID>int</CustomerID>
            <ContactID>int</ContactID>
          </InvoiceAddress>
          <StockAvailability>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </StockAvailability>
          <TotalTax>decimal</TotalTax>
          <TotalAmount>decimal</TotalAmount>
          <TotalInForiegnCurrency>decimal</TotalInForiegnCurrency>
          <TotalDiscount>decimal</TotalDiscount>
          <IsRequirementCompleted>boolean</IsRequirementCompleted>
          <IsSaleOrderApproved>boolean</IsSaleOrderApproved>
          <IsSaleOrderValidated>boolean</IsSaleOrderValidated>
          <POReference>string</POReference>
          <POReferenceProof>
            <Name>string</Name>
            <Description>string</Description>
            <ProofType xsi:nil="true" />
            <ProofCategory xsi:nil="true" />
            <ProofData>base64Binary</ProofData>
            <ProofFieldValues xsi:nil="true" />
          </POReferenceProof>
          <ContactPerson>string</ContactPerson>
          <CustomerSaleOrderRef>string</CustomerSaleOrderRef>
          <ShortNote>string</ShortNote>
          <IsAddressVerificationCompleted>boolean</IsAddressVerificationCompleted>
          <AddressVerificationReference>
            <Reference>string</Reference>
            <CardNumber>string</CardNumber>
            <CardValidFrom>dateTime</CardValidFrom>
            <CardValidTo>dateTime</CardValidTo>
            <IssueNumber>string</IssueNumber>
            <SecurityCode>string</SecurityCode>
            <Cv2AvsCheckResultType xsi:nil="true" />
            <PostCode>string</PostCode>
            <CardType xsi:nil="true" />
          </AddressVerificationReference>
          <DespatchCompletedStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </DespatchCompletedStatus>
          <Note>string</Note>
          <InternalNote>string</InternalNote>
          <WarrantyNote>string</WarrantyNote>
          <DeliveryInstruction>string</DeliveryInstruction>
          <OrderValidationNote>string</OrderValidationNote>
          <SaleInvoiceID>long</SaleInvoiceID>
          <IsVATExcluded>boolean</IsVATExcluded>
          <Application>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Application>
          <Site>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Site>
          <Location>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Location>
          <EmployeeID>long</EmployeeID>
          <IsTandCRead>boolean</IsTandCRead>
          <InvoiceReference>string</InvoiceReference>
          <TrackableNo>string</TrackableNo>
          <TrackableItemID>int</TrackableItemID>
          <Supplier>
            <SupplierReference>string</SupplierReference>
            <SupplierName>string</SupplierName>
            <POAddress xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
          </Supplier>
          <InvoiceID>int</InvoiceID>
          <ChannelID>int</ChannelID>
          <DespatchDate>dateTime</DespatchDate>
          <SaleOrderStatus>string</SaleOrderStatus>
          <PaidAmount>decimal</PaidAmount>
          <InvoiceRef>
            <Invoice xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </InvoiceRef>
          <SaleOrderStatusID>int</SaleOrderStatusID>
          <OrderStatusTypeID>int</OrderStatusTypeID>
          <IsWithoutVat>boolean</IsWithoutVat>
          <IsCreditApproved>boolean</IsCreditApproved>
          <IsPickListNotRequired>boolean</IsPickListNotRequired>
          <IsOnlyCreditApproval>boolean</IsOnlyCreditApproval>
          <IsMergeInvoice>boolean</IsMergeInvoice>
          <IsAllocateKitFundDiscountFromPreBalance>boolean</IsAllocateKitFundDiscountFromPreBalance>
          <IsMinimumMarginApproved>boolean</IsMinimumMarginApproved>
          <Cv2AvsCheckResultID>int</Cv2AvsCheckResultID>
          <PacNumberReceivedID>int</PacNumberReceivedID>
          <ConnectionCompletedID>int</ConnectionCompletedID>
          <POReceivedID>int</POReceivedID>
          <AuthorizedEmployeeID>int</AuthorizedEmployeeID>
          <SaleAdminEmployeeID>int</SaleAdminEmployeeID>
          <OrderValidateID>int</OrderValidateID>
          <DuplicateCheckingID>int</DuplicateCheckingID>
          <Cv2AvsApprovedID>int</Cv2AvsApprovedID>
          <IdentityCheckApprovedID>int</IdentityCheckApprovedID>
          <ExchangeRate>decimal</ExchangeRate>
          <SupplierRespondStatusID>int</SupplierRespondStatusID>
          <TotalStaffCommission>decimal</TotalStaffCommission>
          <TotalKitFundAmount>decimal</TotalKitFundAmount>
          <KitFundBalance>decimal</KitFundBalance>
          <UtilizedKitFundDiscountFromPreviousKitFund>decimal</UtilizedKitFundDiscountFromPreviousKitFund>
          <UtilizedKitFundDiscountFromCurrentSaleKitFund>decimal</UtilizedKitFundDiscountFromCurrentSaleKitFund>
          <CashBackPaymentTermID>int</CashBackPaymentTermID>
          <bSingleInvoice>boolean</bSingleInvoice>
          <bSaleOrderReveseVat>boolean</bSaleOrderReveseVat>
          <LangCode>string</LangCode>
          <CampaignCodeID>int</CampaignCodeID>
          <EstimatedDeliveryDate>dateTime</EstimatedDeliveryDate>
          <LoggedUserID>long</LoggedUserID>
          <DealID>int</DealID>
          <DealNumber>string</DealNumber>
          <CRMOrderID>string</CRMOrderID>
          <UpdatePricePermanentt>boolean</UpdatePricePermanentt>
          <ShiftID>int</ShiftID>
          <bLayaway>boolean</bLayaway>
          <IsVoucherMeEnable>boolean</IsVoucherMeEnable>
          <EffectiveDate>string</EffectiveDate>
          <AgreedCommissionList>
            <CustomerDealCommission xsi:nil="true" />
            <CustomerDealCommission xsi:nil="true" />
          </AgreedCommissionList>
          <bCustomerSearchFirst>boolean</bCustomerSearchFirst>
          <bUpdateSaleOrder>boolean</bUpdateSaleOrder>
          <LastUpdate>base64Binary</LastUpdate>
          <TempVoucherMeDetails>
            <TempVoucherMeDetails xsi:nil="true" />
            <TempVoucherMeDetails xsi:nil="true" />
          </TempVoucherMeDetails>
        </SaleOrder>
        <DespatchedDate>dateTime</DespatchedDate>
        <DeliveryInfo>
          <DeliveryServiceCode>string</DeliveryServiceCode>
          <DeliveryCharge>decimal</DeliveryCharge>
          <DeliveryTaxRate>decimal</DeliveryTaxRate>
          <DeliveryTaxAmount>decimal</DeliveryTaxAmount>
          <TrackingNumber>string</TrackingNumber>
          <DeliveryMethod>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </DeliveryMethod>
        </DeliveryInfo>
        <Comment>string</Comment>
        <SendingSite>
          <ID>int</ID>
          <Name>string</Name>
          <DataType>int</DataType>
        </SendingSite>
        <CustomerReceivedDate>dateTime</CustomerReceivedDate>
        <WeightInKiloGram>decimal</WeightInKiloGram>
        <CustomerDeliveryStatus>
          <ID>int</ID>
          <Name>string</Name>
          <DataType>int</DataType>
        </CustomerDeliveryStatus>
        <DespatchDetails>
          <DespatchDetail>
            <OrderDetailID>int</OrderDetailID>
            <OrderDetailSequence>int</OrderDetailSequence>
            <Product xsi:nil="true" />
            <QuantityDespatched>int</QuantityDespatched>
            <DespatchItems xsi:nil="true" />
            <TaxAmount>decimal</TaxAmount>
            <TotalAmount>decimal</TotalAmount>
            <Discount>decimal</Discount>
            <SupplierReturnDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
            <IsCourrior>boolean</IsCourrior>
          </DespatchDetail>
          <DespatchDetail>
            <OrderDetailID>int</OrderDetailID>
            <OrderDetailSequence>int</OrderDetailSequence>
            <Product xsi:nil="true" />
            <QuantityDespatched>int</QuantityDespatched>
            <DespatchItems xsi:nil="true" />
            <TaxAmount>decimal</TaxAmount>
            <TotalAmount>decimal</TotalAmount>
            <Discount>decimal</Discount>
            <SupplierReturnDetail xsi:nil="true" />
            <SaleOrderDetail xsi:nil="true" />
            <IsCourrior>boolean</IsCourrior>
          </DespatchDetail>
        </DespatchDetails>
        <CourierTrackingNumber>string</CourierTrackingNumber>
        <CourierTrackingURL>string</CourierTrackingURL>
        <EmployeeID>int</EmployeeID>
        <IsComplete>boolean</IsComplete>
        <IsDelivered>boolean</IsDelivered>
        <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
        <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
        <Note>string</Note>
        <SupplierReturn>
          <Reference>string</Reference>
          <Date>dateTime</Date>
          <Supplier>
            <SupplierReference>string</SupplierReference>
            <SupplierName>string</SupplierName>
            <POAddress xsi:nil="true" />
            <IsDefault>boolean</IsDefault>
          </Supplier>
          <Site>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Site>
          <Employee>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Employee>
          <Courier>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </Courier>
          <Note>string</Note>
          <CourierTrackingNumber>string</CourierTrackingNumber>
          <TotalValue>decimal</TotalValue>
          <SupplierReturnStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </SupplierReturnStatus>
          <SupplierAuthorisationReference>string</SupplierAuthorisationReference>
          <PostReturnStatus>
            <ID>int</ID>
            <Name>string</Name>
            <DataType>int</DataType>
          </PostReturnStatus>
          <SupplierCreditNoteReference>string</SupplierCreditNoteReference>
          <SupplierCreditNoteTotal>decimal</SupplierCreditNoteTotal>
          <SendMethod>int</SendMethod>
          <AuthorizedBy>string</AuthorizedBy>
          <AuthorizedDate>dateTime</AuthorizedDate>
          <DeliveryCost>decimal</DeliveryCost>
          <bComplete>boolean</bComplete>
          <SupplierReturnDetails>
            <SupplierReturnDetails xsi:nil="true" />
            <SupplierReturnDetails xsi:nil="true" />
          </SupplierReturnDetails>
        </SupplierReturn>
        <TotalAmount>decimal</TotalAmount>
        <TotalTaxAmount>decimal</TotalTaxAmount>
        <TotalDiscount>decimal</TotalDiscount>
        <InvoiceRef>string</InvoiceRef>
        <CourierName>string</CourierName>
        <DeliveryProductName>string</DeliveryProductName>
      </pDespatch>
      <pAuthentication>
        <UserName>string</UserName>
        <Password>string</Password>
        <DealerCode>string</DealerCode>
        <PasswordLevel2>string</PasswordLevel2>
        <IsAuthenticated>boolean</IsAuthenticated>
        <NewPassword>string</NewPassword>
        <EmployeeID>int</EmployeeID>
        <AppServerPath>string</AppServerPath>
        <IsAPIUser>boolean</IsAPIUser>
      </pAuthentication>
    </DespatchSave>
  </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>
    <DespatchSaveResponse xmlns="http://tempuri.org/">
      <DespatchSaveResult>
        <IsError>boolean</IsError>
        <ErrorCode>int</ErrorCode>
        <ErrorMessage>string</ErrorMessage>
        <BusinessObjectList>
          <Despatch>
            <Reference>string</Reference>
            <SaleOrder xsi:nil="true" />
            <DespatchedDate>dateTime</DespatchedDate>
            <DeliveryInfo xsi:nil="true" />
            <Comment>string</Comment>
            <SendingSite xsi:nil="true" />
            <CustomerReceivedDate>dateTime</CustomerReceivedDate>
            <WeightInKiloGram>decimal</WeightInKiloGram>
            <CustomerDeliveryStatus xsi:nil="true" />
            <DespatchDetails xsi:nil="true" />
            <CourierTrackingNumber>string</CourierTrackingNumber>
            <CourierTrackingURL>string</CourierTrackingURL>
            <EmployeeID>int</EmployeeID>
            <IsComplete>boolean</IsComplete>
            <IsDelivered>boolean</IsDelivered>
            <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
            <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
            <Note>string</Note>
            <SupplierReturn xsi:nil="true" />
            <TotalAmount>decimal</TotalAmount>
            <TotalTaxAmount>decimal</TotalTaxAmount>
            <TotalDiscount>decimal</TotalDiscount>
            <InvoiceRef>string</InvoiceRef>
            <CourierName>string</CourierName>
            <DeliveryProductName>string</DeliveryProductName>
          </Despatch>
          <Despatch>
            <Reference>string</Reference>
            <SaleOrder xsi:nil="true" />
            <DespatchedDate>dateTime</DespatchedDate>
            <DeliveryInfo xsi:nil="true" />
            <Comment>string</Comment>
            <SendingSite xsi:nil="true" />
            <CustomerReceivedDate>dateTime</CustomerReceivedDate>
            <WeightInKiloGram>decimal</WeightInKiloGram>
            <CustomerDeliveryStatus xsi:nil="true" />
            <DespatchDetails xsi:nil="true" />
            <CourierTrackingNumber>string</CourierTrackingNumber>
            <CourierTrackingURL>string</CourierTrackingURL>
            <EmployeeID>int</EmployeeID>
            <IsComplete>boolean</IsComplete>
            <IsDelivered>boolean</IsDelivered>
            <IsDocumentPrintingPending>boolean</IsDocumentPrintingPending>
            <IsAutomaticGRNCreated>boolean</IsAutomaticGRNCreated>
            <Note>string</Note>
            <SupplierReturn xsi:nil="true" />
            <TotalAmount>decimal</TotalAmount>
            <TotalTaxAmount>decimal</TotalTaxAmount>
            <TotalDiscount>decimal</TotalDiscount>
            <InvoiceRef>string</InvoiceRef>
            <CourierName>string</CourierName>
            <DeliveryProductName>string</DeliveryProductName>
          </Despatch>
        </BusinessObjectList>
        <ActualRecordsCount>int</ActualRecordsCount>
        <MetaData>string</MetaData>
      </DespatchSaveResult>
    </DespatchSaveResponse>
  </soap12:Body>
</soap12:Envelope>