---
title: "Event catalogue | Docs | Tax Filing by R&D Copilot"
description: "The three events a return produces, when each is sent and what its data holds."
canonical: "https://declarations.rdcopilot.com/docs/events/event-catalogue/"
language: en
updated: 2026-11-22
---

# Event catalogue

The three events a return produces, when each is sent and what its `data` holds.

Events use the [event envelope](https://declarations.rdcopilot.com/docs/events/event-envelope/). The `type` is `com.rdcopilot.declarations.return.<event>.v1` and `aggregateType` is `return`. Every event is about one version of one return: a correction is another return and sends its own events.

| Event type | Sent when | Moves the return to |
| --- | --- | --- |
| `com.rdcopilot.declarations.return.submitted.v1` | The return is uploaded and the authority returned an upload index. | submitted |
| `com.rdcopilot.declarations.return.accepted.v1` | The authority accepted the return. The receipt is stored. | accepted |
| `com.rdcopilot.declarations.return.rejected.v1` | The authority rejected the return. The message is in the event. | rejected |

## The data of an event

| Field | Meaning |
| --- | --- |
| `form` | `D300`, `D390`, `D394` or `D406`. |
| `period` | The period as `YYYY-MM`. |
| `version` | The version of the return. |
| `status` | The status the return entered: the same word as the event. |
| `uploadIndex` | The index the authority gave the upload. |
| `message` | Only on a rejection: what the authority said, unchanged. |

## An accepted return

com.rdcopilot.declarations.return.accepted.v1

```json
{
  "specversion": "1.0",
  "id": "893cf669-78ed-4f1a-b114-1dbd42c777e9",
  "type": "com.rdcopilot.declarations.return.accepted.v1",
  "source": "/declarations/v1",
  "time": "2026-10-22T09:47:40Z",
  "customerOrgId": "bce4c5ae-2123-4dfd-8f45-6926644b91f7",
  "legalCompanyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
  "aggregateType": "return",
  "aggregateId": "bffa5db8-996e-4309-a693-d91075904265",
  "aggregateRevision": 9,
  "correlationId": "1135fec5-bf19-4a52-8c33-e744f530deeb",
  "causationId": "4bc9e2a0-fddf-4175-acd6-e3e89be8ab75",
  "actor": {
    "serviceId": "declarations-filing"
  },
  "data": {
    "form": "D300",
    "period": "2026-09",
    "version": 1,
    "status": "accepted",
    "uploadIndex": "5013480112"
  }
}
```

## A rejected return

com.rdcopilot.declarations.return.rejected.v1

```json
{
  "specversion": "1.0",
  "id": "fefdfbc2-862d-469f-a329-c8859b3db2cb",
  "type": "com.rdcopilot.declarations.return.rejected.v1",
  "source": "/declarations/v1",
  "time": "2026-11-20T09:07:40Z",
  "customerOrgId": "bce4c5ae-2123-4dfd-8f45-6926644b91f7",
  "legalCompanyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
  "aggregateType": "return",
  "aggregateId": "6e95eb18-450e-4cca-8671-f3edaaa04d8d",
  "aggregateRevision": 9,
  "correlationId": "71d62f16-d35d-478f-8dba-81529d4b3eae",
  "causationId": "2b185d5d-e27c-461f-b7fd-88587234aaad",
  "actor": {
    "serviceId": "declarations-filing"
  },
  "data": {
    "form": "D394",
    "period": "2026-10",
    "version": 1,
    "status": "rejected",
    "uploadIndex": "5013480209",
    "message": "Codul de identificare fiscală al partenerului nu a fost găsit în registrul contribuabililor."
  }
}
```

A delivery that fails is retried and then parked; see [Delivery and retries](https://declarations.rdcopilot.com/docs/events/delivery-and-retries/) and [Replay](https://declarations.rdcopilot.com/docs/events/replay/).
