Create refund
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.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Body
application/json · required. Fields are listed under Request body below.
merchant_owner. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
application/json- 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).
Success.
application/json- response
refund*intent?|nulldispute?|null[key: string]?anyGETList refunds
Returns refunds for the paying organization or, for a merchant account, refunds on its payments. Console session or API key; max 200 per page.
POSTRefund dispute
The merchant accepts the dispute if it is still open and refunds the disputed payment, in full or in part. Merchant owner with dispute:respond only.