Skip to main content
POST
Create a refund
This API endpoint can only be used for payment requests initially created via the /payments/v1/requests endpoint. For payment requests created via the portal, see Create a manual refund. The payment request must have the Paid status. For every error this endpoint returns and what it means, see API errors: Create a refund.

Authorizations

X-Processing-Key
string
header
required

Your API key.

Headers

X-Processing-Signature
string
required

Hex-encoded HMAC-SHA512 signature of the request body, generated using your secret key.

Path Parameters

payment_request_id
string
required

The id of the payment request.

Example:

"019d511c-9fd2-7e71-b534-74e8abd855f1"

Body

application/json
amount
string
required

The amount to refund, in the payment request currency.

The amount must be not smaller than the refund fee plus the minimum withdrawal amount and not greater than the paid amount. If you have made a partial refund for this payment earlier, the maximum amount of a new refund is reduced accordingly.

Example:

"100"

foreign_id
string
required

Unique ID of the refund in your system. Must not contain personal data, such as the customer's name or email address.

Maximum string length: 255
Example:

"refund_123"

reason
string

A short description of why the payment is refunded. The customer will see the reason in the email they receive.

Maximum string length: 255
Example:

"Refund for order 0511"

Response

OK

data
object
Last modified on November 25, 2026