Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Accounts

    The companies of your account, and their bank accounts with the balances and the counters of the reconciliation.

    On this page

    List companies

    GET /banking/v1/companies

    Returns the companies of your account in pages. Every other list takes the id of one of them as companyId.

    Parameters

    NameInTypeRequiredMeaning
    limit query integer Nooptional Records per page, from 1 to 500. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of companies. CompanyPage
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 Treasury cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/banking/v1/companies?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/companies?limit=20`, {
      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/companies?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/companies?limit=20');
    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/companies?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "items": [
        {
          "id": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
          "name": "Brumar Distribuție SRL"
        },
        {
          "id": "42211ece-db0a-4e87-aaf6-33a911d18b6c",
          "name": "Brumar Retail SRL"
        }
      ],
      "nextCursor": null
    }

    List accounts

    GET /banking/v1/accounts

    Returns the bank accounts of a company in pages, each with its booked and available balance, the statement balance, the ledger balance, the difference and the number of lines left to match.

    Parameters

    NameInTypeRequiredMeaning
    companyId query string (uuid) Yesrequired The company whose records you want. It is the id of a company in the list of companies.
    limit query integer Nooptional Records per page, from 1 to 500. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of accounts. AccountPage
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 Treasury cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/banking/v1/accounts?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/accounts?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20`, {
      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?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/accounts?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20');
    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?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "items": [
        {
          "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"
          ]
        },
        {
          "id": "3cc1246c-6761-405a-9970-9f22f2339d4f",
          "companyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
          "name": "Tax and payroll account",
          "iban": "RO** **** **** **** **** 0001",
          "currency": "RON",
          "bookedBalance": "24529.10",
          "availableBalance": "24529.10",
          "statementBalance": "24529.10",
          "ledgerBalance": "11264.50",
          "difference": "13264.60",
          "linesLeft": 2,
          "nonWorkingDays": [
            "2026-11-30",
            "2026-12-01"
          ]
        }
      ],
      "nextCursor": null
    }

    Get an account

    GET /banking/v1/accounts/{accountId}

    Parameters

    NameInTypeRequiredMeaning
    accountId path string (uuid) Yesrequired The bank account.

    Responses

    StatusMeaningBody
    200 The account with its balances. Account
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The bank account does not exist in your account. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 Treasury cannot answer now. Error

    Request

    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

    JSON

    {
      "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"
      ]
    }