---
title: "Employees | Docs | Payroll by R&D Copilot"
description: "Read employees and update their draft payment details."
canonical: "https://payroll.rdcopilot.com/docs/api-reference/employees/"
language: en
updated: 2026-11-22
---

# Employees

Read employees and update their draft payment details.

## List employees

GET `/payroll/v1/employees`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `limit` | query | `integer` | Nooptional | Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional |  |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | Current record. | `EmployeePage` |
| `401` | Token missing or invalid. | `Error` |
| `403` | The client lacks access to this company or operation. | `Error` |
| `429` | Too many requests. The request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/payroll/v1/employees" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

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

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/employees');
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")}/payroll/v1/employees");
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

```json
{
  "items": [
    {
      "id": "maria-costea",
      "employerId": "brumar",
      "initials": "MC"
    }
  ],
  "nextCursor": null
}
```

## Update the bank account for a draft run

PUT `/payroll/v1/pay-runs/{runId}/employees/{employeeId}/bank-account`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `runId` | path | `string` | Yesrequired |  |
| `employeeId` | path | `string` | Yesrequired |  |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | UUID chosen by the caller for this change. |
| `expectedRevision` | `integer` | Yesrequired | Revision read before writing, or zero for a new subscription. |
| `bankAccount` | `string` | Yesrequired | Payment account for the employee. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Recorded operation and its outcome. | `OperationResult` |
| `400` | Invalid request fields. | `Error` |
| `401` | Token missing or invalid. | `Error` |
| `403` | The client lacks access to this company or operation. | `Error` |
| `404` | Record not found. | `Error` |
| `409` | The revision changed or the operation ID was reused with a different request body. | `Error` |
| `429` | Too many requests. The request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl -X PUT "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
  "expectedRevision": 3,
  "bankAccount": "RO66RZBR0000000000000002"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account`, {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
    "expectedRevision": 3,
    "bankAccount": "RO66RZBR0000000000000002"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'PUT',
    f'{os.environ["RDC_BASE_URL"]}/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'f7cc9497-d3fd-4476-9100-000000000002',
        'expectedRevision': 3,
        'bankAccount': 'RO66RZBR0000000000000002',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
  "expectedRevision": 3,
  "bankAccount": "RO66RZBR0000000000000002"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'PUT',
    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.Put, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
  "expectedRevision": 3,
  "bankAccount": "RO66RZBR0000000000000002"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
  "status": "completed",
  "aggregateRevision": 4
}
```
