Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Returns

    Record and read accepted monthly filing receipts.

    On this page

    Read the filed return record

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

    Parameters

    NameInTypeRequiredMeaning
    runId path string Yesrequired

    Responses

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

    JavaScript

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

    {
      "runId": "PR-2026-11",
      "period": "2026-11",
      "receipt": "D112-RECEIPT-8",
      "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"
      }
    }

    Record an accepted filing receipt

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

    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.
    receipt string Yesrequired Reference of the accepted filing receipt.

    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/return" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f7cc9497-d3fd-4476-9100-000000000007",
      "expectedRevision": 14,
      "receipt": "D112-RECEIPT-8"
    }'

    JavaScript

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

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000007",
      "expectedRevision": 14,
      "receipt": "D112-RECEIPT-8"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/pay-runs/PR-2026-11/return');
    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/return");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f7cc9497-d3fd-4476-9100-000000000007",
      "expectedRevision": 14,
      "receipt": "D112-RECEIPT-8"
    }
    """, 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-000000000007",
      "status": "completed",
      "aggregateRevision": 15
    }