---
title: "Adaugă un angajator | Documentație | REGES Gateway by R&D Copilot"
description: "Adaugă un angajator în contul tău după CUI, citește-l și vezi ce conține."
canonical: "https://reges.rdcopilot.com/ro/docs/employers-and-access/add-an-employer/"
language: ro
updated: 2026-11-22
---

# Adaugă un angajator

Adaugă un angajator în contul tău după CUI, citește-l și vezi ce conține.

Un cont conține angajatorii pentru care pregătești operațiuni în registru. Fiecare angajator este identificat prin CUI și are propriile drepturi de acces, contracte, operațiuni în registru și propria adresă pentru evenimente. `id`\-ul unui angajator este `employerId` în fiecare cerere despre înregistrările lui și `legalCompanyId` în evenimentele lui.

## Adaugă angajatorul

Trimite CUI-ul, doar cifre, și numele angajatorului. Răspunsul este un rezultat de operație, iar `aggregateId` este `id`\-ul noului angajator. Adăugarea aceluiași CUI de două ori este refuzată cu `employer_exists`.

curl

```bash
curl -X POST "$RDC_BASE_URL/reges/v1/employers" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "b4c34456-bb2e-4236-b9f4-0b4fa754e1fd",
  "cui": "62049137",
  "name": "Transbistrița Logistic SRL"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/employers`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "b4c34456-bb2e-4236-b9f4-0b4fa754e1fd",
    "cui": "62049137",
    "name": "Transbistrița Logistic SRL"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/reges/v1/employers',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'b4c34456-bb2e-4236-b9f4-0b4fa754e1fd',
        'cui': '62049137',
        'name': 'Transbistrița Logistic SRL',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "b4c34456-bb2e-4236-b9f4-0b4fa754e1fd",
  "cui": "62049137",
  "name": "Transbistrița Logistic SRL"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/employers');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reges/v1/employers");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "b4c34456-bb2e-4236-b9f4-0b4fa754e1fd",
  "cui": "62049137",
  "name": "Transbistrița Logistic SRL"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Răspuns 202

```json
{
  "operationId": "b4c34456-bb2e-4236-b9f4-0b4fa754e1fd",
  "status": "accepted",
  "aggregateId": "a113262e-61fd-426c-ae7e-44e13d8ec508",
  "aggregateRevision": 1
}
```

Nimeni nu poate pregăti, aproba sau transmite pentru un angajator nou până când acesta are drepturi de acces: răspunsul este `not_permitted`. Adaugă-le imediat după aceea, vezi [Persoane desemnate și delegări](https://reges.rdcopilot.com/ro/docs/employers-and-access/designated-persons/).

## Citește angajatorul

| Câmp | Descriere |
| --- | --- |
| `id` | Identificatorul angajatorului. Trimite-l ca `employerId`. |
| `name` | Numele angajatorului. |
| `cui` | Codul fiscal al angajatorului, doar cifre. |
| `revision` | Revizia angajatorului. |

curl

```bash
curl "$RDC_BASE_URL/reges/v1/employers/6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/employers/6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0`, {
  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/employers/6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/reges/v1/employers/6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0');
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/employers/6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Răspuns 200

```json
{
  "id": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
  "name": "Brumar Distribuție SRL",
  "cui": "48290619",
  "revision": 1
}
```

`listEmployers` returnează toți angajatorii contului, în pagini. Vezi [Paginare](https://reges.rdcopilot.com/ro/docs/reference/pagination/).

curl

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

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/reges/v1/employers?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/employers?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/employers?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/employers?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Răspuns 200

```json
{
  "items": [
    {
      "id": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
      "name": "Brumar Distribuție SRL",
      "cui": "48290619",
      "revision": 1
    },
    {
      "id": "6f90be8d-78b7-4a97-9b06-7cc6db931f53",
      "name": "Brumar Retail SRL",
      "cui": "48290783",
      "revision": 1
    }
  ],
  "nextCursor": null
}
```

## Ce conține un angajator

| Înregistrare | Citește-o cu |
| --- | --- |
| Drepturile de acces ale persoanelor desemnate și ale prestatorilor lui | `listPermissions` |
| Contractele individuale de muncă, cu starea lor | `listContracts` |
| Operațiunile în registru | `listRegisterOperations` |
| Abonamentele la evenimentele lui | `listSubscriptions` |

`listPermissions` primește `id`\-ul angajatorului în cale; `listContracts` și `listRegisterOperations` îl primesc ca `employerId`; un abonament își numește angajatorul în `employerId`. Vezi [Angajatori](https://reges.rdcopilot.com/ro/docs/api-reference/employers/) pentru fiecare apel.
