Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Pay periods and cut-offs

    Distinguish the pay period from the input cut-off, approval deadline and payment date.

    Assign an input to a period

    The run has a YYYY-MM period. The cut-off includes inputs received on that date. Inputs received later carry next_run, so keep their identifiers when moving them into the following run. Approval deadline and payment date are separate schedule fields.

    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
    }