Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created September 25, 2012 15:14
Show Gist options
  • Save BDQ/3782525 to your computer and use it in GitHub Desktop.
Save BDQ/3782525 to your computer and use it in GitHub Desktop.
{
order: {
id: 850712674,
number: "R760610137",
item_total: "47.97",
total: "50.37",
state: "complete",
adjustment_total: "2.4",
user_id: 407201487,
created_at: "2012-09-10T13:37:33Z",
updated_at: "2012-09-25T10:57:28Z",
completed_at: "2012-09-10T13:37:33Z",
payment_total: "0.0",
shipment_state: "pending",
payment_state: "balance_due",
email: "[email protected]",
special_instructions: null,
bill_address: {
id: 614571630,
firstname: "Santina",
lastname: "Quitzon",
address1: "5819 Derick Club",
address2: "Suite 240",
city: "South William",
zipcode: "16804",
phone: "1-252-515-0619 x9455",
company: null,
alternative_phone: null,
country_id: 214,
state_id: 889445952,
state_name: null,
country: {
id: 214,
iso_name: "UNITED STATES",
iso: "US",
iso3: "USA",
name: "United States",
numcode: 840
},
state: {
abbr: "NY",
country_id: 214,
id: 889445952,
name: "New York"
}
},
ship_address: {
id: 269101270,
firstname: "Muhammad",
lastname: "Block",
address1: "0167 Abdiel Highway",
address2: "Suite 200",
city: "South Mae",
zipcode: "16804",
phone: "192-099-0284",
company: null,
alternative_phone: null,
country_id: 214,
state_id: 889445952,
state_name: null,
country: {
id: 214,
iso_name: "UNITED STATES",
iso: "US",
iso3: "USA",
name: "United States",
numcode: 840
},
state: {
abbr: "NY",
country_id: 214,
id: 889445952,
name: "New York"
}
},
line_items: [
{
line_item: {
id: 988118179,
quantity: 3,
price: "15.99",
variant_id: 215054540,
variant: {
id: 215054540,
name: "Ruby on Rails Tote",
count_on_hand: 10,
sku: "ROR-00011",
price: "15.99",
weight: null,
height: null,
width: null,
depth: null,
is_master: true,
cost_price: "13.0",
permalink: "ruby-on-rails-tote"
}
}
}
],
payments: [
{
payment: {
id: 81,
amount: "50.37",
state: "pending",
payment_method_id: 193416319,
payment_method: {
id: 193416319,
name: "Credit Card",
environment: "development"
}
}
}
],
shipments: [
{
shipment: {
id: 80446377,
tracking: null,
number: "H438105531460",
cost: "5.0",
shipped_at: null,
state: "pending",
order_id: "R760610137",
shipping_method: {
name: "UPS Ground",
zone_id: 2,
shipping_category_id: null
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment