---
title: "Return types and versions | Docs | Tax Filing by R&D Copilot"
description: "The four forms, what their rows hold, and how a return moves from draft to the answer of the authority."
canonical: "https://declarations.rdcopilot.com/docs/concepts/return-types-and-versions/"
language: en
updated: 2026-11-22
---

# Return types and versions

The four forms, what their rows hold, and how a return moves from draft to the answer of the authority.

## The four forms

Every row of a return is a sum of ledger postings, and every row says which balances it came from in its `from` field. A row never holds a number that someone typed.

| Form | What its rows hold |
| --- | --- |
| `D300` | Supplies by VAT rate, acquisitions from other member states, domestic purchases by rate, then the totals: VAT collected (row 19), VAT deductible (row 30), VAT deducted (row 35), the negative amount (row 36) and the VAT payable (row 37). `amountToPay` and `amountToRecover` of the return are the last two. |
| `D390` | One row for each partner in another member state, with the base of the acquisitions, and the total. |
| `D394` | One row for each partner, direction and VAT rate, with the tax code of the partner as the ledger holds it, the base, the VAT and the number of documents, then the totals of supplies and of acquisitions. |
| `D406` | The control totals of the ledger: entries, lines, total debit, total credit, the number of sales and purchase documents, customers and suppliers. |

Read the rows with [listRows](https://declarations.rdcopilot.com/docs/api-reference/returns/#list-rows). Rows that carry the number of a row of the printed form have it in `ref`.

## From draft to the answer

A return moves one step at a time. Each step is an operation that refuses when the return is not where it should be.

| From | Operation | To |
| --- | --- | --- |
| `draft` | `[generateReturn](/docs/api-reference/returns/#generate-return)` | `generated` |
| `generated` | `[validateReturn](/docs/api-reference/returns/#validate-return)` | `validated` |
| `generated, validated, signed` | `[regenerateReturn](/docs/api-reference/returns/#regenerate-return)` | `generated` |
| `validated` | `[signReturn](/docs/api-reference/evidence/#sign-return)` | `signed` |
| `signed` | `[approveReturn](/docs/api-reference/approvals/#approve-return)` | `authorized` |
| `authorized` | `[fileReturn](/docs/api-reference/submissions/#file-return)` | `submitted` |
| `manual_review` | `[resendSubmission](/docs/api-reference/submissions/#resend-submission)` | `submitted` |
| `submitted, processing` | `[refreshSubmission](/docs/api-reference/submissions/#refresh-submission)` | `processing, accepted, rejected` |
| `accepted, rejected` | `[correctReturn](/docs/api-reference/returns/#correct-return)` | `a new version, draft` |

Validation that finds an error leaves the return `generated` and writes the run to its history. Signing, approving and filing read the findings again, because the other forms of the period may have been rebuilt since the return was validated.

## Versions

Every return has a `version`. Version 1 is the first. A correction is the next number and points back to the one it corrects in `supersedes`; neither is ever overwritten. A return in `accepted` or `rejected` is final.

curl

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

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/returns/3b559a77-5de4-4b9a-9e2e-ca6625d123f2`, {
  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',
    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');
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");
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": "3b559a77-5de4-4b9a-9e2e-ca6625d123f2",
  "obligationId": "254fd08e-0d65-4719-9e6f-a7d07db2a448",
  "companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
  "form": "D300",
  "period": "2026-10",
  "version": 1,
  "status": "signed",
  "owner": {
    "id": "adacf598-0e46-4866-a3c6-ba0234ecacc4",
    "name": "Ioana Marin",
    "role": "Chief accountant"
  },
  "dueDate": "2026-11-25",
  "snapshot": 1,
  "amountToPay": "975.02",
  "amountToRecover": "0.00",
  "currency": "RON",
  "supersedes": null,
  "approval": null,
  "uploadIndex": null,
  "revision": 4
}
```
