Get advanced balance by id

Get info about advanced balance by its id

Get advanced balance by id

POSThttps://ocp.onchainpay.io/api-gateway/advanced-balance
Header parameters
Body
advancedBalanceId*string

Advance balance identifier

Example: "abeb285e-0e04-4fb4-90cb-69ad4b89f212"
Response
Body
success*boolean

Request success indicator

response*any of
Request
const response = await fetch('https://ocp.onchainpay.io/api-gateway/advanced-balance', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "advancedBalanceId": "abeb285e-0e04-4fb4-90cb-69ad4b89f212"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "advancedBalanceId": "abeb285e-0e04-4fb4-90cb-69ad4b89f212",
    "currency": "USD",
    "blocked": false,
    "blockReason": null,
    "balance": "4711.33",
    "availableCurrenciesForDeposit": [
      "USDT"
    ],
    "tariffs": [
      {
        "id": "4810ab35-f32a-4310-85c3-3dc2e5f573ba",
        "action": "EXCHANGE_AUTO",
        "amount": "0.03",
        "type": "PERCENT",
        "minAmount": "0.1",
        "maxAmount": "3000",
        "invoiceAdditionalFee": false
      }
    ]
  }
}

Last updated