Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Deadlines

    The deadline of an operation and the calendar of legal holidays it counts on.

    On this page

    Compute a deadline

    GET /reges/v1/deadlines

    Returns the deadline of an operation of a kind that takes effect on date, and the working days left from today. The rules, from the date of the request: a hire is due 1 day before its start; a change of terms 1 day before the change, or within 10 working days of the day the employer learned of a court decision (courtDecision); a change of salary within 20 working days of its date, or within 10 working days of the day the employer learned of a court decision; a suspension 1 day before it, or, for medical leave and unexcused absence, within 3 working days of learnedOn, and for force majeure within 3 working days of its date; the end of a suspension 1 day before it; a transfer within 5 working days of its date; a secondment 1 day before its start; a termination on the day the employer learned of it (learnedOn); a correction on the day the employer learned of the error (correction). A working day is Monday to Friday that is not a legal holiday (getCalendar); the date of the event is day one when it is a working day.

    Parameters

    NameInTypeRequiredMeaning
    kind query string Yesrequired What the operation does. One of hire, change-terms, change-salary, suspend, resume, terminate, transfer, secondment
    date query string (date) Yesrequired The day the operation takes effect.
    learnedOn query string (date) Nooptional The day a certificate or an absence was recorded at the employer, the day the employer learned of a court decision, or of a termination. It defaults to date.
    reason query string Nooptional The reason of a suspension: it decides which rule applies. One of medical-leave, unexcused-absence, force-majeure, other
    courtDecision query boolean Nooptional true when the change follows a court decision.
    correction query boolean Nooptional true for the correction of an operation the register rejected.

    Responses

    StatusMeaningBody
    200 The deadline. Deadline
    400 The request cannot be read or breaks the contract: the JSON is malformed, a field is missing or unknown, or a type is wrong. fields names each one. Error
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this employer 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/reges/v1/deadlines?kind=hire&date=2026-12-02" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/deadlines?kind=hire&date=2026-12-02`, {
      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"]}/reges/v1/deadlines?kind=hire&date=2026-12-02',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/deadlines?kind=hire&date=2026-12-02');
    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")}/reges/v1/deadlines?kind=hire&date=2026-12-02");
    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

    {
      "date": "2026-12-01",
      "rule": "hire",
      "from": "2026-12-02",
      "workingDaysLeft": 4
    }

    Get the calendar of a year

    GET /reges/v1/calendar

    Returns the legal holidays of a year, the days on which a term counted in working days does not run.

    Parameters

    NameInTypeRequiredMeaning
    year query integer Yesrequired The year, from 1900 to 2099. Range 1900 – 2099

    Responses

    StatusMeaningBody
    200 The legal holidays of the year. Calendar
    400 The request cannot be read or breaks the contract: the JSON is malformed, a field is missing or unknown, or a type is wrong. fields names each one. Error
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this employer 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/reges/v1/calendar?year=2026" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/calendar?year=2026');
    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")}/reges/v1/calendar?year=2026");
    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

    {
      "year": 2026,
      "holidays": [
        "2026-01-01",
        "2026-01-02",
        "2026-01-06",
        "2026-01-07",
        "2026-01-24",
        "2026-04-10",
        "2026-04-12",
        "2026-04-13",
        "2026-05-01",
        "2026-05-31",
        "2026-06-01",
        "2026-08-15",
        "2026-11-30",
        "2026-12-01",
        "2026-12-25",
        "2026-12-26"
      ]
    }