Get the details of the refund, including current status via payment reference.
Path Parameters
payment_referencestringrequired
Unique payment reference number given by the Payment Request
Response
Success
refund_currencystring
The local currency equivalent of the refund. This should be a
3-character ISO 4217
currency code. Please ignore if the refund is in cryptocurrency.
refund_amountnumber<float>
The local currency amount to be refunded. Please ignore if the refund is in cryptocurrency.
remain_amountnumber<float>
The remaining local currency amount of the payment after being refunded. Please ignore if the refund is in cryptocurrency.
refund_crypto_currencystring
Cryptocurrency that will be paid out. Please ignore if the refund is in local currency.
refund_crypto_amountnumber<float>
The cryptocurrency amount to be refunded. Please ignore if the refund is in local currency.
remain_crypto_amountnumber<float>
The remaining cryptocurrency amount of the payment after being refunded. Please ignore if the refund is in local currency.
refundsobject[]
Show refunds properties
payout_referencestring
Unique payout reference number
type"withdraw" | "refund"
The type of payout:
refund - A partial or complete refund of a prior successful
payment.
withdraw - A settlement of the merchant’s accumulated USD
balance in cryptocurrency.
local_currencystring
The local currency equivalent of the payout. This should be a
3-character ISO 4217
currency code. Please ignore if the payout is in cryptocurrency.
local_amountnumber<float>
The local currency amount to be paid out. Please ignore if the
payout is in cryptocurrency.
crypto_currencystring
Cryptocurrency that will be paid out. Please ignore if the payout
is in local currency.
crypto_amountnumber<float>
Amount of cryptocurrency to be paid out if the settlement is in
cryptocurrency.
display_crypto_currencystring
Cryptocurrency that will displayed. Please ignore if the payout
is in local currency.
network_fee_crypto_amountnumber<float>
Amount of cryptocurrency representing the network fee. This is denominated in crypto_currency.
net_crypto_amountnumber<float>
Amount of cryptocurrency after deduction of the network_fee_crypto_amount.
exchange_ratenumber<float>
The exchange rate that will be used to exchange local currency to
cryptocurrency or vice-versa.
crypto_addressstring
Address that recipient will receive the payout at.
status"new" | "confirm" | "done" | "cancel"
The current status of the payout:
new - The payout has just been created, but the recipient has not
entered in their receiving crypto address and the exchange rate has
not been fixed.
confirm - The recipient has confirmed their receiving crypto
address and the exchange rate has been fixed.
done - The crypto payout has been broadcast to the blockchain.
cancel - The crypto payout has been cancelled.
status_datestring<date-time>
Date and time the status was updated
merchant_namestring
Name of the merchant
remarksstring
Remarks for the payout
account_type"local"
Account type the funds are drawn from: local - Funds are drawn
from a local currency account
convert_type"local-local" | "local-crypto"
Type of conversion the funds underwent:
local-local - Funds are drawn from a local currency account
and paid out as local currency.
local-crypto - Funds are drawn from a local currency account
and paid out as cryptocurrency.
order_idstring
Your system unique order id. You will get this in the notification webhook data, if you insert your unique order_id in the request body during the payout/settlement creation.
Not authorized
messagestring
No permission to view details of this refund
messagestring
Refund not found
messagestring
API Reference › Stablecoin Payments API › Refunds
Request
curl -X GET "https://api.triple-a.io/api/v2/payment/<payment_reference>/refunds" \ -H "Authorization: Bearer <token>"