Merchant subscription package failure
Event Group | Event Identification |
---|---|
appsubscription | appsubscription/expiration |
When Product fails in the application of the merchant's subscription , platform push failure information is given to developers
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
- appkey stringYingyong logo applied
- expirationTime longExpiration date
- expirationType integerExpiration Type, with enumerated values:
- 0 - Only current subscription, and the current subscription is invalid (grace period has ended)
- 1 - Upgrade plan
- 2 - Subscription cancelled from backend
- 3 - Current subscription expired (still within grace period)
- 4 - Current subscription expired, next period activation
- handle stringStore unique logo
- secondChannelId stringSecondary channel id
- spuKey stringUnique Value of SPU
- subId stringExpiration subscription for the corresponding order number
subPackageobject
Original effective time objectendAt longOriginal subscription expiration timestartAt longOriginal subscription effective time
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?