Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Sync received invoices

    Download the invoices your suppliers sent to a company, read them, and pause or resume synchronisation.

    On this page

    The authority lists the invoices a company received. The gateway downloads the ones it does not have yet and stores them with the status received. The company shows when it last did so in sync.lastAt, and the Companies view shows how many invoices the authority lists that are not downloaded yet.

    Synchronise now

    Ask the gateway to download what is new for a company. The invoices are there once the operation is completed.

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "0f5bf94c-918d-4141-b2bd-456ed20c7d28"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "0f5bf94c-918d-4141-b2bd-456ed20c7d28"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '0f5bf94c-918d-4141-b2bd-456ed20c7d28',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "0f5bf94c-918d-4141-b2bd-456ed20c7d28"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync');
    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")}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "0f5bf94c-918d-4141-b2bd-456ed20c7d28"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "0f5bf94c-918d-4141-b2bd-456ed20c7d28",
      "status": "accepted",
      "aggregateId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "aggregateRevision": 2
    }

    CodeWhen
    sync_pausedSynchronisation is paused. Resume it first.
    authorisation_not_in_forceThe authorisation of the company is not in force. See Expiry and renewal.
    nothing_newThe authority lists nothing new. This is not a failure: try again later.

    Read the received invoices

    A received invoice is the same object as a sent one, with direction set to received. partner is the supplier, and uploadIndex is the identifier of the download. The list shows the newest first and takes the same filters as the sent invoices, except the list and the status.

    curl

    curl "$RDC_BASE_URL/efactura/v1/received-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/received-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/received-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/received-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/received-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": "76ddcaa0-d76e-4390-874b-16326621bd06",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "AC-2026-00354",
          "type": "invoice",
          "direction": "received",
          "partner": "Ambalaje Carpatin SRL",
          "partnerCif": "RO51603619",
          "issueDate": "2026-11-19",
          "dueDate": "2026-12-19",
          "reference": "",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "AM-0518",
              "name": "Paper bags, pack of 100",
              "quantity": "40",
              "unitPrice": "13.13",
              "vatRate": "21",
              "net": "525.20"
            }
          ],
          "net": "525.20",
          "vatBreakdown": [
            {
              "rate": "21",
              "base": "525.20",
              "vat": "110.29"
            }
          ],
          "vat": "110.29",
          "total": "635.49",
          "currency": "RON",
          "status": "received",
          "uploadIndex": "4012600342",
          "revision": 1
        },
        {
          "id": "ab167aba-f40f-472d-b6d8-4ac18666df0c",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "BO-2026-01188",
          "type": "invoice",
          "direction": "received",
          "partner": "Brânzeturi Obcina SRL",
          "partnerCif": "RO51603546",
          "issueDate": "2026-11-18",
          "dueDate": "2026-12-18",
          "reference": "",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "LA-0307",
              "name": "Cheese, 400 g",
              "quantity": "120",
              "unitPrice": "18.65",
              "vatRate": "11",
              "net": "2238.00"
            }
          ],
          "net": "2238.00",
          "vatBreakdown": [
            {
              "rate": "11",
              "base": "2238.00",
              "vat": "246.18"
            }
          ],
          "vat": "246.18",
          "total": "2484.18",
          "currency": "RON",
          "status": "received",
          "uploadIndex": "4012600231",
          "revision": 1
        },
        {
          "id": "d4b691b8-9fcb-48ee-b535-d6c4fb23d811",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "MV-2026-00731",
          "type": "invoice",
          "direction": "received",
          "partner": "Moara Vadului SRL",
          "partnerCif": "RO51603473",
          "issueDate": "2026-11-16",
          "dueDate": "2026-12-16",
          "reference": "",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "FA-0010",
              "name": "White flour, 10 kg bag",
              "quantity": "200",
              "unitPrice": "38.90",
              "vatRate": "11",
              "net": "7780.00"
            }
          ],
          "net": "7780.00",
          "vatBreakdown": [
            {
              "rate": "11",
              "base": "7780.00",
              "vat": "855.80"
            }
          ],
          "vat": "855.80",
          "total": "8635.80",
          "currency": "RON",
          "status": "received",
          "uploadIndex": "4012600117",
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    curl

    curl "$RDC_BASE_URL/efactura/v1/received-invoices/76ddcaa0-d76e-4390-874b-16326621bd06" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/received-invoices/76ddcaa0-d76e-4390-874b-16326621bd06`, {
      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/received-invoices/76ddcaa0-d76e-4390-874b-16326621bd06',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/received-invoices/76ddcaa0-d76e-4390-874b-16326621bd06');
    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/received-invoices/76ddcaa0-d76e-4390-874b-16326621bd06");
    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": "76ddcaa0-d76e-4390-874b-16326621bd06",
      "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "number": "AC-2026-00354",
      "type": "invoice",
      "direction": "received",
      "partner": "Ambalaje Carpatin SRL",
      "partnerCif": "RO51603619",
      "issueDate": "2026-11-19",
      "dueDate": "2026-12-19",
      "reference": "",
      "correctionOf": null,
      "creditOf": null,
      "lines": [
        {
          "code": "AM-0518",
          "name": "Paper bags, pack of 100",
          "quantity": "40",
          "unitPrice": "13.13",
          "vatRate": "21",
          "net": "525.20"
        }
      ],
      "net": "525.20",
      "vatBreakdown": [
        {
          "rate": "21",
          "base": "525.20",
          "vat": "110.29"
        }
      ],
      "vat": "110.29",
      "total": "635.49",
      "currency": "RON",
      "status": "received",
      "uploadIndex": "4012600342",
      "revision": 1
    }

    Pause and resume

    Pausing stops the downloads for one company and nothing else: the invoices you send are not affected, and the other companies of the account keep synchronising. Resume when you are ready.

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/pause" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "9421c6dc-482c-470a-b0ad-a7843a91d2c6"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/pause`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "9421c6dc-482c-470a-b0ad-a7843a91d2c6"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/pause',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '9421c6dc-482c-470a-b0ad-a7843a91d2c6',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "9421c6dc-482c-470a-b0ad-a7843a91d2c6"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/pause');
    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")}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/pause");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "9421c6dc-482c-470a-b0ad-a7843a91d2c6"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "9421c6dc-482c-470a-b0ad-a7843a91d2c6",
      "status": "accepted",
      "aggregateId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "aggregateRevision": 2
    }

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/resume" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "df4c8843-ad0b-4d62-8135-0db742cb4778"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/resume`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "df4c8843-ad0b-4d62-8135-0db742cb4778"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/resume',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'df4c8843-ad0b-4d62-8135-0db742cb4778',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "df4c8843-ad0b-4d62-8135-0db742cb4778"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/resume');
    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")}/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42/sync/resume");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "df4c8843-ad0b-4d62-8135-0db742cb4778"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "df4c8843-ad0b-4d62-8135-0db742cb4778",
      "status": "accepted",
      "aggregateId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "aggregateRevision": 3
    }

    Pausing twice answers already_paused, and resuming a running synchronisation answers not_paused.

    Next: Store and archive what you downloaded, and Match to purchase orders.