Skip to main content
POST
Refund a transaction

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path Parameters

id
integer<int64>
required

The id of the transaction to refund, as returned when it was created.

Body

application/json

What to refund.

What to refund of a captured transaction.

amount
number<double> | null

The amount to refund. Positive, with at most two decimals, and not more than is still captured. Omitted, everything that is captured and not refunded yet is refunded.

Example:

10

operationId
string | null

Your unique id for this refund, at most 128 characters, never used for another transaction. Optional, but without it one partial refund cannot be told from the next. Send the same id only when you repeat the same request.

Maximum string length: 128
Example:

"e5d4c3b2-a190-4f8e-b7c6-d5e4f3a2b1c0"

refundTransactionType
string | null

The name of the transaction type the refund is booked as. Omitted, a payment is refunded as Refund and any other transaction as its own type.

Example:

"Refund"

metadata
object | null

Key-value pairs for the refund transaction, added to a copy of the original transaction's pairs. Together at most 1024 characters as JSON.

Example:

Response

The amount was refunded, or an earlier call with the same operationId had refunded it already. transactionId is the id of the refund transaction.

The refund of a transaction.

transactionId
integer<int64>
required

The id of the refund transaction that was created.

Example:

9154412

remainingCapturedAmount
number<double>
required

What is left of the original transaction's captured amount after this refund. It can still be refunded.

Example:

10

Last modified on August 10, 2026