---
title: "Event catalogue | Docs | Payroll by R&D Copilot"
description: "Subscribe to pay run and payment changes."
canonical: "https://payroll.rdcopilot.com/docs/events/event-catalogue/"
language: en
updated: 2026-11-22
---

# Event catalogue

Subscribe to pay run and payment changes.

Store the event ID and queue the delivery durably before returning 2xx. Process the stored event afterwards. Read the current pay run when you need the full record. The envelope carries the revision of the change and the status of the run.

| Type | When it occurs |
| --- | --- |
| `com.rdcopilot.payroll.pay_run.calculated.v1` | Employee lines were calculated at this revision. |
| `com.rdcopilot.payroll.pay_run.approved.v1` | The reviewed run was approved. |
| `com.rdcopilot.payroll.payment.recorded.v1` | A settlement or rejection was recorded. |
| `com.rdcopilot.payroll.pay_run.paid.v1` | Every payment row has settled. |
| `com.rdcopilot.payroll.pay_run.filed.v1` | An accepted filing receipt was recorded. |

curl

```bash
curl "$RDC_BASE_URL/payroll/v1/events" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/events`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/payroll/v1/events',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/events');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/payroll/v1/events");
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": [
    {
      "specversion": "1.0",
      "id": "f7cc9497-d3fd-4476-9100-000000000010",
      "type": "com.rdcopilot.payroll.pay_run.approved.v1",
      "source": "/payroll/v1",
      "time": "2026-12-02T10:15:00Z",
      "customerOrgId": "brumar",
      "legalCompanyId": "brumar",
      "aggregateType": "pay_run",
      "aggregateId": "PR-2026-11",
      "aggregateRevision": 6,
      "correlationId": "f7cc9497-d3fd-4476-9100-000000000011",
      "causationId": "f7cc9497-d3fd-4476-9100-000000000005",
      "actor": {
        "type": "api_client",
        "id": "payroll-client"
      },
      "data": {
        "status": "approved"
      }
    }
  ],
  "nextCursor": null
}
```
