POST
/
business
/
{business}
/
payments
/
{transaction_reference}
/
refunds

The Authorization needs to be in the following format:

Authorization: Token <YOUR_API_KEY>

Use this endpoint to refund a payment, either partially or in full.

Path Parameters

business
string
required

The unique identifier of the business.

transaction_reference
string
required

The unique reference of the transaction to be refunded.

Body

application/json
amount
number
required

The monetary value to be refunded.

Response

200 - application/json
amount
string

The amount refunded.

business
object

Details about the business associated with the transaction.

card_brand
string | null

The brand of the card used.

country
string

The country associated with the refund.

created
string

The timestamp when the refund was created.

currency
object

Details about the currency used.

currency_code
string

The currency code used for the transaction.

fee_amount
number | null

The fee amount charged.

has_balance_transaction
boolean

Indicates if there is a balance transaction.

id
integer

The unique identifier of the refund transaction.

incoming_request
string | null

Details of the incoming request, if any.

is_card_international
boolean

Indicates if the card used is international.

is_disputed
boolean | null

Indicates if the transaction is disputed.

is_fees_computed
boolean

Indicates if the fees have been computed.

is_refunded
boolean | null

Indicates if the transaction has been refunded.

issuing_country
string | null

The issuing country of the payment method.

metadata
string | null

Additional metadata associated with the transaction.

modified
string

The timestamp when the refund was last modified.

net_amount
number | null

The net amount after fees.

number_of_installments
integer

The number of installments for the transaction.

number_of_payment_attempts
integer | null

The number of payment attempts made for the transaction.

operation_date
string

The date and time when the refund operation was performed.

payment
object

Details about the payment.

payment_method
string | null

The payment method used.

payment_method_old
string | null

The previous payment method, if applicable.

provider
string

The payment service provider for the transaction.

reason
string | null

The reason for the refund, if provided.

The reference identifier of the related transaction.

response
object

The response details of the refund operation.

rolling_reserve_amount
number | null

The rolling reserve amount, if any.

status
string

The status of the transaction.

tonder_inter_transaction_rate
number | null

The inter-transaction rate for Tonder.

tonder_intra_transaction_rate
number | null

The intra-transaction rate for Tonder.

tonder_transaction_fee
number | null

The transaction fee charged by Tonder.

transaction_reference
string

The reference identifier of the original transaction.

transaction_type
string

The type of transaction (e.g., REFUND).