Skip to main content
POST
Refund a captured payment

Authorizations

x-api-key
string
header
required

API key for service-to-service or merchant authentication.

Headers

x-correlation-id
string<uuid>

Unique identifier for request tracing. Generated by the client or server if not provided.

Example:

"550e8400-e29b-41d4-a716-446655440000"

x-idempotency-key
string<uuid>

Unique key for idempotent request processing. Duplicate requests with the same key are safely ignored.

Example:

"baf6a8e2-0c89-46ef-9ca5-faa65b99bcd5"

x-business-account-id
string<uuid>

The business account to act on, for platform use cases. When sent, that account is the merchant for the request: resources are created under it, reads and 404 checks are scoped to it, and per-merchant uniqueness (such as merchant_reference_id) applies within it. The API key's own account is recorded as the account acting on its behalf. Omit it to act on the API key's own account.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

payment_id
string<uuid>
required

Unique identifier of the payment

Example:

"9822ffb8-26de-423b-ad15-0d129cf1b4ac"

Body

application/json

Refund a captured payment

Refund amount, reason, and metadata. If amount is omitted, the full remaining captured amount is refunded.

amount
integer

Amount to refund in minor units. Omit to refund full remaining captured amount.

Required range: x >= 1
Example:

5000

reason
string

Reason for the refund

Example:

"Customer returned item"

metadata
object

Additional metadata

Example:

Response

Payment accepted for processing.

payment
object
required

Available action links (HATEOAS)