Cancel and reactivate subscription
A subscription can be canceled, meaning that it will expire after the current billing period, or what is specified by potential notice and binding period on subscription plan.
To determine, if a subscription is canceled, the following attribute of the subscription object can be used:
"is_cancelled": "false"
If a subscription is not canceled, an option on the subscription management page can be provided.
A subscription can be canceled with:
curl -X POST \
-u 'priv_12051dfac75143fc827cf63a87f46df3:' \
-H 'Content-Type: application/json' \
https://api.reepay.com/v1/subscription/{handle}/cancel
If a subscription is canceled, the subscription can be reinstated by canceling the cancellation.
This can be done with:
curl -X POST \
-u 'priv_12051dfac75143fc827cf63a87f46df3:' \
-H 'Content-Type: application/json' \
https://api.reepay.com/v1/subscription/{handle}/uncancel
Updated 10 months ago