Approve and pay
Approve the reviewed revision and reconcile the bank outcomes employee by employee.
On this page
Approve the reviewed run
Submit the calculated revision after checking totals and blockers. Once approval completes, read the outstanding payment rows and pass them to Treasury.
curl
curl -X POST "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/approve" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "f7cc9497-d3fd-4476-9100-000000000005",
"expectedRevision": 5
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/approve`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "f7cc9497-d3fd-4476-9100-000000000005",
"expectedRevision": 5
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/payroll/v1/pay-runs/PR-2026-11/approve',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'f7cc9497-d3fd-4476-9100-000000000005',
'expectedRevision': 5,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000005",
"expectedRevision": 5
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/approve');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/payroll/v1/pay-runs/PR-2026-11/approve");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000005",
"expectedRevision": 5
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "f7cc9497-d3fd-4476-9100-000000000005",
"status": "completed",
"aggregateRevision": 6
} Record bank evidence
Use the bank attempt reference and record settled or rejected. A rejected row remains outstanding. Reconcile the corrected bank attempt with its own reference and keep the original outcome for review.
curl
curl -X POST "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/payments" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "f7cc9497-d3fd-4476-9100-000000000006",
"expectedRevision": 6,
"employeeId": "maria-costea",
"outcome": "settled",
"reference": "BANK-46"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/payments`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "f7cc9497-d3fd-4476-9100-000000000006",
"expectedRevision": 6,
"employeeId": "maria-costea",
"outcome": "settled",
"reference": "BANK-46"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/payroll/v1/pay-runs/PR-2026-11/payments',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'f7cc9497-d3fd-4476-9100-000000000006',
'expectedRevision': 6,
'employeeId': 'maria-costea',
'outcome': 'settled',
'reference': 'BANK-46',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000006",
"expectedRevision": 6,
"employeeId": "maria-costea",
"outcome": "settled",
"reference": "BANK-46"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/payments');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/payroll/v1/pay-runs/PR-2026-11/payments");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "f7cc9497-d3fd-4476-9100-000000000006",
"expectedRevision": 6,
"employeeId": "maria-costea",
"outcome": "settled",
"reference": "BANK-46"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "f7cc9497-d3fd-4476-9100-000000000006",
"status": "completed",
"aggregateRevision": 7
}