Inventory horizontal connection
Event Group | Event Identification |
---|---|
inventory_levels | inventory_levels/connect |
Inventory connection incident
Request Headers
- X-Shopline-Topic string requiredEvent operation identificationExample:
orders/edited
- X-Shopline-Hmac-Sha256 string requiredSignatureExample:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string requiredShop domainExample:
shophub.myshopline.com
- X-Shopline-Shop-Id string requiredShop IDExample:
1610418123456
- X-Shopline-Merchant-Id string requiredMerchant IDExample:
2000001234
- X-Shopline-API-Version string requiredVersionExample:
v20210901
- X-Shopline-Webhook-Id string requiredMessage IDExample:
b54557e48a5fbf7d70bcd043
Request Body
- available integerThe available quantity of products owned by the location.Example:
10
- committed integerThe quantity allocated to orders but not yet shipped.Example:
10
- inventory_item_id stringThe ID of the Inventory item.Example:
5703943240925324252
- location_id stringThe ID of location.Example:
5421704248135526901
- onhand integerThe actual quantity of products owned by the location.Example:
10
- unavailable integerThe quantity that has been reserved and is not available for sale.Example:
10
- updated_at stringDate and time of the last update to the inventory level.Example:
2022-12-06T15:13:50+08:00
- variant_id stringThe variant ID of this inventoryLevel.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?