Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Companies

    The companies of your account and the state of their access to the authority. Companies are set up by our team with the account.

    On this page

    List companies

    GET /etransport/v1/companies

    Returns the companies of your account in pages. Each company carries the status of its access to the authority.

    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/etransport/v1/companies?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/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")}/etransport/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": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
          "name": "Brumar Distribuție SRL",
          "cif": "48290619",
          "vatId": "RO48290619",
          "authorisation": {
            "status": "active"
          },
          "revision": 1
        },
        {
          "id": "32196739-e7bb-4eb6-bea4-7eb8cca86049",
          "name": "Brumar Retail SRL",
          "cif": "48290783",
          "vatId": "RO48290783",
          "authorisation": {
            "status": "active"
          },
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Get a company

    GET /etransport/v1/companies/{companyId}

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Responses

    StatusMeaningBody
    200 The company. 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/etransport/v1/companies/9a893b65-2286-477f-8eab-61c12f7d6b3e" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/companies/9a893b65-2286-477f-8eab-61c12f7d6b3e');
    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")}/etransport/v1/companies/9a893b65-2286-477f-8eab-61c12f7d6b3e");
    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": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
      "name": "Brumar Distribuție SRL",
      "cif": "48290619",
      "vatId": "RO48290619",
      "authorisation": {
        "status": "active"
      },
      "revision": 1
    }