Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Quickstart

    Read an account, list the suggested matches, accept one and read the account again.

    On this page

    You need a token and the base address of your account. The requests read them from the environment as $RDC_BASE_URL and $RDC_TOKEN. See Authentication and Sandbox and live.

    Find the company

    Every bank account belongs to a company of your account. List the companies and keep the id of yours: it is the companyId of the next request.

    List companies

    curl

    curl "$RDC_BASE_URL/banking/v1/companies" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

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

    Response 200

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

    Read the accounts

    Pass the id of your company as companyId. Each bank account comes with its balances, the difference between the statement and the ledger, and linesLeft, the number of booked transactions that are not matched yet. Keep the id of the account.

    List accounts

    curl

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

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/accounts?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9`, {
      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',
        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');
    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");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

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

    List the suggested matches

    Ask for the matches of the account with state set to suggested. Every match names its method and gives a one-sentence reason. Keep the id and the revision of the one you accept.

    List suggested matches

    curl

    curl "$RDC_BASE_URL/banking/v1/matches?accountId=258f8664-ff43-4e53-b688-ad5a4a97ede6&state=suggested" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/matches?accountId=258f8664-ff43-4e53-b688-ad5a4a97ede6&state=suggested`, {
      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/matches?accountId=258f8664-ff43-4e53-b688-ad5a4a97ede6&state=suggested',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/matches?accountId=258f8664-ff43-4e53-b688-ad5a4a97ede6&state=suggested');
    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/matches?accountId=258f8664-ff43-4e53-b688-ad5a4a97ede6&state=suggested");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "items": [
        {
          "id": "d976e350-d423-4499-ac3d-207185a9bd4b",
          "transactionId": "0dea7dcc-e56e-4654-bdf3-95fbedf34baf",
          "state": "suggested",
          "method": "exact",
          "reason": {
            "code": "exact",
            "text": "The amount RON 3,168.42 equals FCT-2026-00418 and the reference names it."
          },
          "allocations": [
            {
              "kind": "item",
              "openItemId": "6023b97b-b8aa-40bf-bf95-706a76377739",
              "amount": "3168.42"
            }
          ],
          "remainder": "0.00",
          "note": null,
          "revision": 1
        },
        {
          "id": "d3c1d37c-0bf1-4603-b3e7-5c5c5361ad00",
          "transactionId": "4d285753-c13f-44e2-a3fb-ab6043e969d7",
          "state": "suggested",
          "method": "exact",
          "reason": {
            "code": "exact-sum",
            "text": "The amount RON 20,804.25 equals the sum of FCT-2026-00402 and FCT-2026-00409, and the reference names them."
          },
          "allocations": [
            {
              "kind": "item",
              "openItemId": "eebd7a30-2a6a-4a3b-a6f2-e40004cc707f",
              "amount": "12043.85"
            },
            {
              "kind": "item",
              "openItemId": "5be6df30-6bcb-4cbf-8ca7-fbb0549795ba",
              "amount": "8760.40"
            }
          ],
          "remainder": "0.00",
          "note": null,
          "revision": 1
        },
        {
          "id": "0a72c26f-af85-4602-857c-1b5a033e09f6",
          "transactionId": "eb7c7917-db20-48ad-a29f-f3b08206f633",
          "state": "suggested",
          "method": "partner",
          "reason": {
            "code": "partner-partial",
            "text": "Earlier lines of this partner were matched to its documents. The reference names FCT-2026-00396 and the amount is less than what it still owes, so it is paid in part."
          },
          "allocations": [
            {
              "kind": "item",
              "openItemId": "7658d7ee-a883-4138-a96a-eb531d7be739",
              "amount": "3000.00"
            }
          ],
          "remainder": "0.00",
          "note": null,
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Accept one

    Send a new operationId and the revision you read as expectedRevision. The answer is the operation result: it says that the change is accepted, with the record and its new revision.

    Accept a match

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/matches/d976e350-d423-4499-ac3d-207185a9bd4b/accept" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
      "expectedRevision": 1
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/matches/d976e350-d423-4499-ac3d-207185a9bd4b/accept`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
        "expectedRevision": 1
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/matches/d976e350-d423-4499-ac3d-207185a9bd4b/accept',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'afbcc71e-ab42-4c5a-9c97-23ab1eae4574',
            'expectedRevision': 1,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
      "expectedRevision": 1
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/matches/d976e350-d423-4499-ac3d-207185a9bd4b/accept');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/banking/v1/matches/d976e350-d423-4499-ac3d-207185a9bd4b/accept");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
      "expectedRevision": 1
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
      "status": "accepted",
      "aggregateId": "d976e350-d423-4499-ac3d-207185a9bd4b",
      "aggregateRevision": 2
    }

    • operationId is a UUID you choose for the change. Send the same one to repeat the request after a timeout: the change is applied once. See Idempotency and concurrency.
    • expectedRevision is the revision of the record you read. If the record changed since, the answer is a 409 and nothing is applied. See Idempotency and concurrency.

    getOperation with the same operationId returns the first outcome of the change.

    Read the account again

    The matched transaction no longer counts as left: linesLeft is lower by one and difference no longer includes its amount.

    Get an account

    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": "159368.22",
      "difference": "-5078.55",
      "linesLeft": 7,
      "nonWorkingDays": [
        "2026-11-30",
        "2026-12-01"
      ]
    }

    Where next