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.

DELETEhttps://api.mollie.com/v1/customers/*customerId*/subscriptions/*id*

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.

testmodebooleanoptional

Response

204 No Content

Example

Request

1
2
curl -X DELETE https://api.mollie.com/v1/customers/cst_stTC2WHAuS/subscriptions/sub_rVKGtNd6s3 \
    -H "Authorization: Bearer test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"

Response

1
HTTP/1.1 204 No Content