Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Deadline per operation

    The term of each kind of register operation, how the days are counted and how to compute a deadline before you prepare anything.

    On this page

    Every register operation has a deadline: the last day it can be transmitted on time. The gateway computes it from the kind and the dates of the operation and returns it in deadline. This page gives the term of each kind and shows how to compute one with computeDeadline.

    The term of each operation

    rule in the answer names the row that produced the deadline. The example column shows the day the term is counted from and the deadline the gateway computes for it.

    RuleKindCounted fromTermExample
    hirehireThe first day of work1 day before2 December 2026 → Tuesday 1 December 2026
    termschange-termsThe day the change takes effect1 day before9 November 2026 → Sunday 8 November 2026
    salarychange-salaryThe day the change takes effectwithin 20 working days26 October 2026 → Friday 20 November 2026
    transfertransferThe day of the transferwithin 5 working days7 December 2026 → Friday 11 December 2026
    secondmentsecondmentThe first day or the last day of the secondment1 day before7 December 2026 → Sunday 6 December 2026
    suspensionsuspend for another reason, resumeThe first day of the suspension, or the day it ends1 day before18 November 2026 → Tuesday 17 November 2026
    suspension-dayssuspend for medical leave, unexcused absence or force majeureThe day the certificate or the absence was recorded at the employer (learnedOn); for force majeure, the day of the suspensionwithin 3 working days19 November 2026 → Monday 23 November 2026
    terminationterminateThe day the contract ends, or the day the employer learns of the event that ends it (learnedOn)the same day31 December 2026 → Thursday 31 December 2026
    courtchange-terms, change-salary after a court decisionThe day the employer learned the content of the decision (learnedOn)within 10 working days23 November 2026 → Tuesday 8 December 2026
    correctionAny kind, correctionThe day the employer learned of the error (learnedOn)the same day23 November 2026 → Monday 23 November 2026

    How the days are counted

    Working days are counted from the date of the event, which counts as day one when it is a working day. A term counted back from the event, such as the day before the start, is a calendar day: it does not skip weekends or holidays.

    The working days come from the working-day calendar, which has a worked count.

    Compute a deadline

    computeDeadline returns the deadline of a kind that takes effect on date, without creating anything. Use it to plan a date before you prepare the operation. kind and date are required; learnedOn, reason, courtDecision and correction apply to the rows above that name them.

    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

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

    The answer has the date of the deadline, the rule, the day it was counted from and workingDaysLeft from today: negative when the deadline has passed and zero when it is today.

    After a court decision and for a correction

    When a change follows a court decision, it is transmitted within 10 working days of the day the employer learned the content of the decision. Send courtDecision with learnedOn: the term then runs from learnedOn.

    A change of salary after a court decision

    curl

    curl "$RDC_BASE_URL/reges/v1/deadlines?kind=change-salary&date=2026-10-26&learnedOn=2026-11-23&courtDecision=true" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/deadlines?kind=change-salary&date=2026-10-26&learnedOn=2026-11-23&courtDecision=true`, {
      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=change-salary&date=2026-10-26&learnedOn=2026-11-23&courtDecision=true',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/deadlines?kind=change-salary&date=2026-10-26&learnedOn=2026-11-23&courtDecision=true');
    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=change-salary&date=2026-10-26&learnedOn=2026-11-23&courtDecision=true");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "date": "2026-12-08",
      "rule": "court",
      "from": "2026-11-23",
      "workingDaysLeft": 9
    }

    An error in the register is corrected on the date the employer learns of it. correctOperation makes the draft of a correction with the day it is created as learnedOn. See Cancel or correct.