4. Cancel a crypto payout
/payout/withdraw/{payout_reference}/local/crypto/cancelCancel the crypto payout. If you decide not to proceed with the payout after the creation, you MUST make this call in order to return the funds to your merchant balance (else they remain reserved and unavailable for others to spend).
Path Parameters
Unique payout reference number given when initiating the crypto payout
Response
Success
The merchant’s system unique order id.
Unique payout reference number
The type of payout:
-
refund- A partial or complete refund of a prior successful payment. -
withdraw- A withdrawal (or payout) of the merchant’s accumulated local currency 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.
This indicates the type of wallet the payout goes to, either a Binance wallet or other onchain-wallet.
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 payout 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.
This could either be a unique wallet address hash or Binance ID, depending on the field - payout_destination_type.
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 or refreshed, but has not been confirmed or cancelled yet. This status will appear if you call the Create Crypto Payout via API. -
confirm- The payout has been confirmed. This status will appear if you call the Confirm Crypto Payout via API. -
done- The payout has been broadcasted to the blockchain and successfully paid out to the recipient. -
cancel- The payout has been cancelled. This status will appear if you call the Cancel Crypto Payout via API and successfully cancel the payout.
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.
No permission to cancel the payout
no_permission - refers to when trying to confirm, cancel or refresh the payout that has been confirmed or cancelled. Or access token has expired.