Add Live Products
Function
Support batch adding products, allowing maximum 100 items to be added in an API call.
支持批量添加商品到直播,單次最多允許添加 100 件商品。
Please refer to https://open-api.docs.shoplineapp.com/reference/post_sales-saleid-products for more details.
API request rate limit: 1 request per second.The API for live streaming has a different rate limit than other APIs. Once the limit is reached, additional requests will be temporarily blocked until the next time window starts.
Notice
- This API supports batch adding of products, allowing a maximum of 100 items to be added in a single operation.
- For LINE channel, a single variation (or products without variations) is only allowed to have one keyword or product number.
- The
products[].custom_keysfield is only effective for products without variations, while theproducts[].variations[].custom_keysfield is only effective for products with single or multiple variations.custom_keysandcustom_numberfields are mutually exclusive. Ifcustom_numberis filled,custom_keysshould be left empty. Ifcustom_keysare filled, it must ensure that allcustom_keysfields are filled and meet the rules, whilecustom_numbershould be left empty.
URL
POST <<api_domain>>/v1/sales/:sale_id/products
Request Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
sale_id *Required | String | Sale Event ID | 61a77ab95972890008b40106 |
products | List<Object> | Product Lists | (Please refer to request example) |
products[].product_id | String | Product ID | |
products[].custom_numbers | List<String> | Product Custom Numbers | |
products[].custom_keys | List<String> | Product Custom Keys | |
products[].variations | List<Object> | Variations | |
products[].variations[].variation_id | String | Variation ID | |
products[].variations[].custom_keys | List<String> | Variation Custom Keys |
Response Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
items | List<Object> | Sale Event Product Lists | |
items[].product_id | String | Product ID | |
items[].custom_numbers | List<String> | Product Custom Numbers | |
items[].custom_keys | List<String> | Product Custom Keys | |
items[].effective_key | Boolean | Keyword Effectiveness | |
items[].create_time | DateTime | Create Time | |
items[].update_time | DateTime | Update Time | |
items[].variations | List<Object> | Variations | |
items[].variations[].variation_id | String | Variation ID | |
items[].variations[].custom_keys | List<String> | Variation Keyword Lists |
Error Code
Code | Description |
|---|---|
SC_POST_0102 | The quantity of products added in a single operation exceeds the limit. |
SC_POST_0103 | The keywords of products or variations are duplicated. |
SC_POST_0104 | The keyword is invalid. |
SC_POST_0105 | The product or variation has already been added. |
SC_POST_0106 | SKU missing, or data in |
SC_POST_0107 | There is a task in progress. Please try again later. |
Updated 13 days ago