Inputs
Read and write the inputs that feed each pay run.
On this page
Read inputs and their disposition
GET /payroll/v1/pay-runs/{runId}/inputs
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
runId | path | string | Yesrequired | |
limit | query | integer | Nooptional | Default 100 Range 1 – 500 |
cursor | query | string | Nooptional |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | Current record. | InputPage |
401 | Token missing or invalid. | Error |
403 | The client lacks access to this company or operation. | Error |
404 | Record not found. | Error |
429 | Too many requests. The request was not processed. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/inputs" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/inputs`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/payroll/v1/pay-runs/PR-2026-11/inputs',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/inputs');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/payroll/v1/pay-runs/PR-2026-11/inputs");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "bonus-maria",
"employeeId": "maria-costea",
"kind": "bonus",
"source": "payroll",
"receivedOn": "2026-12-02",
"amount": "279.31",
"disposition": "next_run"
}
],
"nextCursor": null
} Record or update an input
PUT /payroll/v1/pay-runs/{runId}/inputs
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
runId | 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. |
input | object | Yesrequired | |
input.id | string | Yesrequired | Stable input identifier. |
input.employeeId | string | Yesrequired | Employee identifier. |
input.kind | string | Yesrequired | Input type. One of timesheet, leave, bonus, hire, leaver, correction |
input.source | string | Yesrequired | Origin of the input. One of hr, timesheets, payroll |
input.receivedOn | string (date) | Yesrequired | Date received, compared with the cut-off. |
input.amount | string | Nooptional | Required for bonuses and corrections. Corrections may be negative. |
input.daysWorked | integer | Nooptional | Days worked, required for timesheets. |
input.approved | boolean | Nooptional | Approval of leave or confirmation of the contract ending. |
input.relatedRunId | string | Nooptional | Source run for a correction. |
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
curl -X PUT "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/inputs" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "f7cc9497-d3fd-4476-9100-000000000001",
"expectedRevision": 1,
"input": {
"id": "leave-maria",
"employeeId": "maria-costea",
"kind": "leave",
"source": "hr",
"receivedOn": "2026-11-24",
"approved": true
}
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/inputs`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "f7cc9497-d3fd-4476-9100-000000000001",
"expectedRevision": 1,
"input": {
"id": "leave-maria",
"employeeId": "maria-costea",
"kind": "leave",
"source": "hr",
"receivedOn": "2026-11-24",
"approved": true
}
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'PUT',
f'{os.environ["RDC_BASE_URL"]}/payroll/v1/pay-runs/PR-2026-11/inputs',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'f7cc9497-d3fd-4476-9100-000000000001',
'expectedRevision': 1,
'input': {
'id': 'leave-maria',
'employeeId': 'maria-costea',
'kind': 'leave',
'source': 'hr',
'receivedOn': '2026-11-24',
'approved': True,
},
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000001",
"expectedRevision": 1,
"input": {
"id": "leave-maria",
"employeeId": "maria-costea",
"kind": "leave",
"source": "hr",
"receivedOn": "2026-11-24",
"approved": true
}
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/inputs');
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#
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/inputs");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000001",
"expectedRevision": 1,
"input": {
"id": "leave-maria",
"employeeId": "maria-costea",
"kind": "leave",
"source": "hr",
"receivedOn": "2026-11-24",
"approved": true
}
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000001",
"status": "completed",
"aggregateRevision": 2
}