Skip to content

Instantly share code, notes, and snippets.

@JDutil
Created August 13, 2012 21:27
Show Gist options
  • Save JDutil/3344217 to your computer and use it in GitHub Desktop.
Save JDutil/3344217 to your computer and use it in GitHub Desktop.
Merchant OS API
<?xml version="1.0"?>
<Sale>
<saleID>53</saleID>
<timeStamp>2012-08-13T21:16:19+00:00</timeStamp>
<discountPercent>0</discountPercent>
<completed>true</completed>
<archived>false</archived>
<voided>false</voided>
<tax1Rate>0.0925</tax1Rate>
<tax2Rate>0</tax2Rate>
<change currency="USD">0</change>
<ticketNumber readonly="true">220000000053</ticketNumber>
<calcDiscount currency="USD" readonly="true">0</calcDiscount>
<calcTotal currency="USD" readonly="true">54.44</calcTotal>
<calcSubtotal currency="USD" readonly="true">50</calcSubtotal>
<calcTaxable currency="USD" readonly="true">48</calcTaxable>
<calcNonTaxable currency="USD" readonly="true">2</calcNonTaxable>
<calcAvgCost currency="USD" readonly="true">0</calcAvgCost>
<calcFIFOCost currency="USD" readonly="true">0</calcFIFOCost>
<calcTax1 currency="USD" readonly="true">4.44</calcTax1>
<calcTax2 currency="USD" readonly="true">0</calcTax2>
<customerID>1</customerID>
<discountID>0</discountID>
<employeeID>4</employeeID>
<quoteID>0</quoteID>
<registerID>1</registerID>
<shipToID>49</shipToID>
<shopID>1</shopID>
<taxCategoryID>1</taxCategoryID>
<Customer>
<customerID>1</customerID>
<firstName>Jeff</firstName>
<lastName>Dutil</lastName>
<archived>false</archived>
<title></title>
<company></company>
<createTime>2012-08-13T19:40:35+00:00</createTime>
<timeStamp>2012-08-13T20:43:36+00:00</timeStamp>
<contactID>7</contactID>
<creditAccountID>0</creditAccountID>
<customerTypeID>0</customerTypeID>
<discountID>0</discountID>
<employeeID>0</employeeID>
<noteID>0</noteID>
<taxCategoryID>0</taxCategoryID>
</Customer>
<ShipTo>
<shipToID>49</shipToID>
<shipped>false</shipped>
<timeStamp>2012-08-13T21:16:19+00:00</timeStamp>
<shipNote></shipNote>
<firstName>Jeff</firstName>
<lastName>Dutil</lastName>
<company></company>
<customerID>1</customerID>
<contactID>0</contactID>
<saleID>53</saleID>
</ShipTo>
<SaleLines>
<SaleLine>
<saleLineID>113</saleLineID>
<createTime>2012-08-13T21:16:19+00:00</createTime>
<timeStamp>2012-08-13T21:16:19+00:00</timeStamp>
<unitQuantity>1</unitQuantity>
<unitPrice currency="USD">9</unitPrice>
<normalUnitPrice currency="USD">0</normalUnitPrice>
<discountAmount currency="USD">0</discountAmount>
<discountPercent>0</discountPercent>
<avgCost currency="USD">0</avgCost>
<fifoCost currency="USD">0</fifoCost>
<tax>true</tax>
<tax1Rate>0</tax1Rate>
<tax2Rate>0</tax2Rate>
<isLayaway>false</isLayaway>
<isWorkorder>false</isWorkorder>
<isSpecialOrder>false</isSpecialOrder>
<calcLineDiscount currency="USD" readonly="true">0</calcLineDiscount>
<calcTransactionDiscount currency="USD" readonly="true">0</calcTransactionDiscount>
<calcTotal currency="USD" readonly="true">9.8325</calcTotal>
<calcSubtotal currency="USD" readonly="true">9</calcSubtotal>
<calcTax1 currency="USD" readonly="true">0.8325</calcTax1>
<calcTax2 currency="USD" readonly="true">0</calcTax2>
<taxClassID>0</taxClassID>
<customerID>1</customerID>
<discountID>0</discountID>
<employeeID>4</employeeID>
<itemID>2</itemID>
<noteID>0</noteID>
<parentSaleLineID>0</parentSaleLineID>
<shopID>1</shopID>
<saleID>53</saleID>
</SaleLine>
<SaleLine>
<saleLineID>115</saleLineID>
<createTime>2012-08-13T21:16:19+00:00</createTime>
<timeStamp>2012-08-13T21:16:19+00:00</timeStamp>
<unitQuantity>1</unitQuantity>
<unitPrice currency="USD">39</unitPrice>
<normalUnitPrice currency="USD">0</normalUnitPrice>
<discountAmount currency="USD">0</discountAmount>
<discountPercent>0</discountPercent>
<avgCost currency="USD">0</avgCost>
<fifoCost currency="USD">0</fifoCost>
<tax>true</tax>
<tax1Rate>0</tax1Rate>
<tax2Rate>0</tax2Rate>
<isLayaway>false</isLayaway>
<isWorkorder>false</isWorkorder>
<isSpecialOrder>false</isSpecialOrder>
<calcLineDiscount currency="USD" readonly="true">0</calcLineDiscount>
<calcTransactionDiscount currency="USD" readonly="true">0</calcTransactionDiscount>
<calcTotal currency="USD" readonly="true">42.6075</calcTotal>
<calcSubtotal currency="USD" readonly="true">39</calcSubtotal>
<calcTax1 currency="USD" readonly="true">3.6075</calcTax1>
<calcTax2 currency="USD" readonly="true">0</calcTax2>
<taxClassID>0</taxClassID>
<customerID>1</customerID>
<discountID>0</discountID>
<employeeID>4</employeeID>
<itemID>4</itemID>
<noteID>0</noteID>
<parentSaleLineID>0</parentSaleLineID>
<shopID>1</shopID>
<saleID>53</saleID>
</SaleLine>
<SaleLine>
<saleLineID>117</saleLineID>
<createTime>2012-08-13T21:16:19+00:00</createTime>
<timeStamp>2012-08-13T21:16:19+00:00</timeStamp>
<unitQuantity>1</unitQuantity>
<unitPrice currency="USD">2</unitPrice>
<normalUnitPrice currency="USD">0</normalUnitPrice>
<discountAmount currency="USD">0</discountAmount>
<discountPercent>0</discountPercent>
<avgCost currency="USD">0</avgCost>
<fifoCost currency="USD">0</fifoCost>
<tax>false</tax>
<tax1Rate>0</tax1Rate>
<tax2Rate>0</tax2Rate>
<isLayaway>false</isLayaway>
<isWorkorder>false</isWorkorder>
<isSpecialOrder>false</isSpecialOrder>
<calcLineDiscount currency="USD" readonly="true">0</calcLineDiscount>
<calcTransactionDiscount currency="USD" readonly="true">0</calcTransactionDiscount>
<calcTotal currency="USD" readonly="true">2</calcTotal>
<calcSubtotal currency="USD" readonly="true">2</calcSubtotal>
<calcTax1 currency="USD" readonly="true">0</calcTax1>
<calcTax2 currency="USD" readonly="true">0</calcTax2>
<taxClassID>0</taxClassID>
<customerID>1</customerID>
<discountID>0</discountID>
<employeeID>4</employeeID>
<itemID>240</itemID>
<noteID>0</noteID>
<parentSaleLineID>0</parentSaleLineID>
<shopID>1</shopID>
<saleID>53</saleID>
</SaleLine>
</SaleLines>
<SalePayments>
<SalePayment>
<salePaymentID>41</salePaymentID>
<amount currency="USD">54.44</amount>
<createTime>2012-08-13T21:16:19+00:00</createTime>
<archived>false</archived>
<saleID>53</saleID>
<paymentTypeID>3</paymentTypeID>
<ccChargeID>0</ccChargeID>
<registerID>1</registerID>
<employeeID>4</employeeID>
<creditAccountID>0</creditAccountID>
</SalePayment>
</SalePayments>
</Sale>
<?xml version="1.0" encoding="UTF-8"?>
<Sale>
<timeStamp type="datetime">2012-08-09T23:01:32Z</timeStamp>
<completed type="boolean">true</completed>
<customerID>1</customerID>
<employeeID type="integer">4</employeeID>
<registerID type="integer">1</registerID>
<shopID type="integer">1</shopID>
<taxCategoryID type="integer">1</taxCategoryID>
<ShipTo>
<firstName>Jeff</firstName>
<lastName>Dutil</lastName>
<company nil="true"></company>
<customerID>1</customerID>
<Contact>
<Addresses>
<ContactAddress>
<address1>234 Woodbine By The LK 2</address1>
<address2></address2>
<city>Colchester</city>
<state>Vermont</state>
<zip>05446</zip>
<country>United States</country>
</ContactAddress>
</Addresses>
<Emails>
<ContactEmail>
<address>[email protected]</address>
<useType>Primary</useType>
</ContactEmail>
</Emails>
<Phones>
<ContactPhone>
<number>555-555-5555</number>
<useType>Home</useType>
</ContactPhone>
</Phones>
<noEmail type="boolean">true</noEmail>
<noMail type="boolean">true</noMail>
<noPhone type="boolean">true</noPhone>
</Contact>
</ShipTo>
<SaleLines type="array">
<SaleLine>
<unitQuantity type="integer">1</unitQuantity>
<unitPrice type="decimal">9.0</unitPrice>
<tax type="boolean">true</tax>
<taxClassID type="integer">0</taxClassID>
<customerID>1</customerID>
<itemID>2</itemID>
</SaleLine>
<SaleLine>
<unitQuantity type="integer">1</unitQuantity>
<unitPrice type="decimal">39.0</unitPrice>
<tax type="boolean">true</tax>
<taxClassID type="integer">0</taxClassID>
<customerID>1</customerID>
<itemID>4</itemID>
</SaleLine>
<SaleLine>
<customerID>1</customerID>
<unitQuantity type="integer">1</unitQuantity>
<unitPrice type="decimal">2.0</unitPrice>
<tax type="boolean">false</tax>
<taxClassID type="integer">0</taxClassID>
<itemID>240</itemID>
</SaleLine>
</SaleLines>
<SalePayments type="array">
<SalePayment>
<amount type="decimal">54.44</amount>
<paymentTypeID type="integer">3</paymentTypeID>
</SalePayment>
</SalePayments>
</Sale>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment