Disputes and refunds
POST/v1/refunds/{id}/send

Send refund

View as .md
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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/refunds/{id}/sendBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Refund id (rfd_...).

Headers
  • Idempotency-Keystring

    Required. 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.

Requires permissiondispute:respond
Held by merchant_owner. The caller must hold this permission, or the call is refused with 403.
IdempotentIdempotency-Key
Send a unique key per request. The same key with the same body returns the first result instead of acting twice; the same key with a different body is refused with 409 IDEMPOTENCY_CONFLICT. How keys work

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Refund id (rfd_...).

Header Parameters

Idempotency-Key?|

Required. A repeat with the same key returns the same refund; the same key on another refund returns a conflict.

Request Body

application/json
  1. body
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