Refund

Use the transaction management endpoint to create a refund for an existing approved transaction.

Refunds use the payment configuration and provider account from the original transaction. Do not send a new payment_method or payment_provider_account_id.

The API supports full and partial refunds of approved PURCHASE or DEPOSIT transactions. The request amount must not exceed the remaining refundable amount. Send the full remaining amount for a full refund, or send a smaller amount for a partial refund.

The terminal and payment provider account must support refunds. The request fails when the original transaction is not approved, has no refundable balance, or the provider does not support the operation.

Endpoint

POST /api/transactions/manage
Authorization: Bearer <access_token>
Content-Type: application/json

The response is an ExtendedTransactionDto for the new refund transaction. Read its status and use transaction lookup or webhooks when the result is not final.

Request fields

Field Required Description
terminal_id Yes Terminal used by the original transaction.
currency Yes Must match the original transaction.
amount Yes Refund amount in the currency’s minor unit. Must not exceed the remaining refundable amount.
reference Yes Reference of the original transaction.
transaction_type Yes Must be REFUND.
parent_transaction_id No Identifies the exact original transaction when the reference has more than one transaction.
metadata No Merchant-defined string values copied to the refund request.
options No Additional management options supported by the configured flow.

Full refund

Use the original transaction amount when the full remaining balance should be refunded.

{
  "terminal_id": "your-terminal-id",
  "currency": "EUR",
  "amount": 1050,
  "reference": "merchant-order-10001",
  "transaction_type": "REFUND",
  "metadata": {
    "reason": "Customer cancellation"
  }
}

Partial refund

Send an amount below the remaining refundable balance. You can submit later partial refunds until that balance reaches zero.

{
  "terminal_id": "your-terminal-id",
  "currency": "EUR",
  "amount": 500,
  "reference": "merchant-order-10001",
  "transaction_type": "REFUND",
  "parent_transaction_id": "original-transaction-id"
}