Event GroupEvent Identification
inventory_itemsinventory_items/update
Inventory update notifications
Request Headers
  • X-Shopline-Topic string required
    Event operation identification
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    Signature
    Example: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    Shop domain
    Example: shophub.myshopline.com
  • X-Shopline-Shop-Id string required
    Shop ID
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    Merchant ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    Version
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    Message ID
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • inventory_itemobject
    The Inventory item object.
  • cost string
    The cost per unit of the inventory item.
    Example: 10.9
  • created_at string
    Date and time of the inventory item's creation.
    Example: 2022-12-06T15:13:50+08:00
  • fulfillment_location_id string
    The ID of the fulfillment location currently used by the variant, only applicable when location_type is fulfillment
    Example: 5340156898590073708
  • id string
    The ID of the Inventory item.
    Example: 5703943240925324252
  • location_type string
    The location type currently used for managing inventory quantities in variants
    Example: normal
  • sku string
    The SKU of the inventory item.
    Example: B00000000001
  • tracked string
    Track the inventory levels of this item or not.
    Example: true
  • updated_at string
    Date and time of the last update to the inventory item.
    Example: 2022-12-06T15:13:50+08:00
  • variant_id string
    The variant ID of this inventoryItem
    Example: 18057039432358082693350282
Response
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?