Cancel subscription¶
Subscriptions API v1
Warning
The v1 API has been deprecated. The v1 API will be supported for the foreseeable future, at least until July 2023. However, new features will only be added to the v2 API.
The documentation for canceling subscriptions in the new v2 API can be found here. For more information on the v2 API, refer to our v2 migration guide.
DELETE
https://api.mollie.com/v1/customers/*customerId*/subscriptions/*id*
Authentication:API keysApp access tokens
A subscription can be canceled any time by calling DELETE
on the resource endpoint.
Parameters¶
Replace customerId
in the endpoint URL by the customer’s ID, and replace id
by the subscription’s ID. For
example: /v1/customers/cst_stTC2WHAuS/subscriptions/sub_rVKGtNd6s3
.
Access token parameters¶
If you are creating an app with Mollie Connect, the testmode
parameter is also
available.
Set this to
true
to cancel a test mode subscription.Response¶
204 No Content