删除商品系列
您可以使用本接口删除商务中心下商品库的一个已存在的商品系列。
v1.2与v1.3版本对比
以下表格概括了 v1.2与v1.3接口的变化。
``xtable
|变化内容{30%}|v1.2{35%}|v1.3{35%}|
|---|---|---|
|接口路径| /v1.2/catalog/set/delete/| /v1.3/catalog/set/delete/|
|请求参数类型|bc_id: number<br>catalog_id: number|bc_id: string<br>catalog_id: string|
|请求参数名称和类型|set_ids: number[]|product_set_ids: string[]|
|返回参数名称和类型|ids: number[]|product_set_ids`: string[]|
## 请求
**地址** https://business-api.tiktok.com/open_api/v1.3/catalog/set/delete/
**方法** POST
**Header**
```xtable
|字段|类型|描述|
|--- |--- |--- |
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162)接口获取。|
|Content-Type {必填}|string|请求信息类型。<br>允许格式:`application/json`。|
参数
|字段|类型|描述|
|--- |--- |--- |
|bc_id {必填}|string|商务中心ID。|
|catalog_id {必填}|string|商品库ID。|
|product_set_ids {必填}|string[]|商品系列ID,长度范围[1,10]。|
示例
(code curl http)
curl -X POST -H "Access-Token:YOUR_ACCESS_TOKEN" \
-H "Content-Type:application/json" \
-d '{\"bc_id\": BC_ID,\"catalog_id\": CATALOG_ID,\"product_set_ids\": SET_IDS}' \
https://business-api.tiktok.com/open_api/v1.3/catalog/set/delete/
(/code)
返回
|字段|类型|描述|
|--- |--- |--- |
|code |number|返回码,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|message |string|返回信息,详见[附录-返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|request_id|string|请求日志ID。|
|data|object|返回数据。|
#|product_set_ids|string[]|已删除的商品系列ID。|
示例
(code Success-Response http)
HTTPS/1.1 200 OK
{
"message": "OK",
"code": 0,
"data": {
"product_set_ids": [
"1865",
"1863",
"1791"
]
},
"request_id": "2021031410042301023101010646846F"
}
(/code);