Refunds
Prepare a refund
POST/v1/refunds
Creates a refund pending_approval against a succeeded payment for at most its unrefunded balance; approval follows the payout rules (PO-6).
Parameters
Idempotency-Keystringin headerrequired- Unique per logical request, kept 24 hours. A retry with the same key and body replays the first response.
Body
payment_intent_idstringrequiredamountintegerrequiredreasonstringrequired
Responses
- 200Replay of an identical request within 24 h
- 201Refund prepared
- 400Invalid request
- 401Missing, invalid or revoked API key
- 403business_initiation_disabled
- 409idempotency_conflict
- 422no_healthy_connection, capability_unsupported or insufficient_refundable_balance
- 429More than 100 requests in this minute for this key
Retry-After - 500Internal error
Error bodies and every code are listed under Errors; limits under Rate limits and Idempotency.