Order Types
Your flow for using AzPay may differ depending on which kind of assets you want your users to have it credited.
If you simply want to receive fiat funds and have the fiat directly credited on your platform, or if you prefer to deal with the currency exchange directly on your side, you will use the following order types:
- Deposit orders receive fiat funds and keep the funds on its original form on your internal wallet.
- Withdrawal orders send fiat funds to a destination (also fiat receiver).ÎÎ
If you do not want to deal with fiat funds and prefer having the funds exchanged to crypto-currencies upon deposited (or from crypto-currencies before a withdrawal), then you'll use:
- Buy orders exchange the fiat funds received from the user into crypto assets, which are kept in your crypto wallets after the order is completed.
- Sell (coming soon)
"Deposit" and "buy" orders are cash-in orders, whereas "withdrawal" and "sell" orders are cash-out orders.
In either of the cases, the flow consists on creating an order and listening for updates on the orders status.
Updated 8 months ago