Refunds
Refunding a cryptocurrency transaction will essentially reverse the flow of funds after performing the necessary currency calculations to ensure the correct amount of the underlying asset is returned. Please note that the refund amount will be reduced by the current gas fee.
For example, if a customer originally paid €100 for a product in TRX (Tron) two weeks ago, the refund endpoint will take into account the current exchange rate and gas fee, before returning the resulting amount in TRX.
Create A Refund
POST /transaction/{TRANSACTION_ID}/refund
POST
/transaction/{TRANSACTION_ID}/refundcurl --location '{API_BASE_URL}/transaction/{TRANSACTION_ID}/refund' \
--header 'X-API-Key: {API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"amount": {AMOUNT_IN_FLOAT},
"reason": "{REASON}" // OPTIONAL
}'
Create Refund Response
- Name
refundId- Type
- string
- Description
Unique identifier for the refund.
- Name
assetAmount- Type
- string
- Description
Asset amount for the refund.
example response
{
"refundId": "acd09ac7-612f-4011-ac74-a5e1f4753648",
"assetAmount": "9.34"
}
