Skip to main content
POST
Create a refund for a transaction.
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.

Authorizations

Authorization
string
header
required

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<float>
required

The monetary value to be refunded.

Example:

10.5

Response

200 - application/json

Refund processed successfully

id
integer

The unique identifier of the refund transaction.

Example:

17

provider
string

The payment service provider for the transaction.

Example:

"tonder"

country
string

The country associated with the refund.

Example:

"N/A"

currency_code
string

The currency code used for the transaction.

Example:

"MXN"

created
string<date-time>

The timestamp when the refund was created.

Example:

"2024-06-28T08:15:24.600617-05:00"

modified
string<date-time>

The timestamp when the refund was last modified.

Example:

"2024-06-28T08:15:24.600654-05:00"

operation_date
string<date-time>

The date and time when the refund operation was performed.

Example:

"2024-06-28T13:15:23-05:00"

transaction_reference
string

The reference identifier of the original transaction.

Example:

"16566015"

response
object

The response details of the refund operation.

transaction_type
string

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

Example:

"REFUND"

status
string

The status of the transaction.

Example:

"Success"

amount
string

The amount refunded.

Example:

"5.0000"

The reference identifier of the related transaction.

Example:

"16563893"

reason
string | null

The reason for the refund, if provided.

Example:

null

is_refunded
boolean | null

Indicates if the transaction has been refunded.

Example:

null

is_disputed
boolean | null

Indicates if the transaction is disputed.

Example:

null

number_of_payment_attempts
integer | null

The number of payment attempts made for the transaction.

Example:

null

payment_method_old
string | null

The previous payment method, if applicable.

Example:

null

is_card_international
boolean

Indicates if the card used is international.

Example:

false

card_brand
string | null

The brand of the card used.

Example:

null

number_of_installments
integer

The number of installments for the transaction.

Example:

1

incoming_request
string | null

Details of the incoming request, if any.

Example:

null

metadata
string | null

Additional metadata associated with the transaction.

Example:

null

tonder_intra_transaction_rate
number<float> | null

The intra-transaction rate for Tonder.

Example:

null

tonder_inter_transaction_rate
number<float> | null

The inter-transaction rate for Tonder.

Example:

null

tonder_transaction_fee
number<float> | null

The transaction fee charged by Tonder.

Example:

null

is_fees_computed
boolean

Indicates if the fees have been computed.

Example:

false

fee_amount
number<float> | null

The fee amount charged.

Example:

null

net_amount
number<float> | null

The net amount after fees.

Example:

null

rolling_reserve_amount
number<float> | null

The rolling reserve amount, if any.

Example:

null

has_balance_transaction
boolean

Indicates if there is a balance transaction.

Example:

false

business
object

Details about the business associated with the transaction.

payment
object

Details about the payment.

currency
object

Details about the currency used.

payment_method
string | null

The payment method used.

Example:

null

issuing_country
string | null

The issuing country of the payment method.

Example:

null