curl --request DELETE \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"customCancelReason": "<string>"
}
}
'{
"subscription": {
"id": "sub_1234567890abcdefghij",
"createdAt": "2025-01-01T06:00:00.000Z",
"updatedAt": "2025-01-01T06:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "AUTOMATIC",
"firstCollectionDate": "2025-01-01T06:00:00.000Z",
"generationMode": "AUTO",
"onlyAutomaticCollection": false,
"isActive": true,
"isCompleted": false,
"description": "Colegiatura mensual",
"status": "ACTIVE",
"paymentMethodId": "pm_1234567890abcdefghij",
"taxProfileId": null,
"nextCollectionDate": "2025-02-01T06:00:00.000Z",
"lastCollectionDate": "2025-12-01T06:00:00.000Z",
"metadata": {
"Nivel": "Preparatoria"
},
"customCancelReason": null,
"canceledAt": null,
"canceledById": null
}
}Cancels an active subscription by id.
curl --request DELETE \
--url https://api.quentli.com/v1/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"customCancelReason": "<string>"
}
}
'{
"subscription": {
"id": "sub_1234567890abcdefghij",
"createdAt": "2025-01-01T06:00:00.000Z",
"updatedAt": "2025-01-01T06:00:00.000Z",
"customerId": "cus_1234567890abcdefghij",
"collectionMethod": "AUTOMATIC",
"firstCollectionDate": "2025-01-01T06:00:00.000Z",
"generationMode": "AUTO",
"onlyAutomaticCollection": false,
"isActive": true,
"isCompleted": false,
"description": "Colegiatura mensual",
"status": "ACTIVE",
"paymentMethodId": "pm_1234567890abcdefghij",
"taxProfileId": null,
"nextCollectionDate": "2025-02-01T06:00:00.000Z",
"lastCollectionDate": "2025-12-01T06:00:00.000Z",
"metadata": {
"Nivel": "Preparatoria"
},
"customCancelReason": null,
"canceledAt": null,
"canceledById": null
}
}Organization API key using Authorization: Bearer sk_....
Identifier of the subscription.
Optional body for canceling a subscription (id is in the URL path).
Show child attributes
Subscription canceled
Successful subscription cancellation response.
Recurring billing subscription tied to a customer.
Show child attributes
Was this page helpful?