Submissions
File an approved return, follow the answer of the authority and send it again when the outcome is unknown.
On this page
File a return
POST /declarations/v1/returns/{returnId}/submission
Files an authorized return with the authority. The return passes queued, takes the upload index the authority gives and becomes submitted. It is refused while an error finding remains.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
returnId | path | string (uuid) | Yesrequired | The return. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
expectedRevision | integer | Yesrequired | The revision of the return you read. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. | OperationResult |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The return does not exist in your account. | Error |
409 | revision_conflict: The return changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The return is not in a status that allows this. | Error |
422 | The return has an error finding. It cannot be signed, approved or filed while one remains. Nothing was changed. | 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
curl -X POST "$RDC_BASE_URL/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "800ebcec-00c4-4bf8-af9b-5019046edc00",
"expectedRevision": 5
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "800ebcec-00c4-4bf8-af9b-5019046edc00",
"expectedRevision": 5
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '800ebcec-00c4-4bf8-af9b-5019046edc00',
'expectedRevision': 5,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "800ebcec-00c4-4bf8-af9b-5019046edc00",
"expectedRevision": 5
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "800ebcec-00c4-4bf8-af9b-5019046edc00",
"expectedRevision": 5
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "800ebcec-00c4-4bf8-af9b-5019046edc00",
"status": "accepted",
"aggregateId": "6e1e206c-d65e-48d6-8fa8-628da226d100",
"aggregateRevision": 6
} Send a return again
POST /declarations/v1/returns/{returnId}/submission/resend
Queues and uploads a return in manual_review, whose outcome was not known. The return takes the next upload index.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
returnId | path | string (uuid) | Yesrequired | The return. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
expectedRevision | integer | Yesrequired | The revision of the return you read. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. | OperationResult |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The return does not exist in your account. | Error |
409 | revision_conflict: The return changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The return is not in a status that allows this. | 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
curl -X POST "$RDC_BASE_URL/declarations/v1/returns/e0a7f7b8-c7cd-46bc-9053-95e250975d06/submission/resend" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "b083c6be-6a99-487b-ae79-e047223782a3",
"expectedRevision": 7
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/returns/e0a7f7b8-c7cd-46bc-9053-95e250975d06/submission/resend`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "b083c6be-6a99-487b-ae79-e047223782a3",
"expectedRevision": 7
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/declarations/v1/returns/e0a7f7b8-c7cd-46bc-9053-95e250975d06/submission/resend',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'b083c6be-6a99-487b-ae79-e047223782a3',
'expectedRevision': 7,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "b083c6be-6a99-487b-ae79-e047223782a3",
"expectedRevision": 7
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/returns/e0a7f7b8-c7cd-46bc-9053-95e250975d06/submission/resend');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/declarations/v1/returns/e0a7f7b8-c7cd-46bc-9053-95e250975d06/submission/resend");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "b083c6be-6a99-487b-ae79-e047223782a3",
"expectedRevision": 7
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "b083c6be-6a99-487b-ae79-e047223782a3",
"status": "accepted",
"aggregateId": "e0a7f7b8-c7cd-46bc-9053-95e250975d06",
"aggregateRevision": 8
} Ask for the answer of the authority
POST /declarations/v1/returns/{returnId}/submission/refresh
Asks the authority where the upload stands. A submitted return becomes processing (în prelucrare); a processing one becomes accepted (ok) or rejected (nok). The first answer arrives as an event as well.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
returnId | path | string (uuid) | Yesrequired | The return. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
expectedRevision | integer | Yesrequired | The revision of the return you read. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. | OperationResult |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The return does not exist in your account. | Error |
409 | revision_conflict: The return changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The return is not in a status that allows this. | 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
curl -X POST "$RDC_BASE_URL/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission/refresh" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "f7f97d0a-f0e5-4a45-a412-8a71910acd77",
"expectedRevision": 6
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission/refresh`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "f7f97d0a-f0e5-4a45-a412-8a71910acd77",
"expectedRevision": 6
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission/refresh',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'f7f97d0a-f0e5-4a45-a412-8a71910acd77',
'expectedRevision': 6,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "f7f97d0a-f0e5-4a45-a412-8a71910acd77",
"expectedRevision": 6
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission/refresh');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/declarations/v1/returns/6e1e206c-d65e-48d6-8fa8-628da226d100/submission/refresh");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "f7f97d0a-f0e5-4a45-a412-8a71910acd77",
"expectedRevision": 6
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "f7f97d0a-f0e5-4a45-a412-8a71910acd77",
"status": "accepted",
"aggregateId": "6e1e206c-d65e-48d6-8fa8-628da226d100",
"aggregateRevision": 7
} List submissions
GET /declarations/v1/submissions
Returns every upload of a company, newest first: the upload index, the time, the answer and the receipt. A correction is a new upload; the first one stays in the list.
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. |
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 submissions. | SubmissionPage |
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
curl "$RDC_BASE_URL/declarations/v1/submissions?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/submissions?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/submissions?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/submissions?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/submissions?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
{
"items": [
{
"id": "030db800-1510-4750-b33c-f574a878c0c8",
"returnId": "6e95eb18-450e-4cca-8671-f3edaaa04d8d",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D394",
"period": "2026-10",
"version": 1,
"uploadIndex": "5013480209",
"submittedAt": "2026-11-20T09:01:00Z",
"status": "rejected",
"answeredAt": "2026-11-20T09:07:40Z",
"message": "Codul de identificare fiscală al partenerului nu a fost găsit în registrul contribuabililor.",
"receiptId": null
},
{
"id": "77a39eaf-1bcd-4530-98a7-5b776bd2d224",
"returnId": "2117dae0-ce0b-4500-afc9-54af48b708e9",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D406",
"period": "2026-09",
"version": 1,
"uploadIndex": "5013480144",
"submittedAt": "2026-10-27T11:51:00Z",
"status": "accepted",
"answeredAt": "2026-10-27T11:57:40Z",
"message": null,
"receiptId": "4c6b9d25-68e1-46a6-99f9-e4993a807e40"
},
{
"id": "4a9bfb0a-2b07-4b7c-a2e5-8e3505bfd295",
"returnId": "8ced2143-3296-4997-b27b-4ee93ec13aa1",
"companyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"form": "D394",
"period": "2026-09",
"version": 1,
"uploadIndex": "5013480131",
"submittedAt": "2026-10-26T10:36:00Z",
"status": "accepted",
"answeredAt": "2026-10-26T10:42:40Z",
"message": null,
"receiptId": "679a8b44-d1c2-4923-af39-08aec3adbd25"
}
],
"nextCursor": null
} Get a submission
GET /declarations/v1/submissions/{submissionId}
Returns one upload with the answer of the authority. A rejected one carries the message the authority returned, unchanged.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
submissionId | path | string (uuid) | Yesrequired | The submission. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | The submission. | Submission |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The return has not been filed. | 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
curl "$RDC_BASE_URL/declarations/v1/submissions/e368d9bf-b37c-4987-979b-0e7d66d6acef" \
-H "Authorization: Bearer $RDC_TOKEN" 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
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
$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#
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
{
"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"
}