Skip to content

Instantly share code, notes, and snippets.

@jevy
Created September 4, 2012 16:57
Show Gist options
  • Save jevy/3623438 to your computer and use it in GitHub Desktop.
Save jevy/3623438 to your computer and use it in GitHub Desktop.
Sample multiple product creation (v4)
{
"order":
{
"language_pref": "en",
"source_id":"iPhone v3.3",
"products_attributes": [
{
"type": "Postcard",
"message_text": "Check out this awesome picture!",
"image_external_id": "1111-1111-1111-1111",
"frame_id": 1,
"shipping_address_attributes":
{
"f_name":"Jevin",
"l_name":"Maltais",
"domain":"Something",
"street_1":"123 Main St.",
"street_2":"",
"city":"Ottawa",
"prov":"ON",
"postal_code":"K1J 0A6"
}
},
{
"type": "Postcard",
"message_text": "Check out this awesome picture!",
"image_external_id": "1111-1111-1111-1111",
"frame_id": 1,
"shipping_address_attributes":
{
"f_name":"Piotr",
"l_name":"Sarnaki",
"domain":"Something",
"street_1":"123 Main St.",
"street_2":"",
"city":"Krakow",
"prov":"XX",
"postal_code":""
}
},
{
"type": "Postcard",
"message_text": "Check out this awesome picture!",
"image_external_id": "1111-1111-1111-1111",
"frame_id": 1,
"shipping_address_attributes":
{
"f_name":"Jevin",
"l_name":"Maltais",
"domain":"Something",
"street_1":"123 Main St.",
"street_2":"",
"city":"Ottawa",
"prov":"ON",
"postal_code":"K1J 0A6"
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment