Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Pay runs

    Read, calculate, reopen and approve pay runs.

    On this page

    List pay runs

    GET /payroll/v1/pay-runs

    Parameters

    NameInTypeRequiredMeaning
    limit query integer Nooptional Default 100 Range 1 – 500
    cursor query string Nooptional

    Responses

    StatusMeaningBody
    200 Current record. RunPage
    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

    curl "$RDC_BASE_URL/payroll/v1/pay-runs" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs');
    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");
    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

    {
      "items": [
        {
          "id": "PR-2026-11",
          "period": "2026-11",
          "cutoff": "2026-11-27",
          "paymentDate": "2026-12-04",
          "approvalDeadline": "2026-12-02",
          "status": "calculated",
          "revision": 5,
          "blockers": [],
          "rows": [
            {
              "employeeId": "maria-costea",
              "daysWorked": 19,
              "netChange": "-292.50",
              "changeReason": "days_or_earnings",
              "earnings": {
                "base": "9500.00",
                "additions": "0.00"
              },
              "gross": "9500.00",
              "pension": "2375.00",
              "health": "950.00",
              "employeeContributions": "3325.00",
              "incomeTax": "617.50",
              "net": "5557.50",
              "employerContribution": "213.75",
              "totalCost": "9713.75"
            },
            {
              "employeeId": "mihai-stan",
              "daysWorked": 10,
              "netChange": "-3802.50",
              "changeReason": "days_or_earnings",
              "earnings": {
                "base": "6500.00",
                "additions": "0.00"
              },
              "gross": "6500.00",
              "pension": "1625.00",
              "health": "650.00",
              "employeeContributions": "2275.00",
              "incomeTax": "422.50",
              "net": "3802.50",
              "employerContribution": "146.25",
              "totalCost": "6646.25"
            },
            {
              "employeeId": "ioana-marin",
              "daysWorked": 20,
              "netChange": "0.00",
              "changeReason": "unchanged",
              "earnings": {
                "base": "15000.00",
                "additions": "0.00"
              },
              "gross": "15000.00",
              "pension": "3750.00",
              "health": "1500.00",
              "employeeContributions": "5250.00",
              "incomeTax": "975.00",
              "net": "8775.00",
              "employerContribution": "337.50",
              "totalCost": "15337.50"
            },
            {
              "employeeId": "ana-rusu",
              "daysWorked": 20,
              "netChange": "0.00",
              "changeReason": "unchanged",
              "earnings": {
                "base": "22000.00",
                "additions": "0.00"
              },
              "gross": "22000.00",
              "pension": "5500.00",
              "health": "2200.00",
              "employeeContributions": "7700.00",
              "incomeTax": "1430.00",
              "net": "12870.00",
              "employerContribution": "495.00",
              "totalCost": "22495.00"
            },
            {
              "employeeId": "andrei-pop",
              "daysWorked": 20,
              "netChange": "0.00",
              "changeReason": "unchanged",
              "earnings": {
                "base": "9000.00",
                "additions": "0.00"
              },
              "gross": "9000.00",
              "pension": "2250.00",
              "health": "900.00",
              "employeeContributions": "3150.00",
              "incomeTax": "585.00",
              "net": "5265.00",
              "employerContribution": "202.50",
              "totalCost": "9202.50"
            },
            {
              "employeeId": "elena-dumitru",
              "daysWorked": 20,
              "netChange": "0.00",
              "changeReason": "unchanged",
              "earnings": {
                "base": "11000.00",
                "additions": "0.00"
              },
              "gross": "11000.00",
              "pension": "2750.00",
              "health": "1100.00",
              "employeeContributions": "3850.00",
              "incomeTax": "715.00",
              "net": "6435.00",
              "employerContribution": "247.50",
              "totalCost": "11247.50"
            },
            {
              "employeeId": "sorin-avram",
              "daysWorked": 20,
              "netChange": "0.00",
              "changeReason": "unchanged",
              "earnings": {
                "base": "8500.00",
                "additions": "0.00"
              },
              "gross": "8500.00",
              "pension": "2125.00",
              "health": "850.00",
              "employeeContributions": "2975.00",
              "incomeTax": "552.50",
              "net": "4972.50",
              "employerContribution": "191.25",
              "totalCost": "8691.25"
            }
          ],
          "totals": {
            "gross": "81500.00",
            "pension": "20375.00",
            "health": "8150.00",
            "employeeContributions": "28525.00",
            "incomeTax": "5297.50",
            "net": "47677.50",
            "employerContribution": "1833.75",
            "totalCost": "83333.75"
          }
        }
      ],
      "nextCursor": null
    }

    Read the pay run

    GET /payroll/v1/pay-runs/{runId}

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired

    Responses

    StatusMeaningBody
    200 Current record. Run
    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" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11`, {
      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',
        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');
    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");
    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

    {
      "id": "PR-2026-11",
      "period": "2026-11",
      "cutoff": "2026-11-27",
      "paymentDate": "2026-12-04",
      "approvalDeadline": "2026-12-02",
      "status": "calculated",
      "revision": 5,
      "blockers": [],
      "rows": [
        {
          "employeeId": "maria-costea",
          "daysWorked": 19,
          "netChange": "-292.50",
          "changeReason": "days_or_earnings",
          "earnings": {
            "base": "9500.00",
            "additions": "0.00"
          },
          "gross": "9500.00",
          "pension": "2375.00",
          "health": "950.00",
          "employeeContributions": "3325.00",
          "incomeTax": "617.50",
          "net": "5557.50",
          "employerContribution": "213.75",
          "totalCost": "9713.75"
        },
        {
          "employeeId": "mihai-stan",
          "daysWorked": 10,
          "netChange": "-3802.50",
          "changeReason": "days_or_earnings",
          "earnings": {
            "base": "6500.00",
            "additions": "0.00"
          },
          "gross": "6500.00",
          "pension": "1625.00",
          "health": "650.00",
          "employeeContributions": "2275.00",
          "incomeTax": "422.50",
          "net": "3802.50",
          "employerContribution": "146.25",
          "totalCost": "6646.25"
        },
        {
          "employeeId": "ioana-marin",
          "daysWorked": 20,
          "netChange": "0.00",
          "changeReason": "unchanged",
          "earnings": {
            "base": "15000.00",
            "additions": "0.00"
          },
          "gross": "15000.00",
          "pension": "3750.00",
          "health": "1500.00",
          "employeeContributions": "5250.00",
          "incomeTax": "975.00",
          "net": "8775.00",
          "employerContribution": "337.50",
          "totalCost": "15337.50"
        },
        {
          "employeeId": "ana-rusu",
          "daysWorked": 20,
          "netChange": "0.00",
          "changeReason": "unchanged",
          "earnings": {
            "base": "22000.00",
            "additions": "0.00"
          },
          "gross": "22000.00",
          "pension": "5500.00",
          "health": "2200.00",
          "employeeContributions": "7700.00",
          "incomeTax": "1430.00",
          "net": "12870.00",
          "employerContribution": "495.00",
          "totalCost": "22495.00"
        },
        {
          "employeeId": "andrei-pop",
          "daysWorked": 20,
          "netChange": "0.00",
          "changeReason": "unchanged",
          "earnings": {
            "base": "9000.00",
            "additions": "0.00"
          },
          "gross": "9000.00",
          "pension": "2250.00",
          "health": "900.00",
          "employeeContributions": "3150.00",
          "incomeTax": "585.00",
          "net": "5265.00",
          "employerContribution": "202.50",
          "totalCost": "9202.50"
        },
        {
          "employeeId": "elena-dumitru",
          "daysWorked": 20,
          "netChange": "0.00",
          "changeReason": "unchanged",
          "earnings": {
            "base": "11000.00",
            "additions": "0.00"
          },
          "gross": "11000.00",
          "pension": "2750.00",
          "health": "1100.00",
          "employeeContributions": "3850.00",
          "incomeTax": "715.00",
          "net": "6435.00",
          "employerContribution": "247.50",
          "totalCost": "11247.50"
        },
        {
          "employeeId": "sorin-avram",
          "daysWorked": 20,
          "netChange": "0.00",
          "changeReason": "unchanged",
          "earnings": {
            "base": "8500.00",
            "additions": "0.00"
          },
          "gross": "8500.00",
          "pension": "2125.00",
          "health": "850.00",
          "employeeContributions": "2975.00",
          "incomeTax": "552.50",
          "net": "4972.50",
          "employerContribution": "191.25",
          "totalCost": "8691.25"
        }
      ],
      "totals": {
        "gross": "81500.00",
        "pension": "20375.00",
        "health": "8150.00",
        "employeeContributions": "28525.00",
        "incomeTax": "5297.50",
        "net": "47677.50",
        "employerContribution": "1833.75",
        "totalCost": "83333.75"
      }
    }

    Calculate the pay run

    POST /payroll/v1/pay-runs/{runId}/calculate

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired

    Request body

    FieldTypeRequiredMeaning
    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.

    Responses

    StatusMeaningBody
    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 POST "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/calculate" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f7cc9497-d3fd-4476-9100-000000000003",
      "expectedRevision": 4
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/calculate`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "f7cc9497-d3fd-4476-9100-000000000003",
        "expectedRevision": 4
      }),
    });
    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/calculate',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'f7cc9497-d3fd-4476-9100-000000000003',
            'expectedRevision': 4,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000003",
      "expectedRevision": 4
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/calculate');
    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/calculate");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000003",
      "expectedRevision": 4
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000003",
      "status": "completed",
      "aggregateRevision": 5
    }

    Reopen a calculated run

    POST /payroll/v1/pay-runs/{runId}/reopen

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired

    Request body

    FieldTypeRequiredMeaning
    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.

    Responses

    StatusMeaningBody
    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 POST "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/reopen" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f7cc9497-d3fd-4476-9100-000000000004",
      "expectedRevision": 5
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/reopen`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "f7cc9497-d3fd-4476-9100-000000000004",
        "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/reopen',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'f7cc9497-d3fd-4476-9100-000000000004',
            'expectedRevision': 5,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000004",
      "expectedRevision": 5
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/reopen');
    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/reopen");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000004",
      "expectedRevision": 5
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000004",
      "status": "completed",
      "aggregateRevision": 6
    }

    Approve the calculated run

    POST /payroll/v1/pay-runs/{runId}/approve

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired

    Request body

    FieldTypeRequiredMeaning
    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.

    Responses

    StatusMeaningBody
    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 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();

    Response 202

    JSON

    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000005",
      "status": "completed",
      "aggregateRevision": 6
    }