«
Có thể thêm sản phẩm mua trọn gói (1 sản phẩm hoặc sản phẩm theo số lượng) vào giỏ hàng: - Sku của sản phẩm mua trọn gói (1 sp) được đánh dấu "mua theo giá riêng của sku" thì khi thêm sku vào giỏ response trả về có price & weight lấy theo thông tin của sku. - Sku của sản phẩm mua trọn gói (1 sp) không được đánh dấu "mua theo giá riêng của sku" thì khi thêm sku vào giỏ response trả về có price & weight lấy theo thông tin của sản phẩm. - Sku của sản phẩm trọn gói theo số lượng luôn ưu tiên lấy giá theo chính sách giá của sản phẩm kể cả khi được đánh dấu "mua theo giá riêng của sku"
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) |
|---|---|---|---|
| product01 | 10 | 2 | sku01 - 5 - 1 |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 1
}
],
"marketplace": "<marketplace>",
"productSellingType": null
} {
"itemId": "${product01}",
"marketPlace": "<marketplace>",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": 1,
"marketplace": "<marketplace>",
"productSellingType": null
}
]
}| marketplace | |
|---|---|
| taobao | |
| 1688 | |
| tmall |
theo giá riêng của sku" thì response trả về có price & weight lấy theo sku. Ngược lại sku không được đánh dấu "mua theo giá riêng của sku" thì response trả về có price & weight lấy theo sản phẩm
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| 01 | product01 | sku02 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku |
|---|---|---|---|---|
| product01 | 10 | 2 | <list_product_sku> | true |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 1
},
{
"skuId": "${sku02}",
"quantity": 1
}
],
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "<marketplace>",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": 1,
"price": <price_sku01>,
"weight": <weight_sku01>,
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
},
{
"itemId": "${product01}",
"skuId": "${sku02}",
"quantity": 1,
"price": <price_sku02>,
"weight": <weight_sku02>,
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| marketplace | list_product_sku | price_sku01 | weight_sku01 | price_sku02 | weight_sku02 | |
|---|---|---|---|---|---|---|
| taobao | sku01 - 5 - 1 | 5 | 1 | 10 | 2 | |
| 1688 | sku01 - 5 - 1 | 5 | 1 | 10 | 2 | |
| tmall | sku01 - 5 - 1 | 5 | 1 | 10 | 2 | |
| taobao | sku01 - 5 - 1, sku02 - 15 - 3 | 5 | 1 | 15 | 3 | |
| 1688 | sku01 - 5 - 1, sku02 - 15 - 3 | 5 | 1 | 15 | 3 | |
| tmall | sku01 - 5 - 1, sku02 - 15 - 3 | 5 | 1 | 15 | 3 | |
| taobao | 10 | 2 | 10 | 2 | ||
| 1688 | 10 | 2 | 10 | 2 | ||
| tmall | 10 | 2 | 10 | 2 |
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| 01 | product01 | sku02 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku |
|---|---|---|---|---|
| product01 | 10 | 2 | sku01 - 5 - 1, sku02 - 15 - 3 | false |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 1
},
{
"skuId": "${sku02}",
"quantity": 1
}
],
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "<marketplace>",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": 1,
"price": 5,
"weight": 1,
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
},
{
"itemId": "${product01}",
"skuId": "${sku02}",
"quantity": 1,
"price": 15,
"weight": 3,
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| marketplace | |
|---|---|
| taobao | |
| 1688 | |
| tmall |
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| 01 | product01 | sku02 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku |
|---|---|---|---|---|
| product01 | 10 | 2 | <list_product_sku> | false |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 1
},
{
"skuId": "${sku02}",
"quantity": 1
}
],
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
} {
"title": "sku_configure_illegal"
}| marketplace | list_product_sku | |
|---|---|---|
| taobao | sku01 - 5 - 1 | |
| 1688 | sku01 - 5 - 1 | |
| tmall | sku01 - 5 - 1 | |
| taobao | sku02 - 15 - 3 | |
| 1688 | sku02 - 15 - 3 | |
| tmall | sku02 - 15 - 3 | |
| taobao | ||
| 1688 | ||
| tmall |
nhưng body gửi lên "productSellingType" bằng "PRODUCT_RETAIL"
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 1
}
],
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
} {
"title": "product_not_found"
}| marketplace | |
|---|---|
| taobao | |
| 1688 | |
| tmall |
| merchantId | productId | skuId | skusId | quantity |
|---|---|---|---|---|
| merchant_01 | product01 | sku01 | skusId01 | 1 |
| X-Tenant | m26 |
|---|
{
"skuId": "${sku01}",
"marketplace": "<marketPlace>",
"quantity": 2,
"productSellingType": "PRODUCT_RETAIL"
}{
"title": "sku_not_found"
}| marketPlace | |
|---|---|
| tmall | |
| taobao | |
| 1688 |
| merchantId | productId | skuId | skusId | quantity | order_quantity | batchSize | giá | cân nặng | skus (sku - giá - cân nặng) |
|---|---|---|---|---|---|---|---|---|---|
| merchant_01 | product_01 | sku01 | skusId | 1 | 1 | 1 | 10 | 4 | sku01 - 5 - 3 |
| X-Tenant | m26 |
|---|
{
"skuId": "${sku01}",
"marketplace": "<marketPlace>",
"quantity": 2
}{
"title": "sku_not_found"
}| marketPlace | |
|---|---|
| tmall | |
| taobao | |
| 1688 |
| merchantId | productId | skuId | skusId | quantity | order_quantity | batchSize | giá | cân nặng | skus (sku - giá - cân nặng) |
|---|---|---|---|---|---|---|---|---|---|
| merchant_01 | product_01 | sku01 | skusId | 1 | 1 | 1 | 10 | 4 | sku01 - 5 - 3 |
| X-Tenant | m26 |
|---|
{
"skuId": "${sku01}",
"marketplace": "<marketPlace>",
"quantity": 2,
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product_01}",
"skuId": "${sku01}",
"quantity": 2,
"marketplace": "<marketPlace>",
"productSellingType": "PRODUCT_RETAIL"
}| marketPlace | |
|---|---|
| tmall | |
| taobao | |
| 1688 |
| merchantId | productId | skuId | skusId | quantity | giá | cân nặng | skus (sku - giá - cân nặng) |
|---|---|---|---|---|---|---|---|
| merchant_01 | product01 | sku01 | skusId01 | 2 | 5 | 1 | sku01 - 5 - 2 |
| X-Tenant | m26 |
|---|
[
{
"marketplace": "1688",
"totalSku": 1,
"products": [
{
"itemId": "${product01}",
"marketPlace": "1688",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": 2,
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
}
]
}
]
}
]Cân nặng sku lấy theo sku khi SP ĐƯỢC đánh dấu "mua theo giá riêng của sku", và lấy theo sản phẩm nếu SP KHÔNG ĐƯỢC đánh dấu "mua theo giá riêng của sku"
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku | productPricePolicy |
|---|---|---|---|---|---|
| product01 | 9 | 2 | <list_product_sku> | <fixPriceAllSku> | [{"salePrice": 10, "minQuantity": 5}, {"salePrice": 8, "minQuantity": 20}] |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": <quantity_sku>
}
],
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "<marketplace>",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": <quantity_sku>,
"price": <price_sku>,
"weight": <weight_sku>,
"marketplace": "<marketplace>",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| marketplace | list_product_sku | fixPriceAllSku | quantity_sku | price_sku | weight_sku | |
|---|---|---|---|---|---|---|
| taobao | sku01 - 5 - 1 | true | 5 | 10 | 1 | |
| taobao | true | 20 | 8 | 2 | ||
| taobao | sku01 - 5 - 1 | false | 6 | 10 | 1 | |
| taobao | sku01 - 5 - 1 | false | 21 | 8 | 1 | |
| tmall | sku01 - 5 - 1 | true | 5 | 10 | 1 | |
| tmall | true | 20 | 8 | 2 | ||
| tmall | sku01 - 5 - 1 | false | 6 | 10 | 1 | |
| tmall | sku01 - 5 - 1 | false | 21 | 8 | 1 | |
| 1688 | sku01 - 5 - 1 | true | 5 | 10 | 1 | |
| 1688 | true | 20 | 8 | 2 | ||
| 1688 | sku01 - 5 - 1 | false | 6 | 10 | 1 | |
| 1688 | sku01 - 5 - 1 | false | 21 | 8 | 1 | |
| 1688 | true | 19 | 10 | 2 |
khi đó đơn giá sku được lấy theo sku nếu SP được đánh dấu "mua theo giá riêng của sku", và lấy theo sản phẩm nếu SP KHÔNG ĐƯỢC đánh dấu "mua theo giá riêng của sku"
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku | productPricePolicy |
|---|---|---|---|---|---|
| product01 | 9 | 2 | <list_product_sku> | <fixPriceAllSku> | [{"salePrice": 10, "minQuantity": 5}, {"salePrice": 8, "minQuantity": 20}] |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": <quantity>
}
],
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "1688",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": <quantity>,
"price": <price_sku>,
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| list_product_sku | fixPriceAllSku | quantity | price_sku | |
|---|---|---|---|---|
| sku01 - 5 - 1 | false | 1 | 5 | |
| true | 4 | 9 |
| merchantId | productId | skuId |
|---|---|---|
| 01 | product01 | sku01 |
| 01 | product01 | sku02 |
| productId | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku | productPricePolicy |
|---|---|---|---|---|---|
| product01 | 9 | 2 | sku01 - 5 - 1, sku02 - 15 - 3 | false | [{"salePrice": 10, "minQuantity": 5}, {"salePrice": 8, "minQuantity": 20}] |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": 5
},
{
"skuId": "${sku02}",
"quantity": 21
}
],
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "1688",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": 5,
"price": 8,
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
},
{
"itemId": "${product01}",
"skuId": "${sku02}",
"quantity": 21,
"price": 8,
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| merchantId | productId | skuId | skusId | quantity | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku | productPricePolicy |
|---|---|---|---|---|---|---|---|---|---|
| merchant_01 | product01 | sku01 | skusId | <quantity_before> | 9 | 4 | sku01 - 5 - 1 | false | [{"salePrice": 10, "minQuantity": 5}, {"salePrice": 8, "minQuantity": 20}] |
| X-Tenant | m26 |
|---|
{
"itemId": "${product01}",
"skus": [
{
"skuId": "${sku01}",
"quantity": <quantity_after>
}
],
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product01}",
"marketPlace": "1688",
"skus": [
{
"itemId": "${product01}",
"skuId": "${sku01}",
"quantity": <quantity>,
"price": <price>,
"marketplace": "1688",
"productSellingType": "PRODUCT_RETAIL"
}
]
}| quantity_before | quantity_after | quantity | price | |
|---|---|---|---|---|
| 5 | 2 | 7 | 10 | |
| 1 | 3 | 4 | 5 | |
| 1 | 4 | 5 | 10 | |
| 15 | 4 | 19 | 10 | |
| 15 | 5 | 20 | 8 | |
| 15 | 6 | 21 | 8 |
| merchantId | productId | skuId | skusId | quantity | giá | cân nặng | skus (sku - giá - cân nặng) | fixPriceAllSku | productPricePolicy |
|---|---|---|---|---|---|---|---|---|---|
| merchant_01 | product_01 | sku01 | skusId | 5 | 9 | 4 | <list_product_sku> | <fixPriceAllSku> | [{"salePrice": 10, "minQuantity": 5}, {"salePrice": 8, "minQuantity": 20}] |
| X-Tenant | m26 |
|---|
{
"skuId": "${sku01}",
"marketplace": "<marketPlace>",
"quantity": <quantity>,
"productSellingType": "PRODUCT_RETAIL"
} {
"itemId": "${product_01}",
"skuId": "${sku01}",
"quantity": <quantity>,
"price": <price>,
"weight": <weight>,
"marketplace": "<marketPlace>",
"productSellingType": "PRODUCT_RETAIL"
}| marketPlace | fixPriceAllSku | list_product_sku | quantity | price | weight | |
|---|---|---|---|---|---|---|
| 1688 | true | 6 | 10 | 4.0 | ||
| 1688 | true | 20 | 8 | 4.0 | ||
| 1688 | false | sku01 - 5 - 3 | 30 | 8 | 3.0 | |
| 1688 | false | sku01 - 5 - 3 | 4 | 5 | 3.0 | |
| taobao | true | 10 | 10 | 4.0 | ||
| taobao | false | sku01 - 5 - 3 | 21 | 8 | 3.0 | |
| taobao | false | sku01 - 5 - 3 | 1 | 5 | 3.0 | |
| tmall | true | 19 | 10 | 4.0 | ||
| tmall | false | sku01 - 5 - 3 | 21 | 8 | 3.0 | |
| tmall | true | 2 | 9 | 4.0 |