Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Employees

    Read employees and update their draft payment details.

    On this page

    List employees

    GET /payroll/v1/employees

    Parameters

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

    Responses

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

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/employees');
    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/employees");
    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": "maria-costea",
          "employerId": "brumar",
          "initials": "MC"
        }
      ],
      "nextCursor": null
    }

    Update the bank account for a draft run

    PUT /payroll/v1/pay-runs/{runId}/employees/{employeeId}/bank-account

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired
    employeeId 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.
    bankAccount string Yesrequired Payment account for the employee.

    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 PUT "$RDC_BASE_URL/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
      "expectedRevision": 3,
      "bankAccount": "RO66RZBR0000000000000002"
    }'

    JavaScript

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

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
      "expectedRevision": 3,
      "bankAccount": "RO66RZBR0000000000000002"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/employees/mihai-stan/bank-account');
    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/employees/mihai-stan/bank-account");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000002",
      "expectedRevision": 3,
      "bankAccount": "RO66RZBR0000000000000002"
    }
    """, 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-000000000002",
      "status": "completed",
      "aggregateRevision": 4
    }