Get info about advanced balance by its id
Last updated 1 year ago
Advance balance identifier
"882f4ed6-82c8-43c3-8dd6-d755cee5f1af"
Request success indicator
const response = await fetch('https://ocp.onchainpay.io/api-gateway/advanced-balance', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "advancedBalanceId": "882f4ed6-82c8-43c3-8dd6-d755cee5f1af" }), }); const data = await response.json();
{ "success": false, "response": { "advancedBalanceId": "882f4ed6-82c8-43c3-8dd6-d755cee5f1af", "currency": "USD", "blocked": false, "blockReason": null, "balance": "4711.33", "availableCurrenciesForDeposit": [ "USDT" ], "tariffs": [ { "id": "763f735a-457d-4fc2-a0ac-b0e14c2624d7", "action": "EXCHANGE_AUTO", "amount": "0.03", "type": "PERCENT", "minAmount": "0.1", "maxAmount": "3000", "invoiceAdditionalFee": false } ] } }