Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Notifications

    The messages the gateway exchanges with the authority about a declaration: new, correction, deletion, confirmation and vehicle change, each with its upload index and its answer.

    On this page

    List notifications

    GET /etransport/v1/notifications

    Returns the messages the gateway sent to the authority for a company, newest first. kind keeps one kind of message, status one status.

    Parameters

    NameInTypeRequiredMeaning
    companyId query string (uuid) Yesrequired The company whose records you want. It is the id of a company of your account.
    declarationId query string (uuid) Nooptional Only the messages about this declaration.
    kind query string Nooptional Only messages of this kind. One of new, correction, deletion, confirmation, vehicle_change
    status query string Nooptional Only messages in this status. One of submitted, processing, accepted, rejected
    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 notifications. NotificationPage
    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/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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": "8d2e6a23-4f47-43b2-9fad-34c9ed390c39",
          "declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
          "companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
          "kind": "vehicle_change",
          "authorityKind": "MVH",
          "status": "accepted",
          "uploadIndex": "1000221",
          "at": "2026-11-23T06:35:00Z",
          "message": null
        },
        {
          "id": "fd8761d6-61fe-4ab4-8a90-09a85fd45dd2",
          "declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
          "companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
          "kind": "new",
          "authorityKind": "NOT",
          "status": "accepted",
          "uploadIndex": "1000121",
          "at": "2026-11-22T07:04:35Z",
          "message": null
        }
      ],
      "nextCursor": null
    }

    Get a notification

    GET /etransport/v1/notifications/{notificationId}

    Parameters

    NameInTypeRequiredMeaning
    notificationId path string (uuid) Yesrequired The notification.

    Responses

    StatusMeaningBody
    200 The notification. Notification
    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 message 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/notifications/8d2e6a23-4f47-43b2-9fad-34c9ed390c39" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/notifications/8d2e6a23-4f47-43b2-9fad-34c9ed390c39`, {
      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/notifications/8d2e6a23-4f47-43b2-9fad-34c9ed390c39',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/notifications/8d2e6a23-4f47-43b2-9fad-34c9ed390c39');
    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/notifications/8d2e6a23-4f47-43b2-9fad-34c9ed390c39");
    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": "8d2e6a23-4f47-43b2-9fad-34c9ed390c39",
      "declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
      "companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
      "kind": "vehicle_change",
      "authorityKind": "MVH",
      "status": "accepted",
      "uploadIndex": "1000221",
      "at": "2026-11-23T06:35:00Z",
      "message": null
    }