HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Product Variation

Data Structure of Product Variation

FieldColumn TypeDescriptionExample
idStringProduct Variation's ID
規格 ID
5d3594c2e95d2f000642e011
fields_translationsTranslationField Translation
規格名稱
[ "綠",
"大1" ]
priceMoneyPrice
原價格
NT$999,999,999
price_saleMoneyPrice on Sale
特價
NT$689
member_priceMoneyMember Price
價格
899
costMoneyCost
成本價
NT$609
quantityNumberProduct variation's current quantity
規格現有數量
100
unlimited_quantityBooleanWhether the variation has unlimited quantity or not.
規格是否有無限數量
*Please check the main product's unlimited_quantity to see whether variation has unlimited quantity or not.

unlimited_quantity of variation will always shows null
null
mediaArrayMedia Data
圖片資料
skuStringStock Keeping Unit
貨號
green_l1
location_idStringLocation ID
儲位編號
LaB123
variant_option_idsArrayID of the corresponding variant options
對應規格類別 ID
"5d3594c2622a56618082c99f", "5d3594c2622a56618082c9a0"
barcodeStringBarcode
商品條碼編號
mpn
(Need to apply for Product Feed Data function to have this field) (需要申請"更多產品資訊"功能才可使用此欄位)
StringManufacturer Part Number
製造編號
gtin
(Need to apply for Product Feed Data function to have this field) (需要申請"更多產品資訊"功能才可使用此欄位)
StringBarcode
商品條碼編號
barcode_typeStringBarcode type
商品條碼編號類別
Code 128/Bookland EAN/ISBN

JSON sample

"variations": [
        {
            "id": "5d3594c2e95d2f000642e011",
            "fields_translations": {
                "en": [
                    "green",
                    "L1"
                ],
                "zh-hant": [
                    "綠",
                    "大1"
                ]
            },
            "price": {
                "cents": 999999999,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$999,999,999",
                "dollars": 999999999
            },
            "price_sale": {
                "cents": 689,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$689",
                "dollars": 689
            },
            "member_price": {
                "cents": 899,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$899",
                "dollars": 899
            },
            "quantity": 100,
            "unlimited_quantity": null,
            "media": {},
            "sku": "green_l1",
            "location_id": "LaB123",
            "variant_option_ids": [
                "5d3594c2622a56618082c99f",
                "5d3594c2622a56618082c9a0"
            ],
            "barcode": null
        },
        {
            "id": "5d3594c2e95d2f000642e012",
            "fields_translations": {
                "en": [
                    "green",
                    "S1"
                ],
                "zh-hant": [
                    "綠",
                    "小1"
                ]
            },
            "price": {
                "cents": 999999999,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$999,999,999",
                "dollars": 999999999
            },
            "price_sale": {
                "cents": 689,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$689",
                "dollars": 689
            },
            "member_price": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "quantity": 10,
            "unlimited_quantity": null,
            "media": {},
            "sku": "green_s1",
            "location_id": null,
            "variant_option_ids": [
                "5d3594c2622a56618082c99f",
                "5d3594c2622a56618082c9a1"
            ],
            "barcode": null
        },
        {
            "id": "5d3594c2e95d2f000642e013",
            "fields_translations": {
                "en": [
                    "Red",
                    "L1"
                ],
                "zh-hant": [
                    "紅",
                    "大1"
                ]
            },
            "price": {
                "cents": 999999999,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$999,999,999",
                "dollars": 999999999
            },
            "price_sale": {
                "cents": 689,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$689",
                "dollars": 689
            },
            "member_price": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "quantity": 10,
            "unlimited_quantity": null,
            "media": {},
            "sku": "red_l1",
            "location_id": null,
            "variant_option_ids": [
                "5d3594c2622a56618082c9a2",
                "5d3594c2622a56618082c9a0"
            ],
            "barcode": null
        },
        {
            "id": "5d3594c2e95d2f000642e014",
            "fields_translations": {
                "en": [
                    "Red",
                    "S1"
                ],
                "zh-hant": [
                    "紅",
                    "小1"
                ]
            },
            "price": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "price_sale": {
                "cents": 689,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$689",
                "dollars": 689
            },
            "member_price": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "quantity": 10,
            "unlimited_quantity": null,
            "media": {},
            "sku": "red_s1",
            "location_id": null,
            "variant_option_ids": [
                "5d3594c2622a56618082c9a2",
                "5d3594c2622a56618082c9a1"
            ],
            "barcode": null
        }
    ],