---
title: "Deadline per operation | Docs | REGES Gateway by R&D Copilot"
description: "The term of each kind of register operation, how the days are counted and how to compute a deadline before you prepare anything."
canonical: "https://reges.rdcopilot.com/docs/deadlines/deadline-per-operation/"
language: en
updated: 2026-11-22
---

# 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.

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.

| Rule | Kind | Counted from | Term | Example |
| --- | --- | --- | --- | --- |
| `hire` | `hire` | The first day of work | 1 day before | 2 December 2026 → Tuesday 1 December 2026 |
| `terms` | `change-terms` | The day the change takes effect | 1 day before | 9 November 2026 → Sunday 8 November 2026 |
| `salary` | `change-salary` | The day the change takes effect | within 20 working days | 26 October 2026 → Friday 20 November 2026 |
| `transfer` | `transfer` | The day of the transfer | within 5 working days | 7 December 2026 → Friday 11 December 2026 |
| `secondment` | `secondment` | The first day or the last day of the secondment | 1 day before | 7 December 2026 → Sunday 6 December 2026 |
| `suspension` | `suspend` for another reason, `resume` | The first day of the suspension, or the day it ends | 1 day before | 18 November 2026 → Tuesday 17 November 2026 |
| `suspension-days` | `suspend` for medical leave, unexcused absence or force majeure | The day the certificate or the absence was recorded at the employer (`learnedOn`); for force majeure, the day of the suspension | within 3 working days | 19 November 2026 → Monday 23 November 2026 |
| `termination` | `terminate` | The day the contract ends, or the day the employer learns of the event that ends it (`learnedOn`) | the same day | 31 December 2026 → Thursday 31 December 2026 |
| `court` | `change-terms`, `change-salary` after a court decision | The day the employer learned the content of the decision (`learnedOn`) | within 10 working days | 23 November 2026 → Tuesday 8 December 2026 |
| `correction` | Any kind, `correction` | The day the employer learned of the error (`learnedOn`) | the same day | 23 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.

A deadline can be a Sunday or a holiday

A term counted back can land on a Sunday or a public holiday, and then it stays that day: the gateway does not move it to another day. The hire of 2 December 2026 is due on Tuesday 1 December 2026, a public holiday.

The working days come from the [working-day calendar](https://reges.rdcopilot.com/docs/deadlines/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

```bash
curl "$RDC_BASE_URL/reges/v1/deadlines?kind=hire&date=2026-12-02" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```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

```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
<?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#

```csharp
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
}
```

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

```bash
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

```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

```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
<?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#

```csharp
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

```json
{
  "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](https://reges.rdcopilot.com/docs/operations/cancel-or-correct/).
