Event GroupEvent Identification
inventory_levelsinventory_levels/update
Inventory level update event , that is , the number of inventory changes
Request Headers
  • X-Shopline-Topic string required
    The unique identifier for the event.
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    The signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.
    Example: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    The store domain.
    Example: example.myshopline.com
  • X-Shopline-Shop-Id string required
    The store ID.
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    The merchant ID.
    Example: 2000001234
  • X-Shopline-API-Version string required
    The API version.
    Example: v20250601
  • X-Shopline-Webhook-Id string required
    The ID of this Webhook event.
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • available integer
    The available quantity of products owned by the location.
    Example: 10
  • committed integer
    The quantity allocated to orders but not yet shipped.
    Example: 10
  • inventory_item_id string
    The ID of the Inventory item.
    Example: 5703943240925324252
  • location_id string
    The ID of location.
    Example: 5421704248135526901
  • onhand integer
    The actual quantity of products owned by the location.
    Example: 10
  • unavailable integer
    The quantity that has been reserved and is not available for sale.
    Example: 10
  • updated_at string
    Date and time of the last update to the inventory level.
    Example: 2022-12-06T15:13:50+08:00
  • variant_id string
    The variant ID of this inventoryLevel.
    Example: 18057039432358082693350282
Status Codes
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?