1. Prepare a refund
/payout/refund/direct/localInitiate a refund in the cryptocurrency that was received by the payment.
Note : This provides a quote that expires 60 seconds after creation.
Body application/json
Unique Payment Reference Number to refund from
Crypto address of the refund recipient. The receiving wallet address must be for the same cryptocurrency as the payment.
Amount of the payment to be refunded. The refund currency is the original payment currency
String indicating the reason for the refund. The available options are requested_by_customer to signify a typical refund requested by the customer, and aml to indicate that you suspect the original payment may be associated with illegal activity. If aml is specified, there is a possibility that the user or wallet may be restricted from conducting any further transactions.
Remarks for the payout
The URL to send the webhook notification. The webhook URL given in your account setup will be used if this is not provided. For testing you can use webhook.site
The shared secret that will be used to sign the notification. This secret can be at most 64 characters long. If this is not provided in the payment request, the system will create a random secret just for that payment.
Response
Success
Unique payout reference number
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.
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.
Account type the funds are drawn from: local - Funds are drawn
from a local currency account
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.
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.
The local currency amount to be paid out. Please ignore if the payout is in cryptocurrency.
Cryptocurrency that will be paid out. Please ignore if the payout is in local currency.
Amount of cryptocurrency to be paid out if the settlement is in cryptocurrency.
Amount of cryptocurrency representing the network fee. This is denominated in crypto_currency.
Amount of cryptocurrency after deduction of the network_fee_crypto_amount.
Address that recipient will receive the payout at.
The exchange rate that will be used to exchange local currency to cryptocurrency or vice-versa.
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. -
pending_authorization- The crypto payout is pending for authorization.
Date and time the status was updated
Name of the merchant
Remarks for the payout
The URL to send the webhook notification. The webhook URL given in your account setup will be used if this is not provided. For testing you can use webhook.site
The shared secret that will be used to sign the notification. This secret can be at most 64 characters long. If this is not provided in the payment request, the system will create a random secret just for that payment.
Not authorized
No permission to initiate this refund from this payment
Payment reference to refund from not found
Refund Processing Error - The refund cannot be processed
Validation Error - There are 1 or more errors in the request body
Main error message