Skip to main content
POST
Refund a payment intent

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Universally unique identifier (UUID v4) of a resource.

Example:

"b3d9d2d5-4c12-4946-a09d-953e82fae2b0"

Body

application/json
idempotencyKey
string<uuid>
required

Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.

Example:

"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"

destination
object
required

The blockchain address to send a crypto refund to.

amount
object
required

The source amount of the refund. The currency must be the payment intent currency or its settlement currency.

toAmount
object
required

The destination amount of the refund. The currency must be the payment intent currency.

paymentId
string<uuid>

ID of the payment to attribute this refund to.

Example:

"2e7b6557-1967-4348-ad81-daf3cee4c175"

customerExternalRef
string<uuid>

Optional customer-supplied reference for this refund. Unlike payins, it is not inherited from the payment intent and is not part of the idempotency key, so a replay with the same idempotencyKey but a changed value returns the original refund.

Example:

"310c458a-18eb-4cbd-8a9a-586d9448ae69"

Response

Crypto refund successfully created for the given payment intent.

data
object

A crypto payment or crypto refund.