Point of Sale qbXML for creating a Sale Order

From ConsoliBYTE Wiki
Jump to: navigation, search

Point of Sale qbXML for adding a Sale Order

Example Request

 
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?qbposxml version="3.0"?>
    <QBPOSXML>
        <QBPOSXMLMsgsRq onError="stopOnError">
            <SalesOrderAddRq requestID="1">
                <SalesOrderAdd>
                    <CustomerListID>-3667307488274906879</CustomerListID>
                    <SalesOrderType>SalesOrder</SalesOrderType>
                    <SalesOrderItemAdd>
                        <ListID>-3734314767641313023</ListID>
                        <Qty>1</Qty>
                    </SalesOrderItemAdd>
                </SalesOrderAdd>
            </SalesOrderAddRq>
        </QBPOSXMLMsgsRq>
    </QBPOSXML>
 

Example Response

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

 
    <?xml version="1.0" encoding="windows-1252"?>
    <QBPOSXML>
      <QBPOSXMLMsgsRs>
        <SalesOrderAddRs requestID="1"
                         statusCode="0"
                         statusMessage="Status OK"
                         statusSeverity="Info">
          <SalesOrderRet>
              <TxnID>-3651361889084079871</TxnID>
              <TimeCreated>2013-12-30T02:02:45</TimeCreated>
              <TimeModified>2013-12-30T02:02:45</TimeModified>
              <BalanceDue>71.82</BalanceDue>
              <CustomerListID>-3667307488274906879</CustomerListID>
              <DepositBalance>0.00</DepositBalance>
              <Discount>0.00</Discount>
              <DiscountPercent>0.00</DiscountPercent>
              <ItemsCount>1</ItemsCount>
              <PriceLevelNumber>1</PriceLevelNumber>
              <Qty>1.00</Qty>
              <SalesOrderNumber>3</SalesOrderNumber>
              <SalesOrderStatusDesc>Open</SalesOrderStatusDesc>
              <SalesOrderType>SalesOrder</SalesOrderType>
              <StoreExchangeStatus>Modified</StoreExchangeStatus>
              <Subtotal>66.04</Subtotal>
              <TaxAmount>5.78</TaxAmount>
              <TaxCategory>Local Sales Tax</TaxCategory>
              <TaxPercentage>8.75</TaxPercentage>
              <Total>71.82</Total>
              <TxnDate>2013-12-30</TxnDate>
              <UnfilledPercent>100.00</UnfilledPercent>
              <BillingInformation>
                  <FirstName>Pulkit</FirstName>
                  <LastName>Singhal</LastName>
              </BillingInformation>
              <ShippingInformation>
                  <Shipping>0.00</Shipping>
              </ShippingInformation>
              <SalesOrderItemRet>
                  <ListID>-3734314767641313023</ListID>
                  <TxnLineID>1</TxnLineID>
                  <Commission>0.00</Commission>
                  <Desc1>Eastern Weft leather and cross</Desc1>
                  <Discount>0.00</Discount>
                  <DiscountPercent>0.00</DiscountPercent>
                  <ExtendedPrice>66.04</ExtendedPrice>
                  <ExtendedTax>5.78</ExtendedTax>
                  <ItemNumber>10</ItemNumber>
                  <NumberOfBaseUnits>1.00</NumberOfBaseUnits>
                  <Price>66.04</Price>
                  <PriceLevelNumber>1</PriceLevelNumber>
                  <Qty>1.00</Qty>
                  <QtySold>0.00</QtySold>
                  <TaxAmount>5.78</TaxAmount>
                  <TaxCode>Tax</TaxCode>
                  <TaxPercentage>8.75</TaxPercentage>
                  <UPC>6470203046282</UPC>
                  <Weight>0.00</Weight>
              </SalesOrderItemRet>
          </SalesOrderRet>
        </SalesOrderAddRs>
      </QBPOSXMLMsgsRs>
    </QBPOSXML>