Disputes and refunds
POST/v1/refunds

Create refund

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/refunds" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"intent_id":"pi_01jd2x3k4m5n6p7q8r9s0t1v2w","dispute_id":"dsp_01jd2x3k4m5n6p7q8r9s0t1v2w","amount_base_units":"50000"}'

The merchant refunds a payment, in full or in part, by intent_id or dispute_id; the rail sends it back to the payer and a refund receipt is issued. Merchant owner with dispute:respond only; a failed send answers 503.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/refundsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissiondispute:respond
Held by merchant_owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
intent_id?|

Payment intent id (pi_...).

dispute_id?|

Dispute id (dsp_...).

amount_base_units?|

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

Response Body

Success.

application/json
  1. response
refund*
intent?|null
dispute?|null
[key: string]?any