Get payout quote funding
Returns how one of your quotes would be funded. A payout is paid from the quote's network (sourceChainId on Create payout quote), and only sourceCurrency you hold on that network can pay for it. The response gives your available balance there, the amount the payout needs, the shortfall and the address to deposit to. It also lists what you hold on the other networks that carry the currency. Those balances cannot fund this payout.
The API names a network by chainId (its id) and chainName (its name to show); this page calls it the network.
The read is live and has no side effects. Call it after every quote, and again after you deposit, until it says covered. A quote's price does not change while you fund it; only the balance does.
A typical integration:
- Create a quote with Create payout quote. Keep
quoteId. - Read the funding. If
coveredistrue, the quote is funded. Payout creation is not yet on the Partner API, so there is nothing further to call. - If not, send
shortfallofcurrencytodepositAddress.addressonchainName, then re-read untilcoveredturnstrue. Stop whenquoteExpiredturnstrueand quote again; what you deposited stays in your wallet.
A deposit counts toward availableOnChain only once it is credited. Until then it shows as pending on Get wallet. Poll no faster than every 30 seconds and respect the rate limits.
The partner identity comes from the access token only. The quote must be one of yours; another partner's quote reads as 404 PayoutQuote.NotFound, the same as a quote that does not exist.
Path
quoteIduuidpathrequiredThe quoteId from Create payout quote.
Response
quoteIduuidcurrencystringThe quote's source currency, for example USDT. Every amount in this response is in it.
chainIdstringThe network the payout is paid from, as a CAIP-2 id. The same as the quote's sourceChainId.
chainNamestringThe network's name to show, for example Tron, or Tron Nile on sandbox.
amountNeedednumberWhat the payout will take from your balance: the quote's sourceAmount, always. Fees are already inside it; do not add anything.
availableOnChainnumberYour available balance of currency on chainId. Money reserved by another payout is already excluded. 0 when you have never held this currency on that network, or have no wallet in it.
shortfallnumberamountNeeded - availableOnChain, never below 0. What to deposit on chainName to cover the payout.
coveredbooleantrue when shortfall is 0.
quoteExpiredbooleantrue once expiresAtUtc on the quote has passed. The numbers are still returned, so a deposit you are mid-way through is not lost from view, but an expired quote cannot be paid: quote again.
walletIduuid | nullYour standard wallet in currency, the one the deposit lands in. See Get wallet. null when you have no such wallet. The wallet may not be Active; check its status with Get wallet before depositing, because a wallet that is not Active may not take deposits.
depositAddressobject | nullWhere to send currency on chainName. The same address may also serve other networks of the same family, so always pair it with the network when you show or send it; a transfer on another network does not count toward this payout.
null when you have no wallet in this currency. If no address exists yet for this network, or Ryno no longer accepts deposits of this currency on it, it is also null; contact support before depositing.
otherChainsobject[]Every other network on which Ryno currently supports currency, with your available balance there. These balances cannot fund this payout; they are listed so you can see where your money is. A network Ryno no longer supports for this currency is not listed. Ordered by network name.
Errors
| Code | HTTP | Meaning |
|---|---|---|
Request.Invalid | 400 | quoteId is not a UUID. |
Auth.Unauthorized | 401 | The token is missing or invalid. |
Auth.Forbidden | 403 | The token is not a partner credential, or lacks partner.read. |
partner.profile_not_active | 403 | Your partner account is not active. Contact support. |
PayoutQuote.NotFound | 404 | No quote of yours has this id. Also returned for another partner's quote. |
PayoutQuote.NotChainFunded | 404 | The quote has no network to fund from: its corridor is paid in fiat, or the quote was issued before networks were recorded. Quote again on a corridor that has a chainId in List payout corridors. |
PayoutQuote.CustomerNotFound | 404 | Your account could not be found. Contact support. |
partner.profile_not_found | 404 | No partner profile is associated with your credential. Contact support. |
PayoutQuote.ChainNotConfigured | 503 | The stored quote carries a network Ryno cannot read. Not fixable on your side; contact support with the quoteId. |
The 401, 429 and 503 responses from the API gateway use a different body. See Errors.