Refund dispute
curl -X POST "https://api.52-28-238-205.sslip.io/v1/disputes/{id}/refund" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"amount_base_units":"50000"}'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.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
idstringrequiredDispute id (dsp_...).
Body
application/json. 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)
id*IdDispute id (dsp_...).
application/json- body
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]?anyPOSTCreate refund
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.
POSTSend refund
The merchant sends a requested refund that has no dispute, optionally with a smaller amount. Merchant owner with dispute:respond only; requires an Idempotency-Key, and a failed send rolls back and answers 503.