Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Reconcile with the authority’s list

    Check at the end of a period that your records, the gateway and the authority agree, and settle what does not.

    On this page

    Events tell you what changed, and a delivery can be late, repeated or parked. A reconciliation does not depend on them: it compares your records with what the gateway holds for a period, invoice by invoice, and settles every difference. Run it on a schedule of your own, for example at the end of every day or period.

    The steps

    1. Take the invoices you expect

      From your own records: the numbers of the invoices and credit notes issued in the period for the company.

    2. Read what the gateway holds

      List the sent invoices of the company with issuedFrom and issuedTo and follow the cursor to the end. See Pagination.

    3. Compare by number

      Every number you expect must be in the list, and every number in the list must be one you expect.

    4. Settle each status

      Use the table below.

    5. Settle the deliveries

      List the deliveries in the state parked and replay them once your endpoint answers. See Replay.

    curl

    curl "$RDC_BASE_URL/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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"]}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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")}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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

    {
      "items": [
        {
          "id": "5081abd5-935d-4688-b961-0715c149fbd1",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "FCT-2026-00425",
          "type": "invoice",
          "direction": "sent",
          "partner": "Cofetăria Vălul Alb SRL",
          "partnerCif": "RO39172614",
          "issueDate": "2026-11-23",
          "dueDate": "2026-12-23",
          "reference": "CV-1048",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "FA-0010",
              "name": "White flour, 10 kg bag",
              "quantity": "12",
              "unitPrice": "38.90",
              "vatRate": "11",
              "net": "466.80"
            },
            {
              "code": "ZA-0201",
              "name": "Sugar, 1 kg",
              "quantity": "30",
              "unitPrice": "4.29",
              "vatRate": "11",
              "net": "128.70"
            }
          ],
          "net": "595.50",
          "vatBreakdown": [
            {
              "rate": "11",
              "base": "595.50",
              "vat": "65.51"
            }
          ],
          "vat": "65.51",
          "total": "661.01",
          "currency": "RON",
          "status": "draft",
          "uploadIndex": null,
          "revision": 1
        },
        {
          "id": "ab7f7203-2bf2-4131-8b1b-34041c1afe3d",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "FCT-2026-00424",
          "type": "invoice",
          "direction": "sent",
          "partner": "Market Trei Brazi SRL",
          "partnerCif": "39172851",
          "issueDate": "2026-11-23",
          "dueDate": "2026-12-23",
          "reference": "",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "FA-0010",
              "name": "White flour, 10 kg bag",
              "quantity": "30",
              "unitPrice": "38.90",
              "vatRate": "11",
              "net": "1167.00"
            },
            {
              "code": "DT-0412",
              "name": "Dishwashing liquid, 5 l",
              "quantity": "8",
              "unitPrice": "23.47",
              "vatRate": "19",
              "net": "187.76"
            }
          ],
          "net": "1354.76",
          "vatBreakdown": [
            {
              "rate": "19",
              "base": "187.76",
              "vat": "35.67"
            },
            {
              "rate": "11",
              "base": "1167.00",
              "vat": "128.37"
            }
          ],
          "vat": "164.04",
          "total": "1518.80",
          "currency": "RON",
          "status": "draft",
          "uploadIndex": null,
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Settle each status

    StatusWhat it means for the reconciliation
    acceptedSettled. Keep the uploadIndex and the sha256 of the stored record.
    rejectedNot settled until a correction is accepted. Follow correctionOf. See Corrections.
    submittedUploaded, not answered. Ask the authority now, and read again.
    processingThe authority is checking it. Ask the authority now, and read again.
    manual_reviewUnknown outcome. A person checks, then sends it again. See When the authority is unavailable.
    draftNever sent. Read its checks, fix it and send it, or drop it from your records.

    Received invoices

    For purchases, synchronise the company, read the received invoices of the period and compare them with the invoices your suppliers should have sent. An invoice you expected and did not get is for the supplier or the authority to explain; the gateway holds only what the authority lists. See Sync received invoices.