Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Statements

    Import the lines of a statement file exported from your bank, and read the statements that are stored.

    On this page

    List statements

    GET /banking/v1/accounts/{accountId}/statements

    Parameters

    NameInTypeRequiredMeaning
    accountId path string (uuid) Yesrequired The bank account.
    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 statements, oldest first. StatementPage
    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/statements?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements?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/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements?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/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements?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/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements?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": "efdd0f10-eb9d-4569-837f-992ae1bdf44e",
          "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
          "from": "2026-11-02",
          "to": "2026-11-19",
          "openingBalance": "184527.30",
          "closingBalance": "154289.67",
          "lineCount": 15,
          "importedAt": "2026-11-19T18:05:00Z"
        }
      ],
      "nextCursor": null
    }

    Import a statement

    POST /banking/v1/accounts/{accountId}/statements

    Stores the lines of a statement file exported from your bank and proposes a match for every new line. The opening balance must be the closing balance of the last statement of the account, the lines must add up to the closing balance, and every line must fall inside the period. A pending line of an earlier statement that this file books is updated, not added. Payments that the file shows as booked are confirmed, and a payment whose booked debit the file returns is rejected by the bank.

    Parameters

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

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    periodFrom string (date) Yesrequired First day of the period of the statement.
    periodTo string (date) Yesrequired Last day of the period of the statement.
    openingBalance string Yesrequired The balance at the start of the period. It is the closing balance of the last statement of the account.
    closingBalance string Yesrequired The balance at the end of the period. The opening balance plus the booked lines must equal it.
    lines ImportLine[] Yesrequired The lines of the statement file.
    lines[].bankReference string Yesrequired The reference the bank gives the line. It is unique for the account.
    lines[].bookedOn string (date) Yesrequired The day the bank booked the line.
    lines[].valueOn string (date) Nooptional The value date, when the bank gives one.
    lines[].counterparty string Yesrequired The name of the other party, as the bank prints it.
    lines[].reference string Yesrequired The details of the payment, as the bank prints them.
    lines[].amount string Yesrequired The amount: positive for a credit, negative for a debit.
    lines[].kind string Yesrequired The kind of line. One of transfer, card, direct_debit, fee
    lines[].status string Yesrequired pending for a line the bank has not booked, booked, or returned for the line that returns a payment. One of pending, booked, returned
    lines[].returnOf string Nooptional For a returned line, the bankReference of the line it returns.
    lines[].returnReason string Nooptional For a returned line, the reason the bank gives, as written.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. OperationResult
    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
    409 The operationId was already used with a different request. Error
    422 statement_duplicate: A statement of this account for the same period is already imported. statement_gap: The opening balance of the file is not the closing balance of the last statement of the account. statement_unbalanced: The opening balance plus the booked lines is not the closing balance of the file. statement_out_of_period: A line is dated outside the period of the statement. statement_duplicate_line: A bank reference appears twice in the file or is already stored for the 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 -X POST "$RDC_BASE_URL/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
      "periodFrom": "2026-11-20",
      "periodTo": "2026-11-22",
      "openingBalance": "154289.67",
      "closingBalance": "180250.47",
      "lines": [
        {
          "bankReference": "BK26112001",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Moara Vadului SRL",
          "reference": "RETUR MV-2026-1187 PP-1002",
          "amount": "24102.50",
          "kind": "transfer",
          "status": "returned",
          "returnOf": "BK26111802",
          "returnReason": "Beneficiary account closed"
        },
        {
          "bankReference": "BK26111902",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Silozurile Zănești SRL",
          "reference": "TRANSFER",
          "amount": "1873.30",
          "kind": "transfer",
          "status": "booked"
        },
        {
          "bankReference": "BK26112002",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Bank fee",
          "reference": "COMISION OPERATIUNE RETUR",
          "amount": "-15.00",
          "kind": "fee",
          "status": "booked"
        }
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
        "periodFrom": "2026-11-20",
        "periodTo": "2026-11-22",
        "openingBalance": "154289.67",
        "closingBalance": "180250.47",
        "lines": [
          {
            "bankReference": "BK26112001",
            "bookedOn": "2026-11-20",
            "valueOn": "2026-11-20",
            "counterparty": "Moara Vadului SRL",
            "reference": "RETUR MV-2026-1187 PP-1002",
            "amount": "24102.50",
            "kind": "transfer",
            "status": "returned",
            "returnOf": "BK26111802",
            "returnReason": "Beneficiary account closed"
          },
          {
            "bankReference": "BK26111902",
            "bookedOn": "2026-11-20",
            "valueOn": "2026-11-20",
            "counterparty": "Silozurile Zănești SRL",
            "reference": "TRANSFER",
            "amount": "1873.30",
            "kind": "transfer",
            "status": "booked"
          },
          {
            "bankReference": "BK26112002",
            "bookedOn": "2026-11-20",
            "valueOn": "2026-11-20",
            "counterparty": "Bank fee",
            "reference": "COMISION OPERATIUNE RETUR",
            "amount": "-15.00",
            "kind": "fee",
            "status": "booked"
          }
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '80cd1346-fac0-457b-9c65-741c7d8c82f1',
            'periodFrom': '2026-11-20',
            'periodTo': '2026-11-22',
            'openingBalance': '154289.67',
            'closingBalance': '180250.47',
            'lines': [
                {
                    'bankReference': 'BK26112001',
                    'bookedOn': '2026-11-20',
                    'valueOn': '2026-11-20',
                    'counterparty': 'Moara Vadului SRL',
                    'reference': 'RETUR MV-2026-1187 PP-1002',
                    'amount': '24102.50',
                    'kind': 'transfer',
                    'status': 'returned',
                    'returnOf': 'BK26111802',
                    'returnReason': 'Beneficiary account closed',
                },
                {
                    'bankReference': 'BK26111902',
                    'bookedOn': '2026-11-20',
                    'valueOn': '2026-11-20',
                    'counterparty': 'Silozurile Zănești SRL',
                    'reference': 'TRANSFER',
                    'amount': '1873.30',
                    'kind': 'transfer',
                    'status': 'booked',
                },
                {
                    'bankReference': 'BK26112002',
                    'bookedOn': '2026-11-20',
                    'valueOn': '2026-11-20',
                    'counterparty': 'Bank fee',
                    'reference': 'COMISION OPERATIUNE RETUR',
                    'amount': '-15.00',
                    'kind': 'fee',
                    'status': 'booked',
                },
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
      "periodFrom": "2026-11-20",
      "periodTo": "2026-11-22",
      "openingBalance": "154289.67",
      "closingBalance": "180250.47",
      "lines": [
        {
          "bankReference": "BK26112001",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Moara Vadului SRL",
          "reference": "RETUR MV-2026-1187 PP-1002",
          "amount": "24102.50",
          "kind": "transfer",
          "status": "returned",
          "returnOf": "BK26111802",
          "returnReason": "Beneficiary account closed"
        },
        {
          "bankReference": "BK26111902",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Silozurile Zănești SRL",
          "reference": "TRANSFER",
          "amount": "1873.30",
          "kind": "transfer",
          "status": "booked"
        },
        {
          "bankReference": "BK26112002",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Bank fee",
          "reference": "COMISION OPERATIUNE RETUR",
          "amount": "-15.00",
          "kind": "fee",
          "status": "booked"
        }
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements');
    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/accounts/258f8664-ff43-4e53-b688-ad5a4a97ede6/statements");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
      "periodFrom": "2026-11-20",
      "periodTo": "2026-11-22",
      "openingBalance": "154289.67",
      "closingBalance": "180250.47",
      "lines": [
        {
          "bankReference": "BK26112001",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Moara Vadului SRL",
          "reference": "RETUR MV-2026-1187 PP-1002",
          "amount": "24102.50",
          "kind": "transfer",
          "status": "returned",
          "returnOf": "BK26111802",
          "returnReason": "Beneficiary account closed"
        },
        {
          "bankReference": "BK26111902",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Silozurile Zănești SRL",
          "reference": "TRANSFER",
          "amount": "1873.30",
          "kind": "transfer",
          "status": "booked"
        },
        {
          "bankReference": "BK26112002",
          "bookedOn": "2026-11-20",
          "valueOn": "2026-11-20",
          "counterparty": "Bank fee",
          "reference": "COMISION OPERATIUNE RETUR",
          "amount": "-15.00",
          "kind": "fee",
          "status": "booked"
        }
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
      "status": "accepted",
      "aggregateId": "f5b1321e-fbb0-4771-8393-9e4090091108",
      "aggregateRevision": 1
    }

    Get a statement

    GET /banking/v1/statements/{statementId}

    Parameters

    NameInTypeRequiredMeaning
    statementId path string (uuid) Yesrequired The statement.

    Responses

    StatusMeaningBody
    200 The statement. Statement
    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 statement does not exist. 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/statements/f5b1321e-fbb0-4771-8393-9e4090091108" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/statements/f5b1321e-fbb0-4771-8393-9e4090091108');
    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/statements/f5b1321e-fbb0-4771-8393-9e4090091108");
    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": "f5b1321e-fbb0-4771-8393-9e4090091108",
      "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "from": "2026-11-20",
      "to": "2026-11-22",
      "openingBalance": "154289.67",
      "closingBalance": "180250.47",
      "lineCount": 3,
      "importedAt": "2026-11-23T07:12:00Z"
    }