事件分组事件标识
productsproducts/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
请求体
  • body_html string
    描述
  • brand string
    品牌
  • created_at string
    创建时间
  • handle string
    商品handle
  • id string
    商品id
  • imageobject
    商品主图
  • alt string
    alt
  • src string
    url
  • imagesobject[]
    图片
  • alt string
    alt
  • src string
    url
  • optionsobject[]
    属性
  • id string
    商品属性的ID
  • name string
    属性名称
  • product_id string
    对应的商品ID
  • values 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 string
    sku条形码
  • compare_at_price string
    原价
  • id string
    sku的ID
  • imageobject
    图片
  • alt string
    alt
  • src string
    url
  • inventory_item_id string
    库存对象ID
  • inventory_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
    对应的商品ID
  • sku string
    货号
  • title string
    SKU title
  • weight string
    重量
  • weight_unit string
    重量单位, g:克 kg:千克 lb:磅 oz:盎司 zh_kg:公斤
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?

Error loading component.

Error loading component.