Order Subtotal_items
Data structure of an subtotal items
Field | Column Type | Description | Example |
---|---|---|---|
id | String | Order item's ID (ID of an order item's collection, including item_type, item_id..and so on) 系統自行創建訂單品項ID | 5b2b64bd8d1db91156002687 |
item_type | String | Order item type: Product 商品 AddonProduct 加購品 Gift 贈品 CustomProduct 自訂商品 | Product |
item_data (第三方合作夥伴適用) | Hash | CartItem snapshot 在第三方合作夥伴下單之前,在購物車內時的資訊快照 | |
item_id | String | ID of Product/Addon Product/Gift 商品/加購品/贈品的ID (Custom Product doesn't have a item_id) (自訂商品沒有item_id) | 5892d7339a76f01718000b53 |
item_variation_id | String | (To-Be-Deprecated) 規格商品ID請使用下方item_variation_key欄位 | |
item_variation_key | String | Variation ID 規格商品的ID | 5b2b5e4a4e22a6ff3200259d |
item_price | Money | Sale price 特價 | NT$5000 |
price | Money | Price 原價格 | NT$9999 |
cost | Money | Cost 成本價 | NT$100 |
item_points | Integer | Points used for single item 兌換商品所需點數 | 7 |
title_translations | Translation | Product name 商品名稱 | { "en": "Sl Watch", "zh-hant": "Sl 手錶" } |
fields_translations | Hash | Product variation combination Containing the translation of the combination of variant type | { "en": [ "Red", "M" ], "zh-hant": [ "紅", "中" ] } |
sku | String | Product SKU 商品貨號 | sl_watch_red_m |
is_preorder | Boolean | Is preorder 是否是預購商品 | false |
quantity | Integer | Order item quantity 商品數量 | 1 |
total | Money | Order item price multiplied by quantity 商品總價 | NT$5000 |
order_discounted_price | Money | Discount amount for discounts of all products 該商品適用全單折扣之金額 (註:整筆訂單之折扣,會依金額比例分攤至不同的商品中) | |
discounted_price | Money | Discount amount for discounts of selected products 該商品適用指定商品折扣之金額 | NT$180 |
total_points | Integer | Total points cost on same product (item_points * quantity) 此商品的總點數 | 14 |
media | Media | Cover image of the order item 商品圖片 | Please refer the JSON example below. |
object_data | Object | Product snapshot 商品快照 | { "location_id": "LU1234" } |
JSON example
{
"id":"5b2b64bd8d1db91156002687",
"item_type":"Product",
"item_data":{
"cart_item_id":"5daaf385e388091fa80f61b8",
"promotion_id":null,
"parent_item_ids":[
],
"triggering_item_id":"",
"order_promotion_items":{
}
},
"item_id":"5892d7339a76f01718000b53",
"item_variation_id":"5b2b5e4a4e22a6ff3200259d",
"item_price":{
"cents":5000,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$5,000",
"dollars":5000
},
"price":{
"cents":9999,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$9,999",
"dollars":9999
},
"cost":{
"cents":100,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$100",
"dollars":100
},
"title_translations":{
"en":"Sl Watch",
"zh-hant":"Sl 手錶"
},
"fields_translations":{
"en":[
"Red",
"M"
],
"zh-hant":[
"紅",
"中"
]
},
"sku":"sl_watch_red_m",
"is_preorder":false,
"quantity":1,
"total":{
"cents":5000,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$5,000",
"dollars":5000
},
"order_discounted_price":null,
"discounted_price":{
"cents":180,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$180",
"dollars":180.0
},
"media":{
"images":{
"original":{
"width":2000.0,
"height":682.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/original.jpg?1596080803"
},
"large":{
"width":500.0,
"height":171.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/large.jpg?1596080803"
},
"xlarge":{
"width":1000.0,
"height":341.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/xlarge.jpg?1596080803"
},
"thumb":{
"width":200.0,
"height":200.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/thumb.jpg?1596080803"
},
"transparent_large":{
"width":500.0,
"height":171.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/large.jpg?1596080803"
},
"transparent_xlarge":{
"width":1000.0,
"height":341.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/xlarge.jpg?1596080803"
}
},
"_id":"5f2242a478178f0030a06f53",
"alt_translations":{
}
}
},
{
"id":"5e09db82353de7001e4768b7",
"item_type":"Gift",
"item_data":{
"cart_item_id":"5e09db33a6d8840030c0ba78",
"promotion_id":null,
"parent_item_ids":[
"5e09db81353de7001e4768b0"
],
"triggering_item_id":""
},
"item_id":"5de867efce10df0018d91781",
"item_variation_id":"",
"item_variation_key":"",
"item_price":{
"cents":0,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"",
"dollars":0.0
},
"price":{
"cents":0,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"",
"dollars":0.0
},
"cost":{
"cents":10,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$10",
"dollars":10.0
},
"item_points":7,
"title_translations":{
"zh-hant":"橘子"
},
"fields_translations":{
},
"sku":"FRU008",
"is_preorder":false,
"quantity":2,
"total":{
"cents":0,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"",
"dollars":0.0
},
"order_discounted_price":null,
"discounted_price":null,
"total_points":14,
"media":{
"images":{
"original":{
"width":2000.0,
"height":682.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/original.jpg?1596080803"
},
"large":{
"width":500.0,
"height":171.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/large.jpg?1596080803"
},
"xlarge":{
"width":1000.0,
"height":341.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/xlarge.jpg?1596080803"
},
"thumb":{
"width":200.0,
"height":200.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/thumb.jpg?1596080803"
},
"transparent_large":{
"width":500.0,
"height":171.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/large.jpg?1596080803"
},
"transparent_xlarge":{
"width":1000.0,
"height":341.0,
"url":"https://img.shoplineapp.com/media/image_clips/5f2242a478178f0030a06f53/xlarge.jpg?1596080803"
}
},
"_id":"5f2242a478178f0030a06f53",
"alt_translations":{
}
}
}
Updated almost 3 years ago