Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Suspend

    Register the suspension of an active contract for one of four reasons, with the deadline that each reason follows.

    On this page

    A suspension is a register operation of kind suspend. Its details carry the day it starts, its reason and, for two reasons, the day the employer recorded the certificate or the absence. The reason decides the deadline.

    Reasons and deadlines

    ReasonWordslearnedOnDeadline
    medical-leaveMedical leaveRequired3 working days from learnedOn.
    unexcused-absenceUnexcused absenceRequired3 working days from learnedOn.
    force-majeureForce majeureNot needed3 working days from date.
    otherOther reasonNot needed1 day before date.

    learnedOn is the day a medical certificate or an absence was recorded at the employer. Without it, a suspension for medical-leave or unexcused-absence is refused with invalid_value.

    Prepare the suspension

    The contract must be active, and the designated person must hold prepare for the employer. While a suspension of the contract is a draft, validated or approved, preparing a second one answers already_open.

    Prepare a suspension on a medical certificate

    curl

    curl -X POST "$RDC_BASE_URL/reges/v1/register-operations" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "076098e9-3b27-41ec-8941-9f8930b2410b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "suspend",
      "contractId": "02b6b76c-19a6-4b97-af20-50b265e9d36d",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-18",
        "reason": "medical-leave",
        "learnedOn": "2026-11-19"
      }
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/register-operations`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "076098e9-3b27-41ec-8941-9f8930b2410b",
        "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
        "kind": "suspend",
        "contractId": "02b6b76c-19a6-4b97-af20-50b265e9d36d",
        "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
        "details": {
          "date": "2026-11-18",
          "reason": "medical-leave",
          "learnedOn": "2026-11-19"
        }
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/reges/v1/register-operations',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '076098e9-3b27-41ec-8941-9f8930b2410b',
            'employerId': '6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0',
            'kind': 'suspend',
            'contractId': '02b6b76c-19a6-4b97-af20-50b265e9d36d',
            'designatedPerson': 'f3a70882-0da0-4686-bc0c-f29ce600bb0c',
            'details': {
                'date': '2026-11-18',
                'reason': 'medical-leave',
                'learnedOn': '2026-11-19',
            },
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "076098e9-3b27-41ec-8941-9f8930b2410b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "suspend",
      "contractId": "02b6b76c-19a6-4b97-af20-50b265e9d36d",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-18",
        "reason": "medical-leave",
        "learnedOn": "2026-11-19"
      }
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/register-operations');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reges/v1/register-operations");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "076098e9-3b27-41ec-8941-9f8930b2410b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "suspend",
      "contractId": "02b6b76c-19a6-4b97-af20-50b265e9d36d",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-18",
        "reason": "medical-leave",
        "learnedOn": "2026-11-19"
      }
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "076098e9-3b27-41ec-8941-9f8930b2410b",
      "status": "accepted",
      "aggregateId": "b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7",
      "aggregateRevision": 1
    }

    What is checked

    CheckSeverityResult for the example
    contract-stateblockingThe contract is active, which this operation allows.
    deadlineattentionWarns when the deadline has passed. It stops nothing; transmitting after it needs a reason.

    The deadline

    A suspension and the end of a suspension are transmitted at the latest the day before they take effect. A suspension on a medical certificate or for unexcused absence is transmitted within 3 working days of the day the certificate or the absence was recorded at the employer; a suspension for force majeure within 3 working days of the suspension.

    Compute the deadline of a suspension on a medical certificate

    curl

    curl "$RDC_BASE_URL/reges/v1/deadlines?kind=suspend&date=2026-11-18&learnedOn=2026-11-19&reason=medical-leave" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/deadlines?kind=suspend&date=2026-11-18&learnedOn=2026-11-19&reason=medical-leave');
    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=suspend&date=2026-11-18&learnedOn=2026-11-19&reason=medical-leave");
    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-11-23",
      "rule": "suspension-days",
      "from": "2026-11-19",
      "workingDaysLeft": 0
    }

    workingDaysLeft is 0: the deadline is today. A negative number would mean it has passed, and transmitting then needs a reason (see Late operations).

    An operation due today

    RG-2026-001481 is validated and due today. Approve it with a designated person other than the one who prepared it, then record its transmission before the day ends.

    The operation as the API returns it

    {
      "number": "RG-2026-001481",
      "kind": "suspend",
      "status": "validated",
      "deadline": {
        "date": "2026-11-23",
        "rule": "suspension-days",
        "from": "2026-11-19",
        "workingDaysLeft": 0
      },
      "late": false
    }

    curl

    curl -X POST "$RDC_BASE_URL/reges/v1/register-operations/b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7/authorize" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "64b9975a-c670-4934-8a99-91c95b901952",
      "expectedRevision": 2,
      "designatedPerson": "c403d6ca-4254-4be4-8781-6be8b95a3de0"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/register-operations/b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7/authorize`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "64b9975a-c670-4934-8a99-91c95b901952",
        "expectedRevision": 2,
        "designatedPerson": "c403d6ca-4254-4be4-8781-6be8b95a3de0"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/reges/v1/register-operations/b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7/authorize',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '64b9975a-c670-4934-8a99-91c95b901952',
            'expectedRevision': 2,
            'designatedPerson': 'c403d6ca-4254-4be4-8781-6be8b95a3de0',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "64b9975a-c670-4934-8a99-91c95b901952",
      "expectedRevision": 2,
      "designatedPerson": "c403d6ca-4254-4be4-8781-6be8b95a3de0"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/register-operations/b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7/authorize');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reges/v1/register-operations/b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7/authorize");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "64b9975a-c670-4934-8a99-91c95b901952",
      "expectedRevision": 2,
      "designatedPerson": "c403d6ca-4254-4be4-8781-6be8b95a3de0"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "64b9975a-c670-4934-8a99-91c95b901952",
      "status": "accepted",
      "aggregateId": "b5f54bb0-fa5e-43d6-b9fc-b5b0afe9d3d7",
      "aggregateRevision": 3
    }

    1. Record the transmission

      submitOperation, after a designated person who holds transmit sent the suspension to the register.

    2. Record the answer

      recordAnswer with the reference of the register, or with its words if it rejects the suspension.

    See Lifecycle and statuses for every status of this path.

    The contract once it is registered

    When recordAnswer records registered, the contract becomes suspended. It then takes only an end of suspension or a termination: see Terminate and reactivate.

    The contract after the suspension is registered

    {
      "number": "CIM 0198/2020",
      "status": "suspended"
    }