Sell stablecoins
Requirements to start the flow.
Broker account
You must have a broker account (Tutorial here)
API key
Have an API key (Tutorial here).
Order flow
The process of selling stablecoins is done through the following steps:
Register the receiving bank account
Before creating an order, you need to register the bank account that will receive the funds. This only needs to be done once per bank account-currency pair.
Go to create a new bank account
Create a quote
You can create as many quotes as necesarry before creating an order.
Go to create quote endpoint
Create order
Once you are satisfied with a quote, you can create an order for the quoted amount. Make sure to pass the ID for the bank account to which you would like to receive the funds through the payoutBankAccountId
field.
Go to create order
Wait for the order to be ready to accept your payment
Poll the order or subscribe to our webhooks. Wait for the order to have a status of awaitingPayment
.
Go to check order status
Pay for the order
Please send the amount specified in the amountCrypto
field of the order object to the address specified by the depositAddress
field of the order.
Go to confirm payment
Wait for funds
Rio will send the funds to your bank account in the next few minutes.