v1
latestOpenAPI 3.1.02026-07-228956435.8 KBSubscriptions
Cancel a subscription
Cancels a subscription immediately. Canceled subscriptions stop generating invoices, and the cancellation does not affect invoices already issued. Canceling an already canceled subscription does nothing and returns the subscription unchanged.
post/subscriptions/{id}/cancel
Path parameters
idstring required
The id of the subscription to cancel.
Response
The canceled subscription, with status set to canceled.
Example response
{
"id": "sub_2c4mDcMaVxDx7nT3o5GbPMQbS2v",
"billing_cycle_anchor": "2026-06-01T15:00:00Z",
"collection_method": "send_invoice",
"created_at": "2026-06-01T15:00:00Z",
"customer": "cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu",
"items": [
{
"id": "si_2c4mDfkPLLrLTCJ3wPCEHGYpkVf",
"price": {
"currency": "CLP",
"product": {
"id": "prod_2c4mDgwQqkNwMHnXSc4DBjkbcWz",
"created_at": "2026-06-01T15:00:00Z",
"description": "Access to every premium feature.",
"image_url": "https://example.com/image.png",
"metadata": {
"category": "saas"
},
"mode": "live",
"name": "Premium plan"
},
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 10000
},
"quantity": 1
}
],
"metadata": {
"order_id": "12345"
},
"mode": "live",
"status": "active"
}