delete http://{domain}/v1/api/subscription/123451234
This API is used to cancel a user’s subscription, and can be done as an immediate cancellation or a tagged for cancellation where the users are allowed access to content until next renewal date*.
How to use:
- Replace the user's subscription id in the URL of the request, replace 123451234, with the "id" number from the response of the Fetch Subscription Details API)
- Go to the Params tab,
- Check that immediately is set to
- true, if sub is needed to be cancelled now, or
- false, if you need the user to access content until next renewal date. (Tag for Cancel)
- Go to the Headers tab,
- Fill in Authorization: Bearer U1234abcde-1234-abcd-1234-abcd1234abcd (Replace with access_token obtained from response of User Access Token APIs(User Access Token (Using Auth. Code) API, User Access Token (Using UUID) API))
IMPORTANT NOTE:
The Request URL here contains a number 123451234 before the parameter "immediately", that number corresponds to the subscription ID of the user which can be found in the response of the Fetch Subscription Details API request called "id".