Send refund
curl -X POST "https://api.52-28-238-205.sslip.io/v1/refunds/{id}/send" \ -H "Cookie: <console session cookie>" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"amount_base_units":"50000"}'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.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
idstringrequiredRefund id (rfd_...).
Headers
Idempotency-KeystringRequired. A repeat with the same key returns the same refund; the same key on another refund returns a conflict.
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*IdRefund id (rfd_...).
Idempotency-Key?|Required. A repeat with the same key returns the same refund; the same key on another refund returns a conflict.
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]?anyPOSTRefund 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.
GETList connected accounts
Lists the embedded consumer organizations of the caller's platform with status, spend and budget. Console session or API key with connect:manage.