Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Companies

    The companies of your account: add one, read it, and control its synchronisation with the authority.

    On this page

    List companies

    GET /efactura/v1/companies

    Returns the companies of your account in pages. Each company carries its authorisation, its synchronisation and its event endpoint.

    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 The gateway cannot answer now. Error

    Request

    curl

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

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/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")}/efactura/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": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "name": "Brumar Distribuție SRL",
          "cif": "48290619",
          "vatId": "RO48290619",
          "authorisation": {
            "status": "active",
            "expires": "2027-03-12",
            "authorisedBy": {
              "name": "Ana Rusu",
              "role": "Finance director"
            },
            "scope": [
              "send",
              "receive"
            ],
            "renewal": null
          },
          "sync": {
            "paused": false,
            "lastAt": "2026-11-23T05:00:00Z"
          },
          "endpoint": {
            "host": "erp.brumar.example",
            "status": "healthy",
            "http": 200
          },
          "revision": 1
        },
        {
          "id": "aaa74c23-5c48-4055-82e9-dc5c4c36c13e",
          "name": "Brumar Retail SRL",
          "cif": "48290783",
          "vatId": "RO48290783",
          "authorisation": {
            "status": "renewal_needed",
            "expires": "2026-12-03",
            "authorisedBy": {
              "name": "Ioana Marin",
              "role": "Chief accountant"
            },
            "scope": [
              "send",
              "receive"
            ],
            "renewal": null
          },
          "sync": {
            "paused": false,
            "lastAt": "2026-11-23T05:00:00Z"
          },
          "endpoint": {
            "host": "pos.brumar.example",
            "status": "failing",
            "http": 503
          },
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Add a company

    POST /efactura/v1/companies

    Adds a company to your account by its CIF. The company has no authorisation until its representative has confirmed access at the authority.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    cif string Yesrequired The tax code of the company, digits only.
    scope string[] Yesrequired What the gateway does for the company: send, receive or both.

    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
    409 operation_reused: The operationId was already used with a different request. company_exists: A company with this CIF is already in your account. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/companies" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "7add495a-6ec4-4f64-b25e-5961d8d75e00",
      "cif": "4017226",
      "scope": [
        "send",
        "receive"
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/companies`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "7add495a-6ec4-4f64-b25e-5961d8d75e00",
        "cif": "4017226",
        "scope": [
          "send",
          "receive"
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/companies',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '7add495a-6ec4-4f64-b25e-5961d8d75e00',
            'cif': '4017226',
            'scope': [
                'send',
                'receive',
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "7add495a-6ec4-4f64-b25e-5961d8d75e00",
      "cif": "4017226",
      "scope": [
        "send",
        "receive"
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/companies');
    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");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "7add495a-6ec4-4f64-b25e-5961d8d75e00",
      "cif": "4017226",
      "scope": [
        "send",
        "receive"
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "7add495a-6ec4-4f64-b25e-5961d8d75e00",
      "status": "accepted",
      "aggregateId": "61d24c9f-10f4-40c8-97bc-1b55b0d8839a",
      "aggregateRevision": 1
    }

    Get a company

    GET /efactura/v1/companies/{companyId}

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Responses

    StatusMeaningBody
    200 The company at its current revision. Company
    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 company 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 The gateway cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42');
    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/companies/c6a26b8c-3323-4e7a-8611-f5a92f5e1a42");
    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": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "name": "Brumar Distribuție SRL",
      "cif": "48290619",
      "vatId": "RO48290619",
      "authorisation": {
        "status": "active",
        "expires": "2027-03-12",
        "authorisedBy": {
          "name": "Ana Rusu",
          "role": "Finance director"
        },
        "scope": [
          "send",
          "receive"
        ],
        "renewal": null
      },
      "sync": {
        "paused": false,
        "lastAt": "2026-11-23T05:00:00Z"
      },
      "endpoint": {
        "host": "erp.brumar.example",
        "status": "healthy",
        "http": 200
      },
      "revision": 1
    }

    Synchronise a company

    POST /efactura/v1/companies/{companyId}/sync

    Downloads the invoices the authority lists for the company and the gateway has not downloaded yet. It is refused while synchronisation is paused, while the authorisation is not in force and when there is nothing new.

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.

    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 company does not exist in your account. Error
    409 operation_reused: The operationId was already used with a different request. sync_paused: Synchronisation of the company is paused. authorisation_not_in_force: The authorisation of the company is not in force. Nothing was sent. nothing_new: The authority lists nothing new for this company. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    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

    JSON

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

    Pause synchronisation

    POST /efactura/v1/companies/{companyId}/sync/pause

    Stops the gateway from downloading the invoices of the company until you resume. Invoices you send are not affected.

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.

    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 company does not exist in your account. Error
    409 operation_reused: The operationId was already used with a different request. already_paused: Synchronisation is already paused. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    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

    JSON

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

    Resume synchronisation

    POST /efactura/v1/companies/{companyId}/sync/resume

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.

    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 company does not exist in your account. Error
    409 operation_reused: The operationId was already used with a different request. not_paused: Synchronisation is not paused. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    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

    JSON

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