Last active
August 29, 2015 13:57
-
-
Save LBRapid/9696239 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here is an example order/cart that would need to be sent | |
{ | |
"number" => "311174282", | |
"email" => "[email protected]", | |
"currency" => "USD", | |
"user_id" => "123", | |
"visit_id" => "6590869538865152", | |
"visitor_id" => "3821811678576640", | |
"pageview_id" => "0", | |
"placed_on" => "2013-07-30T19:19:05Z", | |
"updated_at" => "2013-07-30T20:08:39Z", | |
"status" => "complete", | |
"totals" => { | |
"item" => 99.95, | |
"adjustment" => 15, | |
"tax" => 5, | |
"shipping" => 0, | |
"payment" => 114.95, | |
"order" => 114.95 | |
}, | |
"line_items"=> [ | |
{ | |
"id"=> 2, | |
"quantity"=> 1, | |
"price"=> "22.99", | |
"created_at"=> "2013-12-23T16:13:11Z", | |
"updated_at"=> "2013-12-23T16:13:11Z", | |
"variant"=> { | |
"id"=> 2, | |
"name"=> "Ruby on Rails Bag", | |
"sku"=> "ROR-00012", | |
"price"=> "22.99", | |
"product_id"=> 2, | |
"images"=> [ | |
{ | |
"attachment_url"=> "/spree/products/23/product/ror_bag.jpeg?1386100484" | |
} | |
], | |
"product"=> { | |
"created_at"=>"2013-12-23T16:13:11Z", | |
"updated_at"=>"2013-12-23T16:13:11Z", | |
"taxons"=> [ | |
{ | |
"id"=>123, | |
"name"=>"Foobar" | |
}, | |
{ | |
"id"=>456, | |
"taxonomy_id"=>3, | |
"name"=>"Apache" | |
} | |
] | |
} | |
} | |
} | |
], | |
"shipping_address" => { | |
"firstname" => "Brian", | |
"lastname" => "Quinn", | |
"address1" => "7735 Old Georgetown Rd", | |
"address2" => " ", | |
"zipcode" => "20814", | |
"city" => "Bethesda", | |
"state" => "MD", | |
"country" => "US", | |
"phone" => "555-123-456" | |
}, | |
"billing_address" => { | |
"firstname" => "Brian", | |
"lastname" => "Quinn", | |
"address1" => "7735 Old Georgetown Rd", | |
"address2" => " ", | |
"zipcode" => "20814", | |
"city" => "Bethesda", | |
"state" => "MD", | |
"country" => "US", | |
"phone" => "555-123-456" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here is an example product that would need to be sent | |
{ | |
"id"=> 12345, | |
"sku"=> sku, | |
"updated_at" => "2014-02-03T19:22:54.386Z", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment