Cancel a refund v1

POST /v1/refunds/:id/cancel

Cancels a refund with a status of requires_action.

You can’t cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state.

Parameters

No parameters.

More parameters

  • idstringRequired

Returns

Returns the refund object if the cancellation succeeds. This call raises an error if you can’t cancel the refund.

curl -X POST https://api.stripe.com/v1/refunds//cancel \
-u "sk_test_...sk_test_...:" \
-H "Stripe-Version: 2026-10-28.endive"
Response
{
"object": "refund",
"amount": 1000,
"balance_transaction": "",
"created": 1692942318,
"currency": "usd",
"failure_balance_transaction": "",
"failure_reason": "merchant_request",
"metadata": {},
"payment_intent": "",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
"status": "canceled",
"transfer_reversal": null
}