事件分组事件标识
inventory_itemsinventory_items/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
    店铺id
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    商户ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    版本号
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    消息ID
    Example: b54557e48a5fbf7d70bcd043
请求体
  • inventory_itemobject
    库存对象
  • cost string
    成本价
    Example: 10.9
  • created_at string
    创建时间
    Example: 2022-12-06T15:13:50+08:00
  • fulfillment_location_id string
    变体当前使用的履约地点的ID,仅当location_type为fulfillment时有值
    Example: 5340156898590073708
  • id string
    库存对象ID
    Example: 5703943240925324252
  • location_type string
    变体当前使用的用于管理库存数量的地点的类型
    Example: normal
  • sku string
    SKU码
    Example: B000000001
  • tracked boolean
    是否追踪库存
    Example: true
  • updated_at string
    更新时间
    Example: 2022-12-06T15:13:50+08:00
  • variant_id string
    库存对象对应的变体ID
    Example: 18057039432358082693350282
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?

Error loading component.

Error loading component.