Skip to content

Instantly share code, notes, and snippets.

@jebai0521
Created October 30, 2019 13:46
Show Gist options
  • Save jebai0521/578592ed8eb63efd3bbb50bb5fcba21b to your computer and use it in GitHub Desktop.
Save jebai0521/578592ed8eb63efd3bbb50bb5fcba21b to your computer and use it in GitHub Desktop.
{
"targetFunc":"cart.update",
"data":{
"token":"7e26208fe172f66ec506c15030500e0c",
"note":null,
"attributes":{
},
"original_total_price":500000,
"total_price":500000,
"total_discount":0,
"total_weight":0,
"item_count":4,
"items":[
{
"id":31015092453461,
"properties":null,
"quantity":1,
"variant_id":31015092453461,
"key":"31015092453461:e095fd8a94d26aea01e13fbbc41d99a0",
"title":"LITE-BOX - 55cm / Deep Red",
"price":125000,
"original_price":125000,
"discounted_price":125000,
"line_price":125000,
"original_line_price":125000,
"total_discount":0,
"discounts":[
],
"sku":"42N*10004-1",
"grams":0,
"vendor":"Samsonite SG",
"taxable":true,
"product_id":4321705689173,
"product_has_only_default_variant":false,
"gift_card":false,
"final_price":125000,
"final_line_price":125000,
"url":"/products/lite-box?variant=31015092453461",
"featured_image":{
"url":"https://cdn.shopify.com/s/files/1/0255/0661/1285/products/lite-box1.jpg?v=1572319207",
"aspect_ratio":1,
"alt":"LITE-BOX"
},
"image":"https://cdn.shopify.com/s/files/1/0255/0661/1285/products/lite-box1.jpg?v=1572319207",
"handle":"lite-box",
"requires_shipping":true,
"product_type":"",
"product_title":"LITE-BOX",
"product_description":"
Lite-Box, Samsonite’s most up-to-date Curv® collection is the top choice of discerning travellers who seek for quality material & sleek design.
Material: Durable & light HS Curv® woven material
Security: TSA-approved digit lock
Volume: 124L
",
"variant_title":"55cm / Deep Red",
"variant_options":[
"55cm",
"Deep Red"
],
"options_with_values":[
{
"name":"Size",
"value":"55cm"
},
{
"name":"Color",
"value":"Deep Red"
}
],
"line_level_discount_allocations":[
]
},
{
"id":31044722360405,
"properties":{
},
"quantity":3,
"variant_id":31044722360405,
"key":"31044722360405:1f140f27f3ce3201f420869a9977fd6c",
"title":"LITE-BOX - 81cm / Deep Blue",
"price":125000,
"original_price":125000,
"discounted_price":125000,
"line_price":375000,
"original_line_price":375000,
"total_discount":0,
"discounts":[
],
"sku":"",
"grams":0,
"vendor":"Samsonite SG",
"taxable":true,
"product_id":4321705689173,
"product_has_only_default_variant":false,
"gift_card":false,
"final_price":125000,
"final_line_price":375000,
"url":"/products/lite-box?variant=31044722360405",
"featured_image":{
"url":"https://cdn.shopify.com/s/files/1/0255/0661/1285/products/lite-box-blue3.jpg?v=1572322267",
"aspect_ratio":1,
"alt":"LITE-BOX"
},
"image":"https://cdn.shopify.com/s/files/1/0255/0661/1285/products/lite-box-blue3.jpg?v=1572322267",
"handle":"lite-box",
"requires_shipping":true,
"product_type":"",
"product_title":"LITE-BOX",
"product_description":"
Lite-Box, Samsonite’s most up-to-date Curv® collection is the top choice of discerning travellers who seek for quality material & sleek design.
Material: Durable & light HS Curv® woven material
Security: TSA-approved digit lock
Volume: 124L
",
"variant_title":"81cm / Deep Blue",
"variant_options":[
"81cm",
"Deep Blue"
],
"options_with_values":[
{
"name":"Size",
"value":"81cm"
},
{
"name":"Color",
"value":"Deep Blue"
}
],
"line_level_discount_allocations":[
]
}
],
"requires_shipping":true,
"currency":"SGD",
"items_subtotal_price":500000,
"cart_level_discount_applications":[
]
},
"msgId":"61b3edbb-e0e9-b1dd-53bf-d221f4e513ec"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment