Withdrawals
Contains withdrawals description and provides common workflow for that feature
Last updated
Was this helpful?
Contains withdrawals description and provides common workflow for that feature
Last updated
Was this helpful?
To the opposite of deposits, sending cryptocurrencies to the users is similar to classic payment methods. Users fill the form where they provide the address and the amount of the withdrawal. After that the web-service creates the transaction and sends a withdrawal request to the payment provider. When the transaction is confirmed by the payment provider, the web-service decreases the user's balance on the website.
The most common scenario for sending crypto is "withdrawal with exchange". Citron provides web-services with on-the-fly exchange solution. This means that the funds that are stored on a merchant's fiat balance can be automatically converted into cryptocurrencies before being sent to the user's crypto wallet.
In case of regular withdrawals without exchange the workflow will be the same except of conversion operation.
Algorithm
Client makes a withdrawal request to the merchant, and also provides the wallet
The merchant sends the amount to the API along with the clients ID and wallet
Citron makes a withdrawal to the provided wallet
After a successful transaction on the blockchain, Citron sends a callback to the merchant
Merchant notifies the client of a successful withdrawal
In order to make a withdrawal you should use the "/withdrawal/crypto" method from our API. You can define what currency should be used to send the funds, and, if necessary, from what fiat currency the funds should be converted before sending to the user.