Point of Sale qbXML for updating a Sales Order

From ConsoliBYTE Wiki
Jump to: navigation, search

Point of Sale qbXML for updating a Sales Order

Example Request

 
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <?qbposxml version="3.0"?>
      <QBPOSXML>
          <QBPOSXMLMsgsRq onError="stopOnError">
              <SalesOrderModRq requestID="1">
                  <SalesOrderMod>
                      <TxnID>-3651723781795315455</TxnID>
                      <Instructions>updated by automated unit tests Mon Dec 30 08:14:00 CST 2013</Instructions>
                  </SalesOrderMod>
              </SalesOrderModRq>
          </QBPOSXMLMsgsRq>
      </QBPOSXML>
 

Example Response

Response from a QBPOS-instance after adding the Sale Order:

 
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <?qbposxml version="3.0"?>
      <QBPOSXML>
          <QBPOSXMLMsgsRs>
              <SalesOrderModRs requestID="1"
                               statusCode="0"
                               statusSeverity="Info"
                               statusMessage="Status OK">
                  <SalesOrderRet>
                      <TxnID>-3651723781795315455</TxnID>
                      <TimeCreated>2013-12-29T23:42:19</TimeCreated>
                      <TimeModified>2013-12-30T14:14:18</TimeModified>
                      <BalanceDue>97.46</BalanceDue>
                      <CustomerListID>-3667307488274906879</CustomerListID>
                      <DepositBalance>0.00</DepositBalance>
                      <Discount>0.00</Discount>
                      <DiscountPercent>0.00</DiscountPercent>
                      <Instructions>updated by automated unit tests Mon Dec 30 08:14:00 CST 2013</Instructions>
                      <ItemsCount>2</ItemsCount>
                      <PriceLevelNumber>1</PriceLevelNumber>
                      <Qty>2.00</Qty>
                      <SalesOrderNumber>2</SalesOrderNumber>
                      <SalesOrderStatusDesc>Open</SalesOrderStatusDesc>
                      <SalesOrderType>SalesOrder</SalesOrderType>
                      <StoreExchangeStatus>Modified</StoreExchangeStatus>
                      <Subtotal>89.62</Subtotal>
                      <TaxAmount>7.84</TaxAmount>
                      <TaxCategory>Local Sales Tax</TaxCategory>
                      <TaxPercentage>8.75</TaxPercentage>
                      <Total>97.46</Total>
                      <TxnDate>2013-12-29</TxnDate>
                      <UnfilledPercent>100.00</UnfilledPercent>
                      <BillingInformation>
                          <FirstName>Pulkit</FirstName>
                          <LastName>Singhal</LastName>
                      </BillingInformation>
                      <ShippingInformation>
                          <Shipping>0.00</Shipping>
                      </ShippingInformation>
                      <SalesOrderItemRet>...</SalesOrderItemRet>
                      <SalesOrderItemRet>...</SalesOrderItemRet>
                  </SalesOrderRet>
              </SalesOrderModRs>
          </QBPOSXMLMsgsRs>
      </QBPOSXML>