商品创建
事件分组 | 事件标识 |
---|---|
products | products/create |
商品创建
请求头
- X-Shopline-Topic string required事件操作标识Example:
orders/edited
- X-Shopline-Hmac-Sha256 string required签名Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string required店铺域名Example:
shophub.myshopline.com
- X-Shopline-Shop-Id string required店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- body_html string描述
- brand string品牌
- created_at string创建时间
- handle string商品handle
- id string商品id
imageobject
商品主图alt stringaltsrc stringurlimagesobject[]
图片alt stringaltsrc stringurloptionsobject[]
属性id string商品属性的IDname string属性名称product_id string对应的商品IDvalues array属性值,按照B端从左到右的顺序进行列示Example: ``values_images map属性值图,例如:{ "red" : "src" }Example:[object Object]
- published_at string发布时间
- published_scope string发布范围,「web」表示在线商店
- status string上下架 active:上架 draft:下架
- subtitle string摘要
- tags string标签
- template_path string主题模板
- title string标题
- updated_at string更新时间
variantsobject[]
sku数据barcode stringsku条形码compare_at_price string原价id stringsku的IDimageobject
图片alt stringaltsrc stringurlinventory_item_id string库存对象IDinventory_policy string是否允许超卖 continue:允许 deny:不允许inventory_quantity integer库存数inventory_tracker boolean是否追踪库存 T:追踪 F:不追踪option1 string属性值option2 string属性值option3 string属性值option4 string属性值option5 string属性值price string销售价product_id string对应的商品IDsku string货号title stringSKU titleweight string重量weight_unit string重量单位, g:克 kg:千克 lb:磅 oz:盎司 zh_kg:公斤
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?
Error loading component.