---
title: "Occupation codes | Docs | REGES Gateway by R&D Copilot"
description: "How to read the list of occupation codes the gateway accepts and what the occupation-code check does with the code of a contract."
canonical: "https://reges.rdcopilot.com/docs/reference-data/occupation-codes/"
language: en
updated: 2026-11-22
---

# Occupation codes

How to read the list of occupation codes the gateway accepts and what the occupation-code check does with the code of a contract.

Every contract has the code of the occupation of the employee. Occupation codes follow the Classification of Occupations in Romania (COR), six-digit level. This page shows how to read the list the gateway accepts and what the `occupation-code` check does with a code.

## Read the list

`listOccupations` returns the occupations the check accepts, in pages. `q` keeps the occupations whose name contains the text; the names are in Romanian.

curl

```bash
curl "$RDC_BASE_URL/reges/v1/occupations?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/occupations?limit=20`, {
  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/occupations?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/occupations?limit=20');
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/occupations?limit=20");
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
{
  "items": [
    {
      "code": "331302",
      "name": "Contabil"
    },
    {
      "code": "333304",
      "name": "Inspector/referent resurse umane"
    },
    {
      "code": "432101",
      "name": "Gestionar depozit"
    },
    {
      "code": "432102",
      "name": "Magaziner"
    },
    {
      "code": "522101",
      "name": "Vânzător"
    },
    {
      "code": "523003",
      "name": "Casier"
    },
    {
      "code": "833201",
      "name": "Șofer autocamion/mașină de mare tonaj"
    },
    {
      "code": "332401",
      "name": "Agent comercial"
    },
    {
      "code": "933301",
      "name": "Încărcător-descărcător"
    },
    {
      "code": "121120",
      "name": "Contabil-șef"
    },
    {
      "code": "333101",
      "name": "Agent contractări și achiziții (broker mărfuri)"
    },
    {
      "code": "251202",
      "name": "Programator"
    }
  ],
  "nextCursor": null
}
```

## The occupation-code check

The check is blocking: while the code is not in the list, the operation cannot be validated, and `validateOperation` is refused with `blocked_by_checks`. It runs on a hire and on a change of terms that changes the occupation. A code is 6 digits; `editOperation` with the `occupation` field refuses a value that is not one with `invalid_value`.

The check of a code that is in the list

```json
{
  "id": "occupation-code",
  "severity": "blocking",
  "passed": true,
  "message": "Occupation code 432102 is in the list of occupations (Magaziner).",
  "detail": {
    "code": "432102"
  }
}
```

The contract returns the code with its name. `name` is `null` for a code that is not in the list. See [The contract object](https://reges.rdcopilot.com/docs/operations/the-contract-object/).

The occupation of a contract

```json
{
  "code": "432102",
  "name": "Magaziner"
}
```

A code in the list is not a promise that the register accepts it. The register answers on its side, and its words are kept unchanged: RG-2026-001466 was rejected with “Funcția nu corespunde codului COR transmis.”.

## The codes of the examples

| Code | Name |
| --- | --- |
| `331302` | Contabil |
| `333304` | Inspector/referent resurse umane |
| `432101` | Gestionar depozit |
| `432102` | Magaziner |
| `522101` | Vânzător |
| `523003` | Casier |
| `833201` | Șofer autocamion/mașină de mare tonaj |
| `332401` | Agent comercial |
| `933301` | Încărcător-descărcător |
| `121120` | Contabil-șef |
| `333101` | Agent contractări și achiziții (broker mărfuri) |
| `251202` | Programator |
