Collection relationship creation
Event Group | Event Identification |
---|---|
collect | collect/create |
Create categories-Product relationship
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
- collection_id stringCategory idExample:
12248721639068681442230282
- created_at stringCreation timeExample:
2022-12-06T15:13:50+08:00
- product_id stringProduct IDExample:
16057039432335097907370282
- product_priority longProduct priority(non-consecutive, lower values represent higher priority)Example:
10000000000000
- sort_value stringCommodity sorting value, same as the product priority value but zero fill to 20 digits in frontExample:
00000010000000000000
- updated_at stringUpdate timeExample:
2022-12-06T15:13:50+08:00
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?