Get advanced balances of user

Get list of advanced balances of user

Get advanced balances of user

POSThttps://ocp.onchainpay.io/api-gateway/advanced-balances
Header parameters
Body
any
Response
Body
success*boolean

Request success indicator

response*AccountsResponse (array of AccountResponse (object))

Response body when requesting a list of advance balances

Request
const response = await fetch('https://ocp.onchainpay.io/api-gateway/advanced-balances', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
});
const data = await response.json();
Response
{
  "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
        }
      ]
    }
  ]
}

Last updated