Skip to content

Instantly share code, notes, and snippets.

@sanchojaf
Last active March 13, 2017 18:00
Show Gist options
  • Save sanchojaf/81edb0ef7e8bec996a8283e9fb5b12a8 to your computer and use it in GitHub Desktop.
Save sanchojaf/81edb0ef7e8bec996a8283e9fb5b12a8 to your computer and use it in GitHub Desktop.
json_payload =
"{
\"orders\": [
{
\"id\": \"R123456789\",
\"status\": \"complete\",
\"channel\": \"spree\",
\"email\": \"spree@example.com\",
\"currency\": \"USD\",
\"placed_on\": \"2017-03-10T15: 20: 43Z\",
\"updated_at\": \"2017-03-11T15: 20: 44Z\",
\"totals\": {
\"item\": 15.99,
\"adjustment\": 0.8,
\"tax\": 0.0,
\"shipping\": 0.0,
\"payment\": 0.0,
\"order\": 16.79
},
\"adjustments\": [
{
\"name\": \"discount\",
\"value\": 0.0
},
{
\"name\": \"tax\",
\"value\": 0.0
},
{
\"name\": \"shipping\",
\"value\": 0.0
}
],
\"guest_token\": \"IMV-0mKGIfPiUnPODapYOA1489245643107\",
\"shipping_instructions\": null,
\"line_items\": [
{
\"id\": 1,
\"product_id\": \"ROR-00011\",
\"name\": \"Ruby on Rails Tote\",
\"quantity\": 1,
\"price\": 15.99
}
],
\"payments\": [
{
\"id\": 1,
\"number\": \"P32MUS0Z\",
\"status\": \"pending\",
\"amount\": 16.79,
\"payment_method\": \"Credit Card\",
\"source\": {
\"name\": \"Sean Schofield\",
\"cc_type\": \"visa\",
\"last_digits\": \"1111\",
\"source_type\": \"Spree: : CreditCard\"
}
}
],
\"promotions\": [
],
\"shipping_address\": null,
\"billing_address\": null
},
{
\"id\": \"R987654321\",
\"status\": \"complete\",
\"channel\": \"spree\",
\"email\": \"spree@example.com\",
\"currency\": \"USD\",
\"placed_on\": \"2017-03-10T15: 20: 43Z\",
\"updated_at\": \"2017-03-11T15: 20: 44Z\",
\"totals\": {
\"item\": 22.99,
\"adjustment\": 2.36,
\"tax\": 1.15,
\"shipping\": 5.0,
\"payment\": 0.0,
\"order\": 30.35
},
\"adjustments\": [
{
\"name\": \"discount\",
\"value\": 0.0
},
{
\"name\": \"tax\",
\"value\": 1.15
},
{
\"name\": \"shipping\",
\"value\": 5.0
}
],
\"guest_token\": \"yHKVIBflQXMrejLC8npFSg1489245643136\",
\"shipping_instructions\": null,
\"line_items\": [
{
\"id\": 2,
\"product_id\": \"ROR-00012\",
\"name\": \"Ruby on Rails Bag\",
\"quantity\": 1,
\"price\": 22.99
}
],
\"payments\": [
{
\"id\": 2,
\"number\": \"P81HU2F5\",
\"status\": \"pending\",
\"amount\": 30.35,
\"payment_method\": \"Credit Card\",
\"source\": {
\"name\": \"Sean Schofield\",
\"cc_type\": \"visa\",
\"last_digits\": \"1111\",
\"source_type\": \"Spree: : CreditCard\"
}
}
],
\"promotions\": [
],
\"shipping_address\": {
\"firstname\": \"Aliyah\",
\"lastname\": \"Waters\",
\"address1\": \"646 Kuhlman Prairie\",
\"address2\": \"Suite 046\",
\"zipcode\": \"16804\",
\"city\": \"South Mathiastown\",
\"state\": \"NY\",
\"country\": \"US\",
\"phone\": \"312.668.4913\"
},
\"billing_address\": {
\"firstname\": \"Sigmund\",
\"lastname\": \"Gerlach\",
\"address1\": \"91804 Hansen Grove\",
\"address2\": \"Suite 520\",
\"zipcode\": \"16804\",
\"city\": \"Sanfordtown\",
\"state\": \"NY\",
\"country\": \"US\",
\"phone\": \"475.219.1022\"
}
}
],
\"products\": [
{
\"id\": \"ROR-00011\",
\"name\": \"Ruby on Rails Tote\",
\"sku\": \"ROR-00011\",
\"description\": \"Reprehenderit et repudiandae ipsum atque aut. Fuga perspiciatis vitae quis laborum nihil. Adipisci architecto voluptas maxime quia consequatur voluptatum commodi vel. Eos nemo atque eius sapiente. Sed et beatae a quia ut repellendus.\",
\"price\": 15.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 27Z\",
\"permalink\": \"ruby-on-rails-tote\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Bags\"
],
[
\"Brands\",
\"Rails\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"ROR-00011\",
\"price\": 15.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/21\/original\/ror_tote.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
},
{
\"url\": \"\/spree\/products\/22\/original\/ror_tote_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/21\/original\/ror_tote.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
},
{
\"url\": \"\/spree\/products\/22\/original\/ror_tote_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
},
{
\"id\": \"ROR-00012\",
\"name\": \"Ruby on Rails Bag\",
\"sku\": \"ROR-00012\",
\"description\": \"Qui cum ut sed nostrum repudiandae vel eum. Libero non sapiente quos asperiores. Sint et officiis eum vel et omnis.\",
\"price\": 22.99,
\"cost_price\": 21.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"ruby-on-rails-bag\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Bags\"
],
[
\"Brands\",
\"Rails\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"ROR-00012\",
\"price\": 22.99,
\"cost_price\": 21.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/23\/original\/ror_bag.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/23\/original\/ror_bag.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
},
{
\"id\": \"ROR-001\",
\"name\": \"Ruby on Rails Baseball Jersey\",
\"sku\": \"ROR-001\",
\"description\": \"Voluptas ab similique nam molestiae. Dolores alias illo nam sint ut veniam numquam. Tempora velit omnis natus dolore fugiat quis enim nihil. Eos tempore dolor quidem ipsa dolorem maiores. Molestiae illo consectetur ipsa blanditiis adipisci pariatur.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"ruby-on-rails-baseball-jersey\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Rails\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"ROR-00001\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"S\",
\"Color\": \"Red\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/1\/original\/ror_baseball_jersey_red.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/2\/original\/ror_baseball_jersey_back_red.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00002\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"S\",
\"Color\": \"Blue\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/3\/original\/ror_baseball_jersey_blue.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/4\/original\/ror_baseball_jersey_back_blue.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00003\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"S\",
\"Color\": \"Green\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/5\/original\/ror_baseball_jersey_green.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/6\/original\/ror_baseball_jersey_back_green.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00004\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"M\",
\"Color\": \"Red\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/7\/original\/ror_baseball_jersey_red.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/8\/original\/ror_baseball_jersey_back_red.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00005\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"M\",
\"Color\": \"Blue\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/9\/original\/ror_baseball_jersey_blue.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/10\/original\/ror_baseball_jersey_back_blue.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00006\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"M\",
\"Color\": \"Green\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/11\/original\/ror_baseball_jersey_green.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/12\/original\/ror_baseball_jersey_back_green.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00007\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"L\",
\"Color\": \"Red\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/13\/original\/ror_baseball_jersey_red.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/14\/original\/ror_baseball_jersey_back_red.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00008\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"L\",
\"Color\": \"Blue\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/15\/original\/ror_baseball_jersey_blue.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/16\/original\/ror_baseball_jersey_back_blue.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00009\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"L\",
\"Color\": \"Green\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/17\/original\/ror_baseball_jersey_green.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/18\/original\/ror_baseball_jersey_back_green.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
},
{
\"sku\": \"ROR-00010\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
\"Size\": \"XL\",
\"Color\": \"Green\"
},
\"images\": [
{
\"url\": \"\/spree\/products\/19\/original\/ror_baseball_jersey_green.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
},
{
\"url\": \"\/spree\/products\/20\/original\/ror_baseball_jersey_back_green.png\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 240,
\"width\": 240
}
}
]
}
],
\"options\": [
\"tshirt-size\",
\"tshirt-color\"
],
\"images\": [
{
\"url\": \"\/spree\/products\/24\/original\/ror_baseball.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
},
{
\"url\": \"\/spree\/products\/25\/original\/ror_baseball_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
},
{
\"id\": \"ROR-00013\",
\"name\": \"Ruby on Rails Jr. Spaghetti\",
\"sku\": \"ROR-00013\",
\"description\": \"Aspernatur atque aut eos velit. Saepe quia veniam numquam assumenda molestiae omnis. Sunt et mollitia asperiores sapiente ut qui quas ut.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"ruby-on-rails-jr-spaghetti\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"Shirts\"
],
[
\"Brands\",
\"Rails\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"ROR-00013\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/26\/original\/ror_jr_spaghetti.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/26\/original\/ror_jr_spaghetti.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
},
{
\"id\": \"ROR-00015\",
\"name\": \"Ruby on Rails Ringer T-Shirt\",
\"sku\": \"ROR-00015\",
\"description\": \"Itaque aut similique quia praesentium repellat. Veritatis aut quia enim distinctio est incidunt asperiores et. Animi aut sit culpa sint nobis tempore in molestias. Dignissimos quasi sunt at a sapiente. Molestias deserunt aliquam suscipit placeat voluptatibus.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"ruby-on-rails-ringer-t-shirt\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Rails\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"ROR-00015\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/29\/original\/ror_ringer.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
},
{
\"url\": \"\/spree\/products\/30\/original\/ror_ringer_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/29\/original\/ror_ringer.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
},
{
\"url\": \"\/spree\/products\/30\/original\/ror_ringer_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 360,
\"width\": 360
}
}
]
},
{
\"id\": \"RUB-00001\",
\"name\": \"Ruby Baseball Jersey\",
\"sku\": \"RUB-00001\",
\"description\": \"Vel tenetur expedita consequuntur est. A iste et facere quis nobis eligendi ullam. Et blanditiis doloremque similique consequatur voluptatem quasi numquam ratione.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"ruby-baseball-jersey\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Ruby\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"RUB-00001\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/34\/original\/ruby_baseball.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 477,
\"width\": 495
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/34\/original\/ruby_baseball.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 477,
\"width\": 495
}
}
]
},
{
\"id\": \"APC-00001\",
\"name\": \"Apache Baseball Jersey\",
\"sku\": \"APC-00001\",
\"description\": \"Provident dolores est nemo aspernatur et. Aut reprehenderit repellat corrupti velit et. Delectus quis libero laboriosam id voluptas magni nesciunt dolore.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"apache-baseball-jersey\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Apache\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"APC-00001\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/33\/original\/apache_baseball.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 484,
\"width\": 504
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/33\/original\/apache_baseball.png\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 484,
\"width\": 504
}
}
]
},
{
\"id\": \"SPR-00001\",
\"name\": \"Spree Baseball Jersey\",
\"sku\": \"SPR-00001\",
\"description\": \"Maiores quasi quo occaecati fugit numquam quia velit. Recusandae iste blanditiis in facere nobis. Ut velit voluptate ut possimus maiores alias aliquid ut.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"spree-baseball-jersey\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Spree\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"SPR-00001\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/41\/original\/spree_jersey.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
},
{
\"url\": \"\/spree\/products\/42\/original\/spree_jersey_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
}
],
\"options\": [
\"tshirt-size\",
\"tshirt-color\"
],
\"images\": [
{
\"url\": \"\/spree\/products\/41\/original\/spree_jersey.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
},
{
\"url\": \"\/spree\/products\/42\/original\/spree_jersey_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
},
{
\"id\": \"SPR-00013\",
\"name\": \"Spree Jr. Spaghetti\",
\"sku\": \"SPR-00013\",
\"description\": \"Id quis voluptates velit optio. Odio laborum fugiat quisquam consequuntur aspernatur. Illum aut exercitationem molestiae delectus harum. Voluptatem enim tempore quis aut fuga. Sint accusamus sapiente quaerat neque.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"spree-jr-spaghetti\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"Shirts\"
],
[
\"Brands\",
\"Spree\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"SPR-00013\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/40\/original\/spree_spaghetti.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/40\/original\/spree_spaghetti.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
},
{
\"id\": \"SPR-00015\",
\"name\": \"Spree Ringer T-Shirt\",
\"sku\": \"SPR-00015\",
\"description\": \"Excepturi maiores et optio dolorem blanditiis harum corporis. Et qui recusandae suscipit veniam est commodi libero molestiae. Molestiae aspernatur corrupti repellat debitis. Adipisci eos quidem repellendus sed totam.\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"available_on\": \"2017-03-11T15: 20: 28Z\",
\"permalink\": \"spree-ringer-t-shirt\",
\"meta_description\": null,
\"meta_keywords\": null,
\"shipping_category\": \"Default\",
\"taxons\": [
[
\"Brands\",
\"Clothing\",
\"T-Shirts\"
],
[
\"Brands\",
\"Spree\"
]
],
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"variants\": [
{
\"sku\": \"SPR-00015\",
\"price\": 19.99,
\"cost_price\": 17.0,
\"weight\": \"0.0\",
\"height\": null,
\"width\": null,
\"depth\": null,
\"options\": {
},
\"images\": [
{
\"url\": \"\/spree\/products\/38\/original\/spree_ringer_t.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
},
{
\"url\": \"\/spree\/products\/39\/original\/spree_ringer_t_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
}
],
\"options\": [
],
\"images\": [
{
\"url\": \"\/spree\/products\/38\/original\/spree_ringer_t.jpeg\",
\"position\": 1,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
},
{
\"url\": \"\/spree\/products\/39\/original\/spree_ringer_t_back.jpeg\",
\"position\": 2,
\"title\": null,
\"type\": \"original\",
\"dimensions\": {
\"height\": 480,
\"width\": 480
}
}
]
}
]
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment