Skip to content

Instantly share code, notes, and snippets.

@twmills
Last active August 29, 2015 13:57
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 twmills/9349053 to your computer and use it in GitHub Desktop.
Save twmills/9349053 to your computer and use it in GitHub Desktop.
Example ShippingEasy API order hash
{ "order" => {
"external_order_identifier" => "ABC-1004",
"ordered_at" => "2014-01-16 14:37:56 -0600",
"order_status" => "awaiting_shipment",
"subtotal_including_tax" => "10.00",
"total_including_tax" => "10.00",
"total_excluding_tax" => "10.00",
"discount_amount" => "0.00",
"coupon_discount" => "1.00",
"subtotal_including_tax" => "0.00",
"subtotal_excluding_tax" => "0.00",
"subtotal_excluding_tax" => "0.00",
"subtotal_tax" => "0.00",
"total_tax" => "0.00",
"base_shipping_cost" => "0.00",
"shipping_cost_including_tax" => "0.00",
"shipping_cost_excluding_tax" => "0.00",
"shipping_cost_tax" => "0.00",
"base_handling_cost" => "0.00",
"handling_cost_excluding_tax" => "0.00",
"handling_cost_including_tax" => "0.00",
"handling_cost_tax" => "0.00",
"base_wrapping_cost" => "0.00",
"wrapping_cost_excluding_tax" => "0.00",
"wrapping_cost_including_tax" => "0.00",
"wrapping_cost_tax" => "0.00",
"notes" => "Please send promptly.",
"billing_company" => "Acme Inc.",
"billing_first_name" => "Fred",
"billing_last_name" => "Jones",
"billing_address" => "1234 Street",
"billing_address2" => "Suite 100",
"billing_city" => "Austin",
"billing_state" => "TX",
"billing_postal_code" => "78701",
"billing_country" => "USA",
"billing_phone_number" => "512-123-1234",
"billing_email" => "test@test.com",
"recipients" => [
{
"first_name" => "Colin",
"last_name" => "Homenick",
"company" => "Wintheiser-Hickle",
"email" => "charles.crona@okeefe.org",
"phone_number" => "637-481-6505",
"residential" => "true",
"address" => "21937 Adelbert Springs",
"address2" => "",
"province" => "",
"state" => "CT",
"city" => "Terryfurt",
"postal_code" => "93322",
"postal_code_plus_4" => "1234",
"country" => "Andorra",
"shipping_method" => "Ground",
"base_cost" => "10.00",
"cost_excluding_tax" => "10.00",
"cost_tax" => "0.00",
"base_handling_cost" => "0.00",
"handling_cost_excluding_tax" => "0.00",
"handling_cost_including_tax" => "0.00",
"handling_cost_tax" => "0.00",
"shipping_zone_id" => "123",
"shipping_zone_name" => "XYZ",
"items_total" => "1",
"items_shipped" => "0",
"line_items" => [
{
"item_name" => "Pencil Holder",
"sku" => "9876543",
"bin_picking_number" => "7",
"unit_price" => "1.30",
"total_excluding_tax" => "1.30",
"weight_in_ounces" => "10",
"quantity" => "1",
"product_options" => { "color" => "red" }
}
]
}
]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment