---
title: "Event catalogue | Docs | Treasury by R&D Copilot"
description: "The seven events Treasury sends, when each one is sent, what its data holds and a full example of each."
canonical: "https://banking.rdcopilot.com/docs/events/event-catalogue/"
language: en
updated: 2026-11-22
---

# Event catalogue

The seven events Treasury sends, when each one is sent, what its `data` holds and a full example of each.

Treasury sends an event when a statement is imported, when a match is suggested or accepted, and when a payment is approved, exported, confirmed or rejected. Every event uses the [event envelope](https://banking.rdcopilot.com/docs/events/event-envelope/); the `type` and `data` say what happened. Register an endpoint with a [subscription](https://banking.rdcopilot.com/docs/events/subscriptions/) to receive them.

| Type | Sent when | Fields of \`data\` |
| --- | --- | --- |
| `com.rdcopilot.banking.statement.imported.v1` | A statement file is imported. | `statementId, accountId, from, to, lineCount, closingBalance` |
| `com.rdcopilot.banking.match.suggested.v1` | The import proposes a match for a new booked line. | `transactionId, method, reason, amount` |
| `com.rdcopilot.banking.match.accepted.v1` | A match becomes final: accepted, booked to an entry or matched as a transfer. | `transactionId, method, amount, allocations` |
| `com.rdcopilot.banking.payment.approved.v1` | An approver approves a payment proposal. | `number, amount, approvedBy` |
| `com.rdcopilot.banking.payment.exported.v1` | An approved payment is exported in a payment file. | `number, batchId, executeOn` |
| `com.rdcopilot.banking.payment.confirmed.v1` | An imported statement books the debit of an exported payment. | `number, transactionId` |
| `com.rdcopilot.banking.payment.rejected.v1` | An imported statement returns the debit of a payment. | `number, bankReason, transactionId` |

`aggregateId` and `aggregateRevision` name the record that changed and its revision after the change. `legalCompanyId` is the company. Read the record for everything else: an event says that something happened, not everything about the record. A delivery that fails is retried and can be [replayed](https://banking.rdcopilot.com/docs/events/replay/); see [Delivery and retries](https://banking.rdcopilot.com/docs/events/delivery-and-retries/).

## statement.imported

`aggregateId` is the id of the statement. `lineCount` counts the lines of the file and `closingBalance` is its closing balance.

JSON

```json
{
  "specversion": "1.0",
  "id": "a60518c8-8306-46e8-9b42-e49f4a2612f5",
  "type": "com.rdcopilot.banking.statement.imported.v1",
  "source": "/banking/v1",
  "time": "2026-11-23T07:12:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "statement",
  "aggregateId": "f5b1321e-fbb0-4771-8393-9e4090091108",
  "aggregateRevision": 1,
  "correlationId": "bbac0a1c-9923-4c5c-9e8e-4f549901a727",
  "causationId": "80cd1346-fac0-457b-9c65-741c7d8c82f1",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "statementId": "f5b1321e-fbb0-4771-8393-9e4090091108",
    "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
    "from": "2026-11-20",
    "to": "2026-11-22",
    "lineCount": 3,
    "closingBalance": "180250.47"
  }
}
```

## match.suggested

`aggregateId` is the id of the match. `method` is `rule`, `exact`, `partner` or `manual`, and `reason` is the object of the match with its `code` and its sentence.

JSON

```json
{
  "specversion": "1.0",
  "id": "d74c318e-d9be-4945-b4b2-5e1c981a665c",
  "type": "com.rdcopilot.banking.match.suggested.v1",
  "source": "/banking/v1",
  "time": "2026-11-19T18:05:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "match",
  "aggregateId": "d976e350-d423-4499-ac3d-207185a9bd4b",
  "aggregateRevision": 1,
  "correlationId": "fd2d6e52-2c5f-4c51-9888-dbb316d005d4",
  "causationId": "686e155d-2352-4d97-a20f-0750a363e681",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "transactionId": "0dea7dcc-e56e-4654-bdf3-95fbedf34baf",
    "method": "exact",
    "reason": {
      "code": "exact",
      "text": "The amount RON 3,168.42 equals FCT-2026-00418 and the reference names it."
    },
    "amount": "3168.42"
  }
}
```

## match.accepted

`allocations` is the list of the match, as [\`getMatch\`](https://banking.rdcopilot.com/docs/api-reference/matches/#get-match) returns it.

JSON

```json
{
  "specversion": "1.0",
  "id": "da176ed9-15de-41f7-b105-e603f629be11",
  "type": "com.rdcopilot.banking.match.accepted.v1",
  "source": "/banking/v1",
  "time": "2026-11-23T07:12:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "match",
  "aggregateId": "d976e350-d423-4499-ac3d-207185a9bd4b",
  "aggregateRevision": 2,
  "correlationId": "fd2d6e52-2c5f-4c51-9888-dbb316d005d4",
  "causationId": "afbcc71e-ab42-4c5a-9c97-23ab1eae4574",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "transactionId": "0dea7dcc-e56e-4654-bdf3-95fbedf34baf",
    "method": "exact",
    "amount": "3168.42",
    "allocations": [
      {
        "kind": "item",
        "openItemId": "6023b97b-b8aa-40bf-bf95-706a76377739",
        "amount": "3168.42"
      }
    ]
  }
}
```

## payment.approved

`number` is the number of the payment, for example in the reference of the payment, and `approvedBy` is the name of the approver.

JSON

```json
{
  "specversion": "1.0",
  "id": "eb50f163-0996-462d-82ce-6174a1aa3356",
  "type": "com.rdcopilot.banking.payment.approved.v1",
  "source": "/banking/v1",
  "time": "2026-11-23T07:12:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "payment",
  "aggregateId": "21de0aa9-20d9-48af-87d7-c24c5a5dde5d",
  "aggregateRevision": 3,
  "correlationId": "74c85cb9-6aa6-4e87-aa09-6a51455d63b5",
  "causationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "number": "PP-1003",
    "amount": "7218.65",
    "approvedBy": "Ioana Marin"
  }
}
```

## payment.exported

`batchId` is the payment file, and `executeOn` is the execution day of the file.

JSON

```json
{
  "specversion": "1.0",
  "id": "211a6e78-b165-4615-b7a4-ce66bd261328",
  "type": "com.rdcopilot.banking.payment.exported.v1",
  "source": "/banking/v1",
  "time": "2026-11-23T07:12:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "payment",
  "aggregateId": "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe",
  "aggregateRevision": 4,
  "correlationId": "0625f71b-4cc3-48a5-9a90-4198ac13add0",
  "causationId": "6625838e-1435-4abc-ae36-b1202043b86f",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "number": "PP-1006",
    "batchId": "45c5fc66-0d7b-4707-bccd-473915866774",
    "executeOn": "2026-12-04"
  }
}
```

## payment.confirmed

`transactionId` is the debit that confirms the payment.

JSON

```json
{
  "specversion": "1.0",
  "id": "b2a8706d-481b-4994-bcf0-f80d75c4f0f5",
  "type": "com.rdcopilot.banking.payment.confirmed.v1",
  "source": "/banking/v1",
  "time": "2026-11-18T07:00:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "payment",
  "aggregateId": "cef8de13-2bf6-45ea-954f-036e324a40d5",
  "aggregateRevision": 5,
  "correlationId": "7cd5439b-9494-49c6-bc36-ab83cbf3df25",
  "causationId": "c97689c8-d191-4fae-bc65-e010cf0e9157",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "number": "PP-1002",
    "transactionId": "a8359bc8-f9a3-4af7-92ff-ba1394b9a787"
  }
}
```

## payment.rejected

`bankReason` is the reason of the bank, as written, and `transactionId` is the return line. See [Handle a returned payment](https://banking.rdcopilot.com/docs/guides/handle-a-returned-payment/).

JSON

```json
{
  "specversion": "1.0",
  "id": "357624c2-3dac-46c3-a319-4900ec7844e9",
  "type": "com.rdcopilot.banking.payment.rejected.v1",
  "source": "/banking/v1",
  "time": "2026-11-23T07:12:00Z",
  "customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
  "legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
  "aggregateType": "payment",
  "aggregateId": "cef8de13-2bf6-45ea-954f-036e324a40d5",
  "aggregateRevision": 6,
  "correlationId": "7cd5439b-9494-49c6-bc36-ab83cbf3df25",
  "causationId": "202e914a-22a1-448b-8f98-e27eac7090d5",
  "actor": {
    "serviceId": "banking-treasury"
  },
  "data": {
    "number": "PP-1002",
    "bankReason": "Beneficiary account closed",
    "transactionId": "58ba7b3a-6ba5-4483-9611-f93018eca7c9"
  }
}
```

## What does not send an event

A payment sent for approval or declined, a match that is split, left, reopened or dismissed, and a payment proposal that is only prepared do not send an event. Read them when you need them: [\`listPaymentProposals\`](https://banking.rdcopilot.com/docs/api-reference/payment-proposals/#list-payment-proposals) and [\`listMatches\`](https://banking.rdcopilot.com/docs/api-reference/matches/#list-matches).
