---
title: "Receipts | Docs | Tax Filing by R&D Copilot"
description: "What the authority returns for a filed return, what the product stores, and how a rejection is kept."
canonical: "https://declarations.rdcopilot.com/docs/concepts/receipts/"
language: en
updated: 2026-11-22
---

# Receipts

What the authority returns for a filed return, what the product stores, and how a rejection is kept.

When a return is filed, the authority gives the upload an index. For the SAF-T return the authority shows the upload index and returns a receipt file, a recipisă, with the results of processing. The product keeps what the authority returns for every form in the same way and calls it the receipt.

## A submission

Each upload is a submission with its upload index, the time, the status and the answer. A return that is corrected and filed again has two submissions, and both stay in [listSubmissions](https://declarations.rdcopilot.com/docs/api-reference/submissions/#list-submissions): a new upload never replaces the one before it.

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef`, {
  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/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef');
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/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef");
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
{
  "id": "e368d9bf-b37c-4987-979b-0e7d66d6acef",
  "returnId": "bffa5db8-996e-4309-a693-d91075904265",
  "companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
  "form": "D300",
  "period": "2026-09",
  "version": 1,
  "uploadIndex": "5013480112",
  "submittedAt": "2026-10-22T09:41:00Z",
  "status": "accepted",
  "answeredAt": "2026-10-22T09:47:40Z",
  "message": null,
  "receiptId": "c7170b80-c031-4d62-8818-7d4be2223cdf"
}
```

## A receipt

An accepted return has a receipt: the name of the file, the upload index it answers, its type and the SHA-256 of the stored file. A return that was rejected or is still being processed has none, and [getReceipt](https://declarations.rdcopilot.com/docs/api-reference/receipts/#get-receipt) answers `receipt_not_found`.

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/receipts/c7170b80-c031-4d62-8818-7d4be2223cdf" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/receipts/c7170b80-c031-4d62-8818-7d4be2223cdf`, {
  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/receipts/c7170b80-c031-4d62-8818-7d4be2223cdf',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/receipts/c7170b80-c031-4d62-8818-7d4be2223cdf');
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/receipts/c7170b80-c031-4d62-8818-7d4be2223cdf");
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
{
  "id": "c7170b80-c031-4d62-8818-7d4be2223cdf",
  "returnId": "bffa5db8-996e-4309-a693-d91075904265",
  "submissionId": "e368d9bf-b37c-4987-979b-0e7d66d6acef",
  "uploadIndex": "5013480112",
  "name": "recipisa-D300-2026-09-v1.pdf",
  "contentType": "application/pdf",
  "sha256": "34aae118094190a91f9948cb3bee8a0e14d9ffc82d5796c69e32f7659f0cdf6b",
  "storedAt": "2026-10-22T09:47:40Z"
}
```

## A rejection

A rejected return keeps the message of the authority, unchanged and in the authority’s language, in `message` of the submission and in its history. The return stays as it was, and the correction is a new version: [Corrections](https://declarations.rdcopilot.com/docs/concepts/corrections/).
