---
title: "Evidence: generation, validation, signing | Docs | Tax Filing by R&D Copilot"
description: "The three records a return keeps before it can be approved, in the order they are made."
canonical: "https://declarations.rdcopilot.com/docs/concepts/evidence/"
language: en
updated: 2026-11-22
---

# Evidence: generation, validation, signing

The three records a return keeps before it can be approved, in the order they are made.

A return cannot be approved without all three records, and they are made in order: generation, then validation, then signing. A record is never edited. When the return is rebuilt, the new build gets its own records and the history keeps the old ones.

## Generation

Generation records when the return was built, the ledger snapshot it was built from, the generator and the version of the rules, and the SHA-256 of the built return (`artifactHash`). The same ledger always gives the same rows, so the same hash.

## Validation

Validation records that the checks ran on that same artifact and found no error. Its `artifactHash` equals the generation record’s, so a validation can never stand for a different build. A run that finds an error leaves no validation record; it is written to the history of the return and the findings say why.

## Signing

Signing records who signed and when, the hash of the return that was signed (`inputArtifactHash`) and the hash of the signed file (`signedArtifactHash`). Only a person who holds the signing right can sign, and only after validation. A company that files electronically identifies itself to the authority with a qualified certificate; the file that is uploaded is the signed one.

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2/evidence" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2/evidence`, {
  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"]}/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2/evidence',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2/evidence');
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")}/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2/evidence");
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
{
  "returnId": "3b559a77-5de4-4b9a-9e2e-ca6625d123f2",
  "revision": 4,
  "generation": {
    "at": "2026-11-19T09:05:00Z",
    "snapshot": 1,
    "generatorId": "declarations-generator",
    "generatorVersion": "1.4.0",
    "rulesetVersion": "2026.11",
    "artifactHash": "sha256:1bd72ce4ad1013289b3f4350b4cb1a99480aa55f57c10cebb8c64434203aa38b",
    "evidenceRef": "archive://declarations/brumar/2026-10/D300/v1/generation"
  },
  "validation": {
    "at": "2026-11-19T09:06:00Z",
    "validatorId": "declarations-validator",
    "validatorVersion": "1.4.0",
    "rulesetVersion": "2026.11",
    "warnings": 0,
    "artifactHash": "sha256:1bd72ce4ad1013289b3f4350b4cb1a99480aa55f57c10cebb8c64434203aa38b",
    "evidenceRef": "archive://declarations/brumar/2026-10/D300/v1/validation"
  },
  "signing": {
    "at": "2026-11-19T09:20:00Z",
    "signedBy": {
      "id": "adacf598-0e46-4866-a3c6-ba0234ecacc4",
      "name": "Ioana Marin",
      "role": "Chief accountant"
    },
    "signerId": "declarations-signer",
    "signerVersion": "1.4.0",
    "inputArtifactHash": "sha256:1bd72ce4ad1013289b3f4350b4cb1a99480aa55f57c10cebb8c64434203aa38b",
    "signedArtifactHash": "sha256:a00eec95ee91fb7b6770aa59387c101dddb3f36eb60d902cc74c1a7ff7ecac6f",
    "evidenceRef": "archive://declarations/brumar/2026-10/D300/v1/signing"
  }
}
```

Every record has an `evidenceRef`, the place the record is kept as an `archive://` reference. A record that does not exist yet is `null`; the example above is a return that is signed.

| Record | Made by | Needs |
| --- | --- | --- |
| `generation` | The operations [generateReturn](https://declarations.rdcopilot.com/docs/api-reference/returns/#generate-return) and [regenerateReturn](https://declarations.rdcopilot.com/docs/api-reference/returns/#regenerate-return) | A period that is over |
| `validation` | The operation [validateReturn](https://declarations.rdcopilot.com/docs/api-reference/returns/#validate-return) | A generation record and no error finding |
| `signing` | The operation [signReturn](https://declarations.rdcopilot.com/docs/api-reference/evidence/#sign-return) | A validation record, a person who may sign and no error finding |

The example shows the three records of the VAT return of October. Its generation record was made from snapshot 1.
