Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Change contract terms

    Change the occupation, the contract type, the end date, the workplace or the weekly hours of an active contract, and follow the operation to the register.

    On this page

    A change of terms is a register operation of kind change-terms on an existing contract. It carries only the terms that change. The salary is a separate operation: see Change the salary.

    What you need

    • The id of an active contract and of its employer. See The contract object.
    • A designated person who holds prepare for the employer.
    • The day the change takes effect, as details.date.

    Prepare the change

    Send kind change-terms, the contractId and details with date and terms. Put in terms only the fields that change; at least one is required.

    Prepare a change of terms

    curl

    curl -X POST "$RDC_BASE_URL/reges/v1/register-operations" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "ab981074-cab2-4b32-980f-9883fd00cb0b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "change-terms",
      "contractId": "c39dd403-596a-44fa-ad6d-427ecc6f40a1",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-09",
        "terms": {
          "occupation": "332401",
          "hoursPerWeek": 40
        }
      }
    }'

    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": "ab981074-cab2-4b32-980f-9883fd00cb0b",
        "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
        "kind": "change-terms",
        "contractId": "c39dd403-596a-44fa-ad6d-427ecc6f40a1",
        "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
        "details": {
          "date": "2026-11-09",
          "terms": {
            "occupation": "332401",
            "hoursPerWeek": 40
          }
        }
      }),
    });
    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': 'ab981074-cab2-4b32-980f-9883fd00cb0b',
            'employerId': '6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0',
            'kind': 'change-terms',
            'contractId': 'c39dd403-596a-44fa-ad6d-427ecc6f40a1',
            'designatedPerson': 'f3a70882-0da0-4686-bc0c-f29ce600bb0c',
            'details': {
                'date': '2026-11-09',
                'terms': {
                    'occupation': '332401',
                    'hoursPerWeek': 40,
                },
            },
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "ab981074-cab2-4b32-980f-9883fd00cb0b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "change-terms",
      "contractId": "c39dd403-596a-44fa-ad6d-427ecc6f40a1",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-09",
        "terms": {
          "occupation": "332401",
          "hoursPerWeek": 40
        }
      }
    }
    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": "ab981074-cab2-4b32-980f-9883fd00cb0b",
      "employerId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "kind": "change-terms",
      "contractId": "c39dd403-596a-44fa-ad6d-427ecc6f40a1",
      "designatedPerson": "f3a70882-0da0-4686-bc0c-f29ce600bb0c",
      "details": {
        "date": "2026-11-09",
        "terms": {
          "occupation": "332401",
          "hoursPerWeek": 40
        }
      }
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "ab981074-cab2-4b32-980f-9883fd00cb0b",
      "status": "accepted",
      "aggregateId": "a19627dd-ae3d-486b-8ba9-07fba95000e4",
      "aggregateRevision": 1
    }

    Field of termsMeaning
    occupationA code of the list of occupations (listOccupations).
    contractTypeindefinite or fixed-term.
    endDateThe day a fixed-term contract ends, null for an indefinite one.
    workplaceAn object with kind (fixed or mobile) and place.
    hoursPerWeekHours per week.

    A draft changes with editOperation: occupation and hours edit terms, date edits the day.

    What is checked

    The checks look at the contract as it will be once the change is applied. occupation-code runs only when terms.occupation is set, and fixed-term-end runs when the contract is fixed-term. Read them with listChecks; see Checks before sending.

    CheckSeverityResult for the example
    occupation-codeblockingOccupation code 332401 is in the list of occupations (Agent comercial).
    minimum-salaryblockingThe base salary of 5,900.00 RON is not below the minimum of 4,325.00 RON for this weekly schedule.
    working-timeblocking40 hours a week is within the maximum of 40 hours.
    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 change of occupation, contract type, contract duration, workplace or working time is transmitted at the latest the day before it takes effect. For a change that takes effect on 2 December 2026 the gateway answers:

    Compute the deadline of a change of terms

    curl

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

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/deadlines?kind=change-terms&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=change-terms&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=change-terms&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=change-terms&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": "terms",
      "from": "2026-12-02",
      "workingDaysLeft": 4
    }

    A change that follows a court decision

    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 true and learnedOn, the day the employer learned the content of the decision. The day of learnedOn counts as day one when it is a working day.

    The details of a change that follows a court decision

    {
      "date": "2026-12-02",
      "terms": {
        "occupation": "332401",
        "hoursPerWeek": 40
      },
      "courtDecision": true,
      "learnedOn": "2026-11-23"
    }

    Compute the deadline after a court decision

    curl

    curl "$RDC_BASE_URL/reges/v1/deadlines?kind=change-terms&date=2026-12-02&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-terms&date=2026-12-02&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-terms&date=2026-12-02&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-terms&date=2026-12-02&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-terms&date=2026-12-02&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
    }

    Validate, approve, transmit

    1. Validate

      validateOperation with the expectedRevision you read.

    2. Approve

      authorizeOperation, by a designated person other than the one who prepared it.

    3. Record the transmission

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

    4. Record the answer

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

    Every status of this path is on Lifecycle and statuses. A change the register rejects is corrected with a new draft: see Cancel or correct an operation.

    The contract once it is registered

    When recordAnswer records registered, the fields of details.terms are set on the contract and the others stay as they were.

    The terms of the example, on the contract

    {
      "number": "CIM 0305/2022",
      "occupation": {
        "code": "332401",
        "name": "Agent comercial"
      },
      "hoursPerWeek": 40
    }