Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- All totals and qtys defined exclude cancelled items total and qty -->
- <!-- Ignore values in tag it does not contain right caluclation -->
- <?xml version="1.0" encoding="UTF-8"?>
- <orders>
- <order>
- <order_id>000000042</order_id>
- <ecometry_order_id>000000042</ecometry_order_id>
- <status>complete</status>
- <customer_email>test@accorin.com</customer_email>
- <discount_amount>0</discount_amount>
- <shipping_amount>4.99</shipping_amount><!-- shipping_surcharge will be included in shipping amount -->
- <shipping_tax_amount>0.47</shipping_tax_amount>
- <subtotal>500</subtotal>
- <subtotal_incl_tax>547.5</subtotal_incl_tax>
- <tax_amount>47.97</tax_amount>
- <grand_total>552.96</grand_total>
- <address><!-- TBD this information could probably be at item level as ship information may differ item to item, -->
- <billing>
- <street1>5 Northeastern Blvd</street1>
- <street2>Suite 100</street2>
- <city>Bedford</city>
- <postcode>90012</postcode>
- <region>California</region>
- <country>US</country>
- <firstname>test</firstname>
- <lastname>test</lastname>
- <telephone>XXXXXX</telephone>
- </billing>
- <shipping>
- <street1>5 Northeastern Blvd</street1>
- <street2>Suite 100</street2>
- <city>Bedford</city>
- <postcode>90012</postcode>
- <region>California</region>
- <country>US</country>
- <firstname>test</firstname>
- <lastname>test</lastname>
- <telephone>XXXXXX</telephone>
- </shipping>
- </address>
- <items>
- <item>
- <item_id>ITEM_ID</item_id>
- <name>PRODUCT_NAME</name>
- <sku>PRODUCT_SKU</sku>
- <price>100</price>
- <price_incl_tax>109.5</price_incl_tax><!-- Tim to confirm wheather he can send this info or not -->
- <qty_ordered>5</qty_ordered>
- <row_total>500</row_total>
- <discount_amount>0</discount_amount>
- <shipping_amount>4.99</shipping_amount>
- <tax_amount>47.5</tax_amount>
- <row_total_incl_tax>547.5</row_total_incl_tax><!-- If Tim can pass fine otherwise we can calculate -->
- </item>
- </items>
- <shipments><!--Taken out this section from item section-->
- <shipment><!--each shipment can have multiple tracking number and multiple items, so we dont need to do any grouping it will come from you only-->
- <shipping_method>ups/fedex/dhl</shipping_method>
- <tracking_no>1111111</tracking_no>
- <tracking_link>https://fedex.com/?trackingid=1111111</tracking_link>
- <shipping_method>ups/fedex/dhl</shipping_method>
- <tracking_no>22222222</tracking_no>
- <tracking_link>https://fedex.com/?trackingid=22222222</tracking_link>
- <item>
- <item_id>ITEM_ID</item_id>
- <qty>3</qty>
- <date>XXXXXXXXX</date>
- </item>
- <item>
- <item_id>ITEM_ID</item_id>
- <qty>2</qty>
- <date>XXXXXXXXX</date>
- </item>
- <shipment>
- <shipment>
- <shipping_method>ups/fedex/dhl</shipping_method>
- <tracking_no>3333333</tracking_no>
- <tracking_link>https://fedex.com/?trackingid=3333333</tracking_link>
- <item>
- <item_id>ITEM_ID</item_id>
- <qty>1</qty>
- <date>XXXXXXXXX</date>
- </item>
- <shipment>
- </shipments>
- <cancellations><!--No cancellation sub tag needed as we dont need to group by cancellations-->
- <item>
- <item_id>ITEM_ID</item_id>
- <qty>1</qty>
- <reason>ordered by mistake</reason>
- <date>XXXXXXXXX</date>
- </item>
- <item>
- <item_id>ITEM_ID</item_id>
- <qty>2</qty>
- <reason>color not available</reason>
- <date>XXXXXXXXX</date>
- </item>
- </cancellations>
- </order>
- </orders>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement