---
title: "Checks before sending | Docs | REGES Gateway by R&D Copilot"
description: "The checks the gateway runs on a register operation before it can be validated: what each looks at, whether it blocks and which kinds it applies to."
canonical: "https://reges.rdcopilot.com/docs/statuses-and-errors/checks-before-sending/"
language: en
updated: 2026-11-22
---

# Checks before sending

The checks the gateway runs on a register operation before it can be validated: what each looks at, whether it blocks and which kinds it applies to.

The gateway checks a register operation against the contract before it is sent. This page lists every check, says which ones stop the operation and shows how to read them with `listChecks`.

## The checks

| Id | Name | Severity | Applies to | What it looks at |
| --- | --- | --- | --- | --- |
| `cnp-structure` | Personal number | `blocking` | `hire` | The personal number typed with `editOperation`. A personal numeric code has 13 digits. The first digit is the sex and the century of birth (1 to 6 for people born in 1800 to 2099), followed by the year, the month and the day of birth. The control digit is not checked. See [The personal number](https://reges.rdcopilot.com/docs/statuses-and-errors/checks-before-sending/#personal-number). |
| `minimum-age` | Minimum age | `attention` or `blocking` | `hire` | The age of the employee on the start date. At 16 or older the check passes. From 15 to under 16 it shows an attention: work is allowed only with the consent of a parent or legal representative. Under 15 it blocks. |
| `occupation-code` | Occupation code | `blocking` | `hire`, `change-terms` | The code of the occupation is in the list. See [Occupation codes](https://reges.rdcopilot.com/docs/reference-data/occupation-codes/). |
| `minimum-salary` | Minimum salary | `blocking` | `hire`, `change-terms`, `change-salary` | The base salary is not below the minimum for the weekly schedule. The guaranteed minimum gross base salary is 4,325 RON a month for a normal schedule of 166.667 hours a month, from 1 July 2026. The check scales it by the hours per week of the contract, with 40 hours as the full week. |
| `working-time` | Working time | `blocking` | `hire`, `change-terms`, `change-salary` | The hours per week are positive and at most 40 hours. For an employee under the age of 18 the most is 30 hours. |
| `fixed-term-end` | End of the fixed term | `blocking` | `hire`, `change-terms`, `change-salary` | A fixed-term contract has an end date after its start date. |
| `legal-basis` | Legal basis | `blocking` | `terminate` | The legal basis of the termination is stated. |
| `contract-state` | State of the contract | `blocking` | All kinds | The contract is in a status the operation allows: `pending` for `hire`; `active` for `change-terms`, `change-salary`, `suspend`, `transfer`, `secondment`; `suspended` for `resume`; `active` or `suspended` for `terminate`. |
| `deadline` | Deadline | `attention` | All kinds | The deadline has not passed. This check never blocks: after the deadline, the transmission needs a reason. See [Late operations](https://reges.rdcopilot.com/docs/deadlines/late-operations/). |

The minimum salary scales with the schedule: for 20 hours a week it is 2,162.50 RON.

## Blocking and attention

-   `blocking`: while the check fails, the draft cannot be validated. `validateOperation` is refused with `blocked_by_checks` (422) and the operation stays a draft.
-   `attention`: the result is shown and stops nothing.

## Read the checks

`listChecks` runs every check that applies to the operation, as it is now, and returns each with its `severity`, whether it `passed` and the values behind the result in `detail`. `canSend` is `true` when no blocking check fails, and `blocking` counts the ones that do. Match on `id` and `detail`: `message` is a sentence for people and can change. `editOperation` runs the checks again after every accepted edit.

curl

```bash
curl "$RDC_BASE_URL/reges/v1/register-operations/447e408d-e905-4304-a4cb-9e82a9788ce6/checks" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/register-operations/447e408d-e905-4304-a4cb-9e82a9788ce6/checks`, {
  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/register-operations/447e408d-e905-4304-a4cb-9e82a9788ce6/checks',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/register-operations/447e408d-e905-4304-a4cb-9e82a9788ce6/checks');
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/register-operations/447e408d-e905-4304-a4cb-9e82a9788ce6/checks");
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
{
  "registerOperationId": "447e408d-e905-4304-a4cb-9e82a9788ce6",
  "revision": 1,
  "canSend": false,
  "blocking": 1,
  "checks": [
    {
      "id": "cnp-structure",
      "severity": "blocking",
      "passed": false,
      "message": "No personal number has been entered yet.",
      "detail": {
        "check": "missing"
      }
    },
    {
      "id": "occupation-code",
      "severity": "blocking",
      "passed": true,
      "message": "Occupation code 432102 is in the list of occupations (Magaziner).",
      "detail": {
        "code": "432102"
      }
    },
    {
      "id": "minimum-salary",
      "severity": "blocking",
      "passed": true,
      "message": "The base salary of 4,400.00 RON is not below the minimum of 4,325.00 RON for this weekly schedule.",
      "detail": {
        "salary": "4400.00",
        "minimum": "4325.00"
      }
    },
    {
      "id": "working-time",
      "severity": "blocking",
      "passed": true,
      "message": "40 hours a week is within the maximum of 40 hours.",
      "detail": {
        "hours": 40,
        "maximum": 40
      }
    },
    {
      "id": "contract-state",
      "severity": "blocking",
      "passed": true,
      "message": "The contract is pending, which this operation allows.",
      "detail": {
        "status": "pending",
        "required": "pending"
      }
    },
    {
      "id": "deadline",
      "severity": "attention",
      "passed": true,
      "message": "The deadline is 1 December 2026, in 4 working days.",
      "detail": {
        "deadline": "2026-12-01",
        "late": -4
      }
    }
  ]
}
```

The draft above has no personal number yet, so `cnp-structure` blocks. A draft that passes every check answers like this:

A draft that can be validated

```json
{
  "canSend": true,
  "blocking": 0,
  "checks": [
    {
      "id": "cnp-structure",
      "severity": "blocking",
      "passed": true
    },
    {
      "id": "minimum-age",
      "severity": "attention",
      "passed": true
    },
    {
      "id": "occupation-code",
      "severity": "blocking",
      "passed": true
    },
    {
      "id": "minimum-salary",
      "severity": "blocking",
      "passed": true
    },
    {
      "id": "working-time",
      "severity": "blocking",
      "passed": true
    },
    {
      "id": "contract-state",
      "severity": "blocking",
      "passed": true
    },
    {
      "id": "deadline",
      "severity": "attention",
      "passed": true
    }
  ]
}
```

## The personal number

The personal number of a hire is typed with `editOperation`, field `personalNumber`; spaces are ignored. The check looks at the structure only: the control digit is not checked. The gateway keeps the last four digits and the birth date and drops the number. `detail.check` says why a number fails:

| detail.check | Sentence |
| --- | --- |
| `missing` | No personal number has been entered yet. |
| `wrong-length` | The personal number must have 13 digits. |
| `wrong-digit` | The first digit of the personal number does not give a valid sex and century. |
| `wrong-date` | The birth date inside the personal number is not a real date. |

The check does not tell you the number belongs to a real person. It tells you the number has the form of a personal number, and the register answers on its side.
