商品添加至销售渠道
| 事件分组 | 事件标识 |
|---|---|
| product_listings | product_listings/add |
当商品被添加到销售渠道时触发。
请求头
- Content-Type string required字段值固定为
application/json; charset=utf-8。 - X-Shopline-Topic string required事件的唯一标识。例子:
orders/edited - X-Shopline-Hmac-Sha256 string required该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。例子:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string required店铺的域名。例子:
example.myshopline.com - X-Shopline-Shop-Id string required店铺 ID。例子:
1610418123456 - X-Shopline-Merchant-Id string required商家 ID。例子:
2000001234 - X-Shopline-API-Version string requiredAPI 版本号。例子:
v20250601 - X-Shopline-Webhook-Id string required该 Webhook 事件的 ID。例子:
b54557e48a5fbf7d70bcd043
请求体
product_listingobject
商品信息。body_html string商品的描述。combined_listingobject
组合商品关联信息对象,存放组合商品的父商品与子商品关联标识信息。combined_listing_children_ids array组合商品下的子商品 ID 列表。例子:["16057850264845250791280282","16057850264845250333280282"]parent_product_id string组合商品的父商品 ID。例子:16050375155238626683133099combined_listing_role string商品在组合商品中的角色。有效枚举值包含:parent:表示组合商品的父商品。child:表示组合商品的子商品。no_role:表示非组合的独立售卖商品。
handle string商品的语义化的唯一标识,默认基于title生成。例子:productid string商品的唯一标识 ID。例子:16057850264845250791280282imagesobject[]
商品图片列表。废弃:该字段自 API 版本 v20260301 起已废弃。alt string商品图的替代文本描述,通常是具有图片特征或内容的单词或短语。