Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Payslips

    Read and reconcile the amounts of an employee payslip.

    Read the employee record

    Use the run and employee IDs. Compare net with the employee row and yearToDate with the current amounts plus earlier paid or filed runs for the same calendar year. Before distributing a payslip, check that the run is approved.

    In the sample the net is 5557.50 and yearToDate.net is 64057.50: the 10 paid runs from January to October at 5850.00 each, plus the current 5557.50.

    curl

    curl "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/payslips/maria-costea" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/pay-runs/PR-2026-11/payslips/maria-costea`, {
      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/payslips/maria-costea',
        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/payslips/maria-costea');
    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/payslips/maria-costea");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "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",
      "paymentDate": "2026-12-04",
      "yearToDate": {
        "gross": "109500.00",
        "pension": "27375.00",
        "health": "10950.00",
        "employeeContributions": "38325.00",
        "incomeTax": "7117.50",
        "net": "64057.50",
        "employerContribution": "2463.75",
        "totalCost": "111963.75"
      }
    }