Skip to main content
API documentation

3 endpoints

Refunds

Refund all or part of a successful payment, with a reason and your own reference — debited from the balance and linked to the original payment.

Endpoint names and descriptions come from the OpenAPI contract, in English — they cannot drift from the API.

In plain English

Give the money back, in full or in part, cleanly.

When to use it

As soon as an order is cancelled, returned or disputed. Partial refunds are possible, and several can follow each other as long as the total stays within the original payment.

How to integrate it

  1. 1Create the refund citing the original operation and your refund reference.
  2. 2The reference acts as the idempotency key: replaying the same call does not refund twice.
  3. 3Follow completion by webhook — a refund is not instant on the bank side.
GET

List refunds

Returns your refunds for the key's environment, most recent first, as a paginated Page. Optionally filtered by status (PENDING, SUCCESS, FAILED).

FieldTypeInRequiredDescription
statusenumqueryOptionalOnly refunds in this status.Values PENDINGSUCCESSFAILED
pageablePageablequeryRequired
POST

Create a refund

Refunds a payment, in full or partially (refundAmount). Identify the payment by operationId or externalId. Idempotent on refundReference: replaying an already-executed reference returns the existing refund (200) without re-debiting; a fresh one returns 202 Accepted while it settles.

Schema · RefundPaymentRequest

FieldTypeInRequiredDescription
operationIdinteger (int64)bodyOptional
externalIdstringbodyOptional
refundReferencestringbodyRequired
refundAmountnumberbodyOptional
reasonstringbodyRequired
notestringbodyOptional
metadataobjectbodyOptional
GET

Retrieve a refund

Fetches a refund by your refundReference or the platform refundId.

FieldTypeInRequiredDescription
referencestringpathRequiredYour refundReference or the platform refundId.

Talk to an integrator

A question about integration?

Our technical team supports integrators from the first sandbox call through to go-live.