-
-
Save BDQ/5956617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": "order:new", | |
"payload": { | |
"order": { | |
"channel": "Amazon", | |
"email": "[email protected]", | |
"currency": "USD", | |
"line_items": [ | |
{ | |
"price": 19.99, | |
"sku": "ABC-123", | |
"name": "Foo T-Shirt Size(L)", | |
"quantity": 1 | |
}, | |
{ | |
"price": 23.99, | |
"sku": "DEF-123", | |
"name": "Foo Socks", | |
"quantity": 3 | |
} | |
], | |
"shipping_address": { | |
"firstname": "Chris", | |
"lastname": "Mar", | |
"address1": "112 Hula Lane", | |
"address2": "", | |
"city": "Leesburg", | |
"zipcode": "20175", | |
"phone": "555-555-1212", | |
"company": "RubyLoco", | |
"country": "US", | |
"state": "Virginia" | |
}, | |
"billing_address": { | |
"firstname": "Chris", | |
"lastname": "Mar", | |
"address1": "112 Billing Lane", | |
"address2": "", | |
"city": "Leesburg", | |
"zipcode": "20175", | |
"phone": "555-555-1212", | |
"company": "RubyLoco", | |
"country": "US", | |
"state": "Viriginia" | |
}, | |
"shipments": [ | |
{ | |
"cost": 29.99, | |
"stock_location": "PCH", | |
"shipping_method": "UPS Next Day", | |
"items": [ | |
{ | |
"sku": "ABC-123", | |
"quantity": 1 | |
}, | |
{ | |
"sku": "DEF-123", | |
"quantity": 3 | |
} | |
] | |
} | |
] | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "country_lookup", | |
"value": [ | |
{ | |
"standard": "us", | |
"iso2": "usa", | |
"name": "United States" | |
}, | |
{ | |
"standard": "ie", | |
"iso3": "eir", | |
"name": "Ireland" | |
} | |
] | |
}, | |
{ | |
"name": "shipping_method_lookup", | |
"value": [ | |
{ | |
"standard": "UPS Next Day", | |
"magento": "U.P.S. Next Day", | |
"amazon": "Standard", | |
"pch": "UPS" | |
}, | |
{ | |
"standard": "USPS Priority", | |
"magento": "U.S.P.S.", | |
"amazon": "Crappy", | |
"pch": "USPS" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment