Subscription callback notification
Webhook
After subscription-related events are triggered, the system sends a callback notification to the merchant. The merchant should distinguish the callback type using the subscriptionType field and handle it accordingly.
Merchants can set the callback address when creating a subscription order.
The callback will be sent up to 6 times, respectively at 0 seconds, 15 seconds, 30 seconds, 3 minutes, 5 minutes, and 10 minutes after the event is confirmed.
When the merchant returns success normally, the system will consider the callback successful and will not send subsequent callbacks.
Note: The merchant needs to verify the signature of the callback notification to ensure the security of the notification. The signing method of the callback is consistent with the normal request.
Callback type descriptions (distinguished by subscriptionType):
| subscriptionType | Description |
|---|---|
SubscriptionRegister | User contract signing result |
SubscriptionApprove | User authorization for deduction allowance result |
SubscriptionCancel | User unsubscription result |
SubscriptionBilling | Recurring billing result |
Request​
Responses​
- 200
OK