Skip to content

Instantly share code, notes, and snippets.

@BDQ
Forked from schof/import.json
Last active December 19, 2015 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BDQ/5956617 to your computer and use it in GitHub Desktop.
Save BDQ/5956617 to your computer and use it in GitHub Desktop.
{
"message": "order:new",
"payload": {
"order": {
"channel": "Amazon",
"email": "test1@test.com",
"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