Companies and obligations
A company files a return for each form and period. That pair is an obligation, and it has a due date.
On this page
One account holds many companies. Each company has a tax code and a VAT period; a company whose VAT period is the calendar month files monthly. The API reads companies with listCompanies and getCompany.
The obligation
An obligation is one company, one form and one period. It exists before anything is built and carries the due date and the status of the newest version of its return. listObligations returns them ordered by due date, so the first entry is the one that is due first.
| Form | Return | Reporting period | File by |
|---|---|---|---|
D300 | VAT return | The VAT fiscal period of the company | The 25th of the following month |
D390 | Recapitulative statement of operations with other member states | Each calendar month in which the VAT becomes chargeable | The 25th of the following month |
D394 | Informative return on supplies and acquisitions | The VAT fiscal period declared in the VAT return | The 30th of the month after the period |
D406 | SAF-T return | Monthly or quarterly, following the VAT fiscal period | The last day of the month after the period |
Periods and due dates explains how the day is moved when it is not a working day.
Versions of an obligation
The first return of an obligation is version 1. When the authority has answered, a correction is version 2, and an obligation with a correction lists both: the versions field counts them and currentReturnId is the newest. See Corrections.
curl
curl "$RDC_BASE_URL/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "254fd08e-0d65-4719-9e6f-a7d07db2a448",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D300",
"period": "2026-10",
"dueDate": "2026-11-25",
"status": "signed",
"currentReturnId": "3b559a77-5de4-4b9a-9e2e-ca6625d123f2",
"versions": 1
},
{
"id": "2931b99e-afe1-44b0-8031-8ff16466c5b9",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D390",
"period": "2026-10",
"dueDate": "2026-11-25",
"status": "generated",
"currentReturnId": "d595ff94-75e0-4dbf-8663-f53351cb08ae",
"versions": 1
},
{
"id": "43553e25-0119-4430-98ab-3fa7a9af0a50",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D394",
"period": "2026-10",
"dueDate": "2026-12-02",
"status": "rejected",
"currentReturnId": "6e95eb18-450e-4cca-8671-f3edaaa04d8d",
"versions": 1
},
{
"id": "5b37c7a3-d395-4aff-9e1c-db383b74e36d",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D406",
"period": "2026-10",
"dueDate": "2026-12-02",
"status": "authorized",
"currentReturnId": "6e1e206c-d65e-48d6-8fa8-628da226d100",
"versions": 1
}
],
"nextCursor": null
}