HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Order Subtotal_items

Data structure of an subtotal items

FieldColumn TypeDescriptionExample
idStringOrder item's ID (ID of an order item's collection, including item_type, item_id..and so on)
系統自行創建訂單品項ID
5b2b64bd8d1db91156002687
item_typeStringOrder item type:
Product 商品
AddonProduct 加購品
Gift 贈品
CustomProduct 自訂商品
Product
item_data
(第三方合作夥伴適用)
HashCartItem snapshot
在第三方合作夥伴下單之前,在購物車內時的資訊快照
item_idStringID of Product/Addon Product/Gift
商品/加購品/贈品的ID
(Custom Product doesn't have a item_id)
(自訂商品沒有item_id)
5892d7339a76f01718000b53
item_variation_idString(To-Be-Deprecated)
規格商品ID請使用下方item_variation_key欄位
item_variation_keyStringVariation ID
規格商品的ID
5b2b5e4a4e22a6ff3200259d
item_priceMoneySale price
特價
NT$5000
priceMoneyPrice
原價格
NT$9999
costMoneyCost
成本價
NT$100
item_pointsIntegerPoints used for single item
兌換商品所需點數
7
title_translationsTranslationProduct name
商品名稱
{ "en": "Sl Watch",
"zh-hant": "Sl 手錶" }
fields_translationsHashProduct variation combination

Containing the translation of the combination of variant type
{ "en": [
"Red",
"M" ],
"zh-hant": [
"紅",
"中" ] }
skuStringProduct SKU
商品貨號
sl_watch_red_m
is_preorderBooleanIs preorder
是否是預購商品
false
quantityIntegerOrder item quantity
商品數量
1
totalMoneyOrder item price multiplied by quantity
商品總價
NT$5000
order_discounted_priceMoneyDiscount amount for discounts of all products
該商品適用全單折扣之金額
(註:整筆訂單之折扣,會依金額比例分攤至不同的商品中)
discounted_priceMoneyDiscount amount for discounts of selected products
該商品適用指定商品折扣之金額
NT$180
total_pointsIntegerTotal points cost on same product (item_points * quantity)

此商品的總點數
14
mediaMediaCover image of the order item
商品圖片
Please refer the JSON example below.
object_dataObjectProduct 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":{

        }
    }
}