Skip to content

Instantly share code, notes, and snippets.

@schof
Forked from BDQ/import.json
Last active December 19, 2015 11:59
Show Gist options
  • Save schof/5952054 to your computer and use it in GitHub Desktop.
Save schof/5952054 to your computer and use it in GitHub Desktop.
{
"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
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment