Test a Withdrawal
Before creating and testing a Withdrawal, we recommend reading the detailed Withdrawal guide. It explains how Coin Withdrawals work, including the available fields, flow, errors, callbacks, payment statuses, and other important details. You can create and test Withdrawals through your Merchant Account or the API.
Create a Withdrawal in your Merchant Account
You can also create a Withdrawal directly from your sandbox merchant account.
Go to Accounts.
Click Send.
Select the cryptocurrency and network. If there are insufficient funds in the selected balance for the test transaction, please make an exchange to top up the balance first.
Enter the destination wallet address. Make sure that the wallet address matches the selected cryptocurrency and network.
Enter the amount and complete the Withdrawal, confirm it with 2fa.
Create a Withdrawal through the API
After completing authentication, create a Withdrawal using the Coin Withdrawals API Reference.
Specify the currency and amount to debit from your Cryptopay balance, the destination currency and wallet address, and the applicable fee settings.
Once the Withdrawal is created, you can track its status through the API and receive updates through your configured callbacks.
During testing, make sure that your integration:
creates the Withdrawal with the correct currency, network, amount, and destination address;
receives and processes Withdrawal callbacks correctly;
correctly handles Withdrawal statuses;
does not process the same callback more than once;
correctly handles failed or cancelled Withdrawals.
Result
After completing the test, you will see two transactions in your transaction history: a channel payment or an invoce and a Coin Withdrawal. If the Coin Withdrawal was created through the API, callbacks will be sent for this transaction according to your configured callback settings.
Last updated