Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created December 11, 2015 22:26
Show Gist options
  • Save theinventor/f5f3d6ecf56074bedeff to your computer and use it in GitHub Desktop.
Save theinventor/f5f3d6ecf56074bedeff to your computer and use it in GitHub Desktop.
{
"number": "123ABC",
"shipping_method": "UPS Ground",
"shipping_price": 34.15,
"status": "Processed",
"entries": [
{
"123123": {
"quantity_requested": 5,
"quantity_backordered": 0,
"quantity_processed": 5,
"price_each": 44.99
}
},
{
"123111": {
"quantity_requested": 5,
"quantity_backordered": 2,
"quantity_processed": 3,
"price_each": 19.99
}
}
]
}
@theinventor
Copy link
Author

They keys like 123123 are the SKU, in ruby i can easily do order.keys.each to loop over the lines. this is a good response format..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment