Get info about advanced balance by its id
Last updated 1 year ago
Advance balance identifier
"1503cf18-597f-447f-b172-112dfe377e1b"
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": "1503cf18-597f-447f-b172-112dfe377e1b" }), }); const data = await response.json();
{ "success": false, "response": { "advancedBalanceId": "1503cf18-597f-447f-b172-112dfe377e1b", "currency": "USD", "blocked": false, "blockReason": null, "balance": "4711.33", "availableCurrenciesForDeposit": [ "USDT" ], "tariffs": [ { "id": "0a9b7d99-165b-4281-af4c-8fb4ff23f389", "action": "EXCHANGE_AUTO", "amount": "0.03", "type": "PERCENT", "minAmount": "0.1", "maxAmount": "3000", "invoiceAdditionalFee": false } ] } }