Cancel Payment Intent
cancel_payment_intentCancel an unpaid PaymentIntent to prevent processing. Use idempotency key for safe retries.
Instructions
Cancel a PaymentIntent. Can only cancel intents that are not already succeeded.
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": {
"payment_intent_id": "<payment_intent_id>"
},
"name": "cancel_payment_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_intent_id | Yes | PaymentIntent ID (pi_...) | |
| cancellation_reason | No | Reason for cancellation | |
| idempotency_key | No | Optional idempotency key for safe retries |