Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Accounts and balances

    The account object, the five numbers that show where a reconciliation stands, and the day a payment is executed.

    On this page

    An account is one bank account of one company. It carries the balances that come from the statements you import and the counters that show how much of those statements is matched. You read it with getAccount, or all the accounts of a company with listAccounts.

    curl

    curl "$RDC_BASE_URL/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "id": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
      "name": "Operating account",
      "iban": "RO** **** **** **** **** 0000",
      "currency": "RON",
      "bookedBalance": "154289.67",
      "availableBalance": "153394.27",
      "statementBalance": "154289.67",
      "ledgerBalance": "156199.80",
      "difference": "-1910.13",
      "linesLeft": 8,
      "nonWorkingDays": [
        "2026-11-30",
        "2026-12-01"
      ]
    }

    The account object

    FieldMeaning
    idIdentifier of the account. companyId names the company it belongs to.
    nameThe name of the account.
    ibanThe IBAN with its middle characters masked.
    currencyThe currency of the account: RON.
    bookedBalanceThe closing balance of the latest statement.
    availableBalanceThe booked balance minus the pending debits.
    statementBalanceThe closing balance of the latest statement imported.
    ledgerBalanceThe opening balance of the first statement plus the booked transactions that are matched.
    differencestatementBalance minus ledgerBalance.
    linesLeftHow many booked transactions are not matched yet.
    nonWorkingDaysDates besides Saturdays and Sundays on which a payment is not executed.

    Amounts are decimal strings with two decimals, such as 154289.67. A debit is negative and a credit is positive.

    The five numbers

    bookedBalance and statementBalance read the same closing balance. ledgerBalance is what the matched transactions add to the opening balance of the first statement. The distance between the two is difference, and linesLeft counts the transactions that make it up.

    The operating account, before and after the import of the statement for 2026-11-20 to 2026-11-22:

    Before the import

    {
      "bookedBalance": "154289.67",
      "availableBalance": "153394.27",
      "statementBalance": "154289.67",
      "ledgerBalance": "156199.80",
      "difference": "-1910.13",
      "linesLeft": 8
    }

    After the import

    {
      "bookedBalance": "180250.47",
      "availableBalance": "179355.07",
      "statementBalance": "180250.47",
      "ledgerBalance": "156199.80",
      "difference": "24050.67",
      "linesLeft": 11
    }

    The import adds three transactions that are booked and not matched: the return, the line that was pending and the fee. statementBalance moves to the new closing balance, ledgerBalance stays at 156199.80, difference grows to 24050.67 and linesLeft goes from 8 to 11. Each match you accept moves its amount from difference to ledgerBalance and lowers linesLeft by one. When both reach zero, the month is reconciled.

    Available balance

    availableBalance is bookedBalance minus the pending debits: 154289.67 minus 895.40 gives 153394.27. A pending credit is not available yet, so it adds nothing until a later statement books it.

    Non-working days and the execution day

    A payment proposal has a dueOn day and an executeOn day. Until the proposal is exported, executeOn is the scheduled day: the due day when it is a working day, and otherwise the last working day before it. Saturdays and Sundays are never working days. The other days are the nonWorkingDays of the account.

    The payments PP-1003 and PP-1004 show it. Their bills fall due on 2026-11-30 and 2026-12-01, and the operating account lists both days in nonWorkingDays. 30 November is a public holiday on which no work is done. 1 December is a public holiday on which no work is done.

    PaymentDue dayExecution day
    PP-10032026-11-30, Monday2026-11-27, Friday
    PP-10042026-12-01, Tuesday2026-11-27, Friday

    The count goes back from the due day over the holidays and the weekend to the last working day, 2026-11-27. A payment file holds one execution day, the earliest scheduled day of its payments, and each payment in it shows that day after the export; see Payment proposals and approvals.

    Where next