更新一个公司位置目录
| 事件分组 | 事件标识 |
|---|---|
| company | company/update |
更新一个公司位置目录的消息。
请求头
- 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
请求体
company_location_catalogobject
公司位置目录adjustment_type integer按百分比进行调整的类型,值为1表示调低价格,值为2表示调高价格例子:1adjustment_value integer按adjustment_type进行调整的数值,格式为百分比- 调低价格时,值限制为0~100
- 调高价格时,值限制为0~10000
例子:10auto_add_product boolean是否将新增的产品自动加入到目录中。例子:truecatalog_id string目录id例子:6505476185111667646company_locations_count integer目录地点数量例子:10created_at string创建时间例子:2023-04-06T18:18:42.883+0800currency_code string币种例子:USDindividual_price_products_count integer单独定价商品数,数量变更不触发目录更新订阅消息例子:5products_count integer目录商品数,数量变更不触发目录更新订阅消息例子:20status integer指定目录的状态,值为1为激活状态,值为2为草稿状态例子:1title string目录标题例子:This is a catalogupdated_at string更新时间例子:2023-04-06T18:18:42.883+0800
状态码
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?