---
title: "Obligations | Docs | Tax Filing by R&D Copilot"
description: "The companies of your account and the returns each of them files, period by period, with the due date."
canonical: "https://declarations.rdcopilot.com/docs/api-reference/obligations/"
language: en
updated: 2026-11-22
---

# Obligations

The companies of your account and the returns each of them files, period by period, with the due date.

## List companies

GET `/declarations/v1/companies`

Returns the companies of your account in pages. Each company carries its VAT period and its event endpoint.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `limit` | query | `integer` | Nooptional | Records per page, from 1 to 500. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | The `nextCursor` of the previous page. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | A page of companies. | `CompanyPage` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `429` | Too many requests. `Retry-After` gives the seconds to wait; the request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/companies?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/companies?limit=20`, {
  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/companies?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/companies?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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/declarations/v1/companies?limit=20");
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

```json
{
  "items": [
    {
      "id": "a79a302d-e7f0-4fde-9086-48c003b9709a",
      "name": "Brumar Distribuție SRL",
      "cif": "48290619",
      "vatId": "RO48290619",
      "vatPeriod": "month",
      "endpoint": {
        "host": "erp.brumar.example",
        "status": "healthy",
        "http": 200
      },
      "revision": 1
    },
    {
      "id": "e5860f91-2f25-4d40-bafd-2c0211d184fa",
      "name": "Brumar Retail SRL",
      "cif": "48290783",
      "vatId": "RO48290783",
      "vatPeriod": "month",
      "endpoint": {
        "host": "pos.brumar.example",
        "status": "failing",
        "http": 503
      },
      "revision": 1
    }
  ],
  "nextCursor": null
}
```

## Get a company

GET `/declarations/v1/companies/{companyId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `companyId` | path | `string (uuid)` | Yesrequired | The company. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The company. | `Company` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The company does not exist in your account. | `Error` |
| `429` | Too many requests. `Retry-After` gives the seconds to wait; the request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/companies/a79a302d-e7f0-4fde-9086-48c003b9709a" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/companies/a79a302d-e7f0-4fde-9086-48c003b9709a`, {
  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/companies/a79a302d-e7f0-4fde-9086-48c003b9709a',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/companies/a79a302d-e7f0-4fde-9086-48c003b9709a');
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/companies/a79a302d-e7f0-4fde-9086-48c003b9709a");
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

```json
{
  "id": "a79a302d-e7f0-4fde-9086-48c003b9709a",
  "name": "Brumar Distribuție SRL",
  "cif": "48290619",
  "vatId": "RO48290619",
  "vatPeriod": "month",
  "endpoint": {
    "host": "erp.brumar.example",
    "status": "healthy",
    "http": 200
  },
  "revision": 1
}
```

## List obligations

GET `/declarations/v1/obligations`

Returns what the company files, one entry for each form and period, ordered by due date, with the status of the newest version of its return.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `companyId` | query | `string (uuid)` | Yesrequired | The company whose records you want. It is the `id` of a company of your account. |
| `form` | query | `string` | Nooptional | Only returns of this form. One of `D300`, `D390`, `D394`, `D406` |
| `period` | query | `string` | Nooptional | Only this period, as `YYYY-MM`. |
| `status` | query | `string` | Nooptional | Only returns in this status. One of `draft`, `generated`, `validated`, `signed`, `authorized`, `queued`, `submitted`, `processing`, `accepted`, `rejected`, `manual_review` |
| `limit` | query | `integer` | Nooptional | Records per page, from 1 to 500. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | The `nextCursor` of the previous page. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | A page of obligations. | `ObligationPage` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The company does not exist in your account. | `Error` |
| `429` | Too many requests. `Retry-After` gives the seconds to wait; the request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/obligations?companyId=a79a302d-e7f0-4fde-9086-48c003b9709a&limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```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

```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
<?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#

```csharp
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();
```

### Response `200`

JSON

```json
{
  "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
}
```

## Get an obligation

GET `/declarations/v1/obligations/{obligationId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `obligationId` | path | `string (uuid)` | Yesrequired | The obligation. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The obligation. | `Obligation` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The obligation does not exist in your account. | `Error` |
| `429` | Too many requests. `Retry-After` gives the seconds to wait; the request was not processed. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/declarations/v1/obligations/254fd08e-0d65-4719-9e6f-a7d07db2a448" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/obligations/254fd08e-0d65-4719-9e6f-a7d07db2a448`, {
  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/obligations/254fd08e-0d65-4719-9e6f-a7d07db2a448',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/obligations/254fd08e-0d65-4719-9e6f-a7d07db2a448');
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/obligations/254fd08e-0d65-4719-9e6f-a7d07db2a448");
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

```json
{
  "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
}
```
