curl --request POST \
--url https://development.knotapi.com/subscriptions/{id}/cancel \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'{
"message": "Success"
}SubscriptionManager
Cancel Subscription
Cancel a subscription or bill associated with a linked merchant account.
POST
/
subscriptions
/
{id}
/
cancel
curl --request POST \
--url https://development.knotapi.com/subscriptions/{id}/cancel \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'{
"message": "Success"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Path Parameters
The subscription ID from the subscription object.
Example:
"ka8sdf0asdfm10as0a0sdfja7ssa8"
Body
application/json
Optional parameters for cancelling a subscription or bill.
Simulate a failure in the development environment and trigger the CANCELLATION_FAILED webhook.
Available options:
failed Example:
"failed"
Response
Cancellation request accepted.
Example:
"Success"
Was this page helpful?
⌘I