---
title: "Onboard a hire | Docs | HR by R&D Copilot"
description: "Hire a person and take their checklist to the end: the register operation, payroll, courses and access."
canonical: "https://hr.rdcopilot.com/docs/guides/onboard-a-hire/"
language: en
updated: 2026-11-22
---

# Onboard a hire

Hire a person and take their checklist to the end: the register operation, payroll, courses and access.

A hire is a person with a first day of work and a checklist of five steps. The steps have owners and some wait for others, and the API refuses a step whose turn has not come, so the checklist cannot show work as done that was not.

## Hire the person

[Hire a person](https://hr.rdcopilot.com/docs/api-reference/people/#create-employee) as in the [Quickstart](https://hr.rdcopilot.com/docs/get-started/quickstart/). The first day of work is today or later and a working day. The checklist exists from this moment, and `onboarding` is the status of the person until that day.

curl

```bash
curl -X POST "$RDC_BASE_URL/hr/v1/employees" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "Teodora Nistor",
    "job": "Buyer",
    "departmentId": "purchasing",
    "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
    "workplaceId": "office",
    "contractType": "indefinite",
    "grossSalary": "6500.00",
    "startDate": "2026-12-02",
    "externalId": "hr-0231",
    "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'name': 'Teodora Nistor',
        'job': 'Buyer',
        'departmentId': 'purchasing',
        'managerId': '68830a58-d574-4401-9f7d-90be0b6c1dbf',
        'workplaceId': 'office',
        'contractType': 'indefinite',
        'grossSalary': '6500.00',
        'startDate': '2026-12-02',
        'externalId': 'hr-0231',
        'operationId': '3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees');
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")}/hr/v1/employees");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12",
  "status": "accepted",
  "aggregateRevision": 1
}
```

## Read the checklist

[Get the onboarding checklist](https://hr.rdcopilot.com/docs/api-reference/onboarding/#get-onboarding) returns the five steps in order. Each has its owner, whether it is done and, in `blockedBy`, the open steps it waits for.

| Step | Owner | Waits for |
| --- | --- | --- |
| `contract` | HR | nothing |
| `register` | HR | contract |
| `payroll` | Payroll | register |
| `courses` | HR | contract |
| `access` | IT | contract |

The employment contract is registered in the general register of employees, which is sent to the territorial labour inspectorate, at the latest the day before work starts.

curl

```bash
curl "$RDC_BASE_URL/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding`, {
  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"]}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding');
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")}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding");
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
{
  "employeeId": "93c566c1-799c-4ccf-afac-244ff06d2537",
  "registerDue": "2026-12-07",
  "steps": [
    {
      "id": "contract",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": true,
      "doneAt": "2026-11-20T10:15:00Z",
      "blockedBy": []
    },
    {
      "id": "register",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    },
    {
      "id": "payroll",
      "ownerId": "bb78eec5-e3db-4951-8af5-097c81a5874f",
      "done": false,
      "doneAt": null,
      "blockedBy": [
        "register"
      ]
    },
    {
      "id": "courses",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    },
    {
      "id": "access",
      "ownerId": "15a61181-9564-4cb8-9aef-b3ef3b7ef421",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    }
  ],
  "revision": 2
}
```

Here the contract is signed and the register operation is not: `payroll` is blocked by `register`, and `registerDue` is the day to finish it by.

## Do a step

[Do a step](https://hr.rdcopilot.com/docs/api-reference/onboarding/#complete-step) names the person, the step and the person on whose behalf it is done, who is the owner of the step or the HR lead. `expectedRevision` is the revision of the checklist you read.

curl

```bash
curl -X POST "$RDC_BASE_URL/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/register/complete" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "expectedRevision": 2,
  "actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
  "operationId": "3ff4a0ea-8962-45c0-9536-2334a41ee93e"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/register/complete`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "expectedRevision": 2,
    "actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
    "operationId": "3ff4a0ea-8962-45c0-9536-2334a41ee93e"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/register/complete',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'expectedRevision': 2,
        'actorId': 'a31a1dd1-9214-434e-a00a-db907727f048',
        'operationId': '3ff4a0ea-8962-45c0-9536-2334a41ee93e',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "expectedRevision": 2,
  "actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
  "operationId": "3ff4a0ea-8962-45c0-9536-2334a41ee93e"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/register/complete');
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")}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/register/complete");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "expectedRevision": 2,
  "actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
  "operationId": "3ff4a0ea-8962-45c0-9536-2334a41ee93e"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "3ff4a0ea-8962-45c0-9536-2334a41ee93e",
  "status": "accepted",
  "aggregateRevision": 3
}
```

The answer is the usual operation result. Read the checklist again: `register` is done, and `payroll` is no longer blocked.

curl

```bash
curl "$RDC_BASE_URL/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding`, {
  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"]}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding');
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")}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding");
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
{
  "employeeId": "93c566c1-799c-4ccf-afac-244ff06d2537",
  "registerDue": "2026-12-07",
  "steps": [
    {
      "id": "contract",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": true,
      "doneAt": "2026-11-20T10:15:00Z",
      "blockedBy": []
    },
    {
      "id": "register",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": true,
      "doneAt": "2026-11-23T07:12:00Z",
      "blockedBy": []
    },
    {
      "id": "payroll",
      "ownerId": "bb78eec5-e3db-4951-8af5-097c81a5874f",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    },
    {
      "id": "courses",
      "ownerId": "a31a1dd1-9214-434e-a00a-db907727f048",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    },
    {
      "id": "access",
      "ownerId": "15a61181-9564-4cb8-9aef-b3ef3b7ef421",
      "done": false,
      "doneAt": null,
      "blockedBy": []
    }
  ],
  "revision": 3
}
```

## A step out of turn

Doing `payroll` while `register` is open is refused with `422` and `step_blocked`. Nothing is recorded. Do the step it waits for, and send the request again.

curl

```bash
curl -X POST "$RDC_BASE_URL/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/payroll/complete" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "7d1c5e30-8b24-4a6f-9c13-5e0b2a47d891",
  "expectedRevision": 2,
  "actorId": "bb78eec5-e3db-4951-8af5-097c81a5874f"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/payroll/complete`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "7d1c5e30-8b24-4a6f-9c13-5e0b2a47d891",
    "expectedRevision": 2,
    "actorId": "bb78eec5-e3db-4951-8af5-097c81a5874f"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/payroll/complete',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '7d1c5e30-8b24-4a6f-9c13-5e0b2a47d891',
        'expectedRevision': 2,
        'actorId': 'bb78eec5-e3db-4951-8af5-097c81a5874f',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "7d1c5e30-8b24-4a6f-9c13-5e0b2a47d891",
  "expectedRevision": 2,
  "actorId": "bb78eec5-e3db-4951-8af5-097c81a5874f"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/payroll/complete');
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")}/hr/v1/employees/93c566c1-799c-4ccf-afac-244ff06d2537/onboarding/payroll/complete");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "7d1c5e30-8b24-4a6f-9c13-5e0b2a47d891",
  "expectedRevision": 2,
  "actorId": "bb78eec5-e3db-4951-8af5-097c81a5874f"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 422

```json
{
  "code": "step_blocked",
  "message": "A step this one waits for is not done.",
  "requestId": "9b4e1c2a-6d3f-4a78-b5e0-2f8c7d1a3e69"
}
```

## Reopen a step

[Reopen a step](https://hr.rdcopilot.com/docs/api-reference/onboarding/#reopen-step) marks a done step open again, for example when a contract is signed again with other terms. It is refused with `step_has_dependents` while a step that waits for it is done: reopen that one first.

The first day of work is the day the status of the person becomes `active`, whatever the state of the checklist. A step still open on that day stays on the list for its owner.
