Cancel recurring invoice (irreversible)
cancel_subscriptionIRREVERSIBLE: cancel a recurring invoice (subscription); no further invoices will be sent to the customer and it cannot be resumed. Ask the user to confirm the subscription id before calling. Its unpaid invoice, if one is open, is cancelled too; already paid invoices are not refunded. To stop only for a while use pause_subscription instead. Returns the subscription with status "cancelled".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subscription_id": "<subscription_id>"
},
"name": "cancel_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idempotency_key | No | Optional. Your own unique id for this request, e.g. the order number "order-1024". Repeating a call with the same idempotency_key returns the same result instead of creating a duplicate, so pass one whenever you might retry. If omitted, a random key is generated (then a retry WILL create a duplicate). | |
| subscription_id | Yes | Subscription id to cancel. |