Skip to content

Instantly share code, notes, and snippets.

@trappist
Created December 1, 2012 21:14
Show Gist options
  • Select an option

  • Save trappist/4185146 to your computer and use it in GitHub Desktop.

Select an option

Save trappist/4185146 to your computer and use it in GitHub Desktop.
valid json payload for Spree checkout/address request
{
:state => "address",
:auth_token => auth_token, {
:order => {
:ship_address_attributes => {
:firstname => "Bob",
:lastname => "Jones",
:address1 => "123 Main Street",
:address2 => "",
:city => "Spreeville",
:state_id => "525212995", # TODO: load app and get a valid state
:country_id => "214",
:zipcode => "76017",
:phone => "1234567890"
},
:use_shipping => "1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment