Product Variation
Data Structure of Product Variation
Field | Column Type | Description | Example |
---|---|---|---|
id | String | Product Variation's ID 規格 ID | 5d3594c2e95d2f000642e011 |
fields_translations | Translation | Field Translation 規格名稱 | [ "綠", "大1" ] |
price | Money | Price 原價格 | NT$999,999,999 |
price_sale | Money | Price on Sale 特價 | NT$689 |
member_price | Money | Member Price 價格 | 899 |
cost | Money | Cost 成本價 | NT$609 |
quantity | Number | Product variation's current quantity 規格現有數量 | 100 |
unlimited_quantity | Boolean | Whether 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 |
media | Array | Media Data 圖片資料 | |
sku | String | Stock Keeping Unit 貨號 | green_l1 |
location_id | String | Location ID 儲位編號 | LaB123 |
variant_option_ids | Array | ID of the corresponding variant options 對應規格類別 ID | "5d3594c2622a56618082c99f", "5d3594c2622a56618082c9a0" |
barcode | String | Barcode 商品條碼編號 | |
mpn | String | Manufacturer Part Number 製造編號 | |
gtin | String | Barcode 商品條碼編號 | |
barcode_type | String | Barcode 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
}
],
Updated 7 months ago