Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Invoices

    Create, change, send and follow invoices and credit notes, and read their history.

    On this page

    List invoices

    GET /efactura/v1/invoices

    Returns the invoices and credit notes a company sent, newest first, in pages. list chooses the list: sent is every invoice sent from your software, errors those the authority rejected, whose outcome is unknown or that cannot be sent yet, and messages those a buyer wrote about.

    Parameters

    NameInTypeRequiredMeaning
    companyId query string (uuid) Yesrequired The company whose records you want. It is the id of a company of your account.
    list query string Nooptional Which list: sent, errors or messages. The default is sent. One of sent, errors, messages Default sent
    status query string Nooptional Only invoices with this status. One of draft, validated, authorized, queued, submitted, processing, accepted, rejected, manual_review
    issuedFrom query string (date) Nooptional Only invoices issued on or after this day.
    issuedTo query string (date) Nooptional Only invoices issued on or before this day.
    partnerCif query string Nooptional Only invoices of the partner with this tax identifier, written as on the invoice.
    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

    StatusMeaningBody
    200 A page of invoices. InvoicePage
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The company does not exist in your account. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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"]}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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")}/efactura/v1/invoices?companyId=c6a26b8c-3323-4e7a-8611-f5a92f5e1a42&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

    {
      "items": [
        {
          "id": "5081abd5-935d-4688-b961-0715c149fbd1",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "FCT-2026-00425",
          "type": "invoice",
          "direction": "sent",
          "partner": "Cofetăria Vălul Alb SRL",
          "partnerCif": "RO39172614",
          "issueDate": "2026-11-23",
          "dueDate": "2026-12-23",
          "reference": "CV-1048",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "FA-0010",
              "name": "White flour, 10 kg bag",
              "quantity": "12",
              "unitPrice": "38.90",
              "vatRate": "11",
              "net": "466.80"
            },
            {
              "code": "ZA-0201",
              "name": "Sugar, 1 kg",
              "quantity": "30",
              "unitPrice": "4.29",
              "vatRate": "11",
              "net": "128.70"
            }
          ],
          "net": "595.50",
          "vatBreakdown": [
            {
              "rate": "11",
              "base": "595.50",
              "vat": "65.51"
            }
          ],
          "vat": "65.51",
          "total": "661.01",
          "currency": "RON",
          "status": "draft",
          "uploadIndex": null,
          "revision": 1
        },
        {
          "id": "ab7f7203-2bf2-4131-8b1b-34041c1afe3d",
          "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
          "number": "FCT-2026-00424",
          "type": "invoice",
          "direction": "sent",
          "partner": "Market Trei Brazi SRL",
          "partnerCif": "39172851",
          "issueDate": "2026-11-23",
          "dueDate": "2026-12-23",
          "reference": "",
          "correctionOf": null,
          "creditOf": null,
          "lines": [
            {
              "code": "FA-0010",
              "name": "White flour, 10 kg bag",
              "quantity": "30",
              "unitPrice": "38.90",
              "vatRate": "11",
              "net": "1167.00"
            },
            {
              "code": "DT-0412",
              "name": "Dishwashing liquid, 5 l",
              "quantity": "8",
              "unitPrice": "23.47",
              "vatRate": "19",
              "net": "187.76"
            }
          ],
          "net": "1354.76",
          "vatBreakdown": [
            {
              "rate": "19",
              "base": "187.76",
              "vat": "35.67"
            },
            {
              "rate": "11",
              "base": "1167.00",
              "vat": "128.37"
            }
          ],
          "vat": "164.04",
          "total": "1518.80",
          "currency": "RON",
          "status": "draft",
          "uploadIndex": null,
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Create an invoice

    POST /efactura/v1/invoices

    Records an invoice or a credit note as a draft and runs the checks. The answer is the operation result; read the invoice with getInvoice once status is completed.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    companyId string (uuid) Yesrequired The company that sends the invoice.
    number string Yesrequired Number of the invoice.
    type string Yesrequired invoice or credit_note. One of invoice, credit_note
    partnerCif string Yesrequired The tax identifier of the buyer, with its country prefix.
    issueDate string (date) Yesrequired The day the invoice is issued.
    reference string Nooptional The buyer reference, for example the number of the purchase order.
    lines CreateInvoiceLine[] Yesrequired The lines of the invoice.
    lines[].code string Yesrequired Your code for the item. It names the line when you change its VAT rate.
    lines[].name string Yesrequired What is sold, as the buyer reads it.
    lines[].quantity string Yesrequired Quantity as a decimal string.
    lines[].unitPrice string Yesrequired Net unit price as a decimal string.
    lines[].vatRate string Yesrequired VAT rate of the line, in percent, as a decimal string.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. OperationResult
    400 The request cannot be read or breaks the contract: the JSON is malformed, a field is missing or unknown, or a type is wrong. fields names each one and says what is wrong with it. Error
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The company does not exist in your account. Error
    409 The operationId was already used with a different request. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
      "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "number": "FCT-2026-00425",
      "type": "invoice",
      "partnerCif": "RO39172614",
      "issueDate": "2026-11-23",
      "reference": "CV-1048",
      "lines": [
        {
          "code": "FA-0010",
          "name": "White flour, 10 kg bag",
          "quantity": "12",
          "unitPrice": "38.90",
          "vatRate": "11"
        },
        {
          "code": "ZA-0201",
          "name": "Sugar, 1 kg",
          "quantity": "30",
          "unitPrice": "4.29",
          "vatRate": "11"
        }
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
        "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
        "number": "FCT-2026-00425",
        "type": "invoice",
        "partnerCif": "RO39172614",
        "issueDate": "2026-11-23",
        "reference": "CV-1048",
        "lines": [
          {
            "code": "FA-0010",
            "name": "White flour, 10 kg bag",
            "quantity": "12",
            "unitPrice": "38.90",
            "vatRate": "11"
          },
          {
            "code": "ZA-0201",
            "name": "Sugar, 1 kg",
            "quantity": "30",
            "unitPrice": "4.29",
            "vatRate": "11"
          }
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '536fa351-86fd-4acf-b8e1-af4817d6617b',
            'companyId': 'c6a26b8c-3323-4e7a-8611-f5a92f5e1a42',
            'number': 'FCT-2026-00425',
            'type': 'invoice',
            'partnerCif': 'RO39172614',
            'issueDate': '2026-11-23',
            'reference': 'CV-1048',
            'lines': [
                {
                    'code': 'FA-0010',
                    'name': 'White flour, 10 kg bag',
                    'quantity': '12',
                    'unitPrice': '38.90',
                    'vatRate': '11',
                },
                {
                    'code': 'ZA-0201',
                    'name': 'Sugar, 1 kg',
                    'quantity': '30',
                    'unitPrice': '4.29',
                    'vatRate': '11',
                },
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
      "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "number": "FCT-2026-00425",
      "type": "invoice",
      "partnerCif": "RO39172614",
      "issueDate": "2026-11-23",
      "reference": "CV-1048",
      "lines": [
        {
          "code": "FA-0010",
          "name": "White flour, 10 kg bag",
          "quantity": "12",
          "unitPrice": "38.90",
          "vatRate": "11"
        },
        {
          "code": "ZA-0201",
          "name": "Sugar, 1 kg",
          "quantity": "30",
          "unitPrice": "4.29",
          "vatRate": "11"
        }
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices');
    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")}/efactura/v1/invoices");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
      "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "number": "FCT-2026-00425",
      "type": "invoice",
      "partnerCif": "RO39172614",
      "issueDate": "2026-11-23",
      "reference": "CV-1048",
      "lines": [
        {
          "code": "FA-0010",
          "name": "White flour, 10 kg bag",
          "quantity": "12",
          "unitPrice": "38.90",
          "vatRate": "11"
        },
        {
          "code": "ZA-0201",
          "name": "Sugar, 1 kg",
          "quantity": "30",
          "unitPrice": "4.29",
          "vatRate": "11"
        }
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
      "status": "accepted",
      "aggregateId": "5081abd5-935d-4688-b961-0715c149fbd1",
      "aggregateRevision": 1
    }

    Get an invoice

    GET /efactura/v1/invoices/{invoiceId}

    Returns an invoice, sent or received, with its lines and the VAT of each rate, at its current revision.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Responses

    StatusMeaningBody
    200 The invoice at its current revision. Invoice
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924`, {
      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"]}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924');
    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")}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924");
    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": "63b02302-55dc-4523-b584-c4eb55159924",
      "companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
      "number": "FCT-2026-00418",
      "type": "invoice",
      "direction": "sent",
      "partner": "Hanul Ozana SRL",
      "partnerCif": "RO39172541",
      "issueDate": "2026-11-19",
      "dueDate": "2026-12-19",
      "reference": "CV-1042",
      "correctionOf": null,
      "creditOf": null,
      "lines": [
        {
          "code": "FA-0010",
          "name": "White flour, 10 kg bag",
          "quantity": "24",
          "unitPrice": "38.90",
          "vatRate": "11",
          "net": "933.60"
        },
        {
          "code": "UL-0101",
          "name": "Sunflower oil, 1 l",
          "quantity": "60",
          "unitPrice": "7.84",
          "vatRate": "11",
          "net": "470.40"
        },
        {
          "code": "ZA-0201",
          "name": "Sugar, 1 kg",
          "quantity": "80",
          "unitPrice": "4.29",
          "vatRate": "11",
          "net": "343.20"
        },
        {
          "code": "LA-0307",
          "name": "Cheese, 400 g",
          "quantity": "36",
          "unitPrice": "18.65",
          "vatRate": "11",
          "net": "671.40"
        },
        {
          "code": "DT-0412",
          "name": "Dishwashing liquid, 5 l",
          "quantity": "12",
          "unitPrice": "23.47",
          "vatRate": "21",
          "net": "281.64"
        },
        {
          "code": "AM-0518",
          "name": "Paper bags, pack of 100",
          "quantity": "9",
          "unitPrice": "13.13",
          "vatRate": "21",
          "net": "118.17"
        }
      ],
      "net": "2818.41",
      "vatBreakdown": [
        {
          "rate": "21",
          "base": "399.81",
          "vat": "83.96"
        },
        {
          "rate": "11",
          "base": "2418.60",
          "vat": "266.05"
        }
      ],
      "vat": "350.01",
      "total": "3168.42",
      "currency": "RON",
      "status": "accepted",
      "uploadIndex": "5012480131",
      "revision": 7
    }

    Change a draft

    PATCH /efactura/v1/invoices/{invoiceId}

    Changes the buyer identifier or the VAT rate of lines of a draft, then runs the checks again. Only a draft can be changed; the revision grows with every accepted change.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.
    partnerCif string Nooptional The tax identifier of the buyer, with its country prefix.
    lines object[] Nooptional The lines whose VAT rate changes, each named by its code.
    lines[].code string Yesrequired The code of a line of the invoice.
    lines[].vatRate string Yesrequired The new VAT rate, in percent.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. OperationResult
    400 The request cannot be read or breaks the contract: the JSON is malformed, a field is missing or unknown, or a type is wrong. fields names each one and says what is wrong with it. Error
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. Error
    422 invalid_vat_rate: That is not a VAT rate an invoice may carry. no_such_line: The invoice has no line with this code. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X PATCH "$RDC_BASE_URL/efactura/v1/invoices/ab7f7203-2bf2-4131-8b1b-34041c1afe3d" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "b2204d35-a1cb-40ef-b3b2-c4578dc20574",
      "expectedRevision": 1,
      "partnerCif": "RO39172851",
      "lines": [
        {
          "code": "DT-0412",
          "vatRate": "21"
        }
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/ab7f7203-2bf2-4131-8b1b-34041c1afe3d`, {
      method: 'PATCH',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "b2204d35-a1cb-40ef-b3b2-c4578dc20574",
        "expectedRevision": 1,
        "partnerCif": "RO39172851",
        "lines": [
          {
            "code": "DT-0412",
            "vatRate": "21"
          }
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'PATCH',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/ab7f7203-2bf2-4131-8b1b-34041c1afe3d',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'b2204d35-a1cb-40ef-b3b2-c4578dc20574',
            'expectedRevision': 1,
            'partnerCif': 'RO39172851',
            'lines': [
                {
                    'code': 'DT-0412',
                    'vatRate': '21',
                },
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "b2204d35-a1cb-40ef-b3b2-c4578dc20574",
      "expectedRevision": 1,
      "partnerCif": "RO39172851",
      "lines": [
        {
          "code": "DT-0412",
          "vatRate": "21"
        }
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/ab7f7203-2bf2-4131-8b1b-34041c1afe3d');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'PATCH',
        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.Patch, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/efactura/v1/invoices/ab7f7203-2bf2-4131-8b1b-34041c1afe3d");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "b2204d35-a1cb-40ef-b3b2-c4578dc20574",
      "expectedRevision": 1,
      "partnerCif": "RO39172851",
      "lines": [
        {
          "code": "DT-0412",
          "vatRate": "21"
        }
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "b2204d35-a1cb-40ef-b3b2-c4578dc20574",
      "status": "accepted",
      "aggregateId": "ab7f7203-2bf2-4131-8b1b-34041c1afe3d",
      "aggregateRevision": 2
    }

    Send an invoice

    POST /efactura/v1/invoices/{invoiceId}/send

    Passes a draft through validated, authorized and queued and uploads it. The request is refused with 422 while a check blocks and with 409 when expectedRevision is not the current revision or the authorisation of the company is not in force.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.

    Responses

    StatusMeaningBody
    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, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. authorisation_not_in_force: The authorisation of the company is not in force. Nothing was sent. Error
    422 A blocking check still fails. Nothing was sent and the invoice stays a draft. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/5081abd5-935d-4688-b961-0715c149fbd1/send" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "138774d1-e683-4558-a364-ae838d082f9a",
      "expectedRevision": 1
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/5081abd5-935d-4688-b961-0715c149fbd1/send`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "138774d1-e683-4558-a364-ae838d082f9a",
        "expectedRevision": 1
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/5081abd5-935d-4688-b961-0715c149fbd1/send',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '138774d1-e683-4558-a364-ae838d082f9a',
            'expectedRevision': 1,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "138774d1-e683-4558-a364-ae838d082f9a",
      "expectedRevision": 1
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/5081abd5-935d-4688-b961-0715c149fbd1/send');
    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")}/efactura/v1/invoices/5081abd5-935d-4688-b961-0715c149fbd1/send");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "138774d1-e683-4558-a364-ae838d082f9a",
      "expectedRevision": 1
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "138774d1-e683-4558-a364-ae838d082f9a",
      "status": "accepted",
      "aggregateId": "5081abd5-935d-4688-b961-0715c149fbd1",
      "aggregateRevision": 2
    }

    Send an invoice again

    POST /efactura/v1/invoices/{invoiceId}/resend

    Queues an invoice whose status is manual_review again and uploads it. Use it after you have checked that the authority did not receive the file.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.

    Responses

    StatusMeaningBody
    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, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. authorisation_not_in_force: The authorisation of the company is not in force. Nothing was sent. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/9b75cd3f-17be-4470-810d-511167d22575/resend" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f6771348-1d54-4dd9-90fb-feb42fc4ec7c",
      "expectedRevision": 5
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/9b75cd3f-17be-4470-810d-511167d22575/resend`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "f6771348-1d54-4dd9-90fb-feb42fc4ec7c",
        "expectedRevision": 5
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/9b75cd3f-17be-4470-810d-511167d22575/resend',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'f6771348-1d54-4dd9-90fb-feb42fc4ec7c',
            'expectedRevision': 5,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f6771348-1d54-4dd9-90fb-feb42fc4ec7c",
      "expectedRevision": 5
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/9b75cd3f-17be-4470-810d-511167d22575/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")}/efactura/v1/invoices/9b75cd3f-17be-4470-810d-511167d22575/resend");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f6771348-1d54-4dd9-90fb-feb42fc4ec7c",
      "expectedRevision": 5
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "f6771348-1d54-4dd9-90fb-feb42fc4ec7c",
      "status": "accepted",
      "aggregateId": "9b75cd3f-17be-4470-810d-511167d22575",
      "aggregateRevision": 6
    }

    Ask the authority now

    POST /efactura/v1/invoices/{invoiceId}/refresh

    Reads the answer of the authority now, for an invoice whose status is submitted or processing, without waiting for the event.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.

    Responses

    StatusMeaningBody
    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, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73/refresh" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "137f14e2-38b7-430a-a716-be7e3c75f564",
      "expectedRevision": 6
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73/refresh`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "137f14e2-38b7-430a-a716-be7e3c75f564",
        "expectedRevision": 6
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73/refresh',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '137f14e2-38b7-430a-a716-be7e3c75f564',
            'expectedRevision': 6,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "137f14e2-38b7-430a-a716-be7e3c75f564",
      "expectedRevision": 6
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73/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")}/efactura/v1/invoices/0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73/refresh");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "137f14e2-38b7-430a-a716-be7e3c75f564",
      "expectedRevision": 6
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "137f14e2-38b7-430a-a716-be7e3c75f564",
      "status": "accepted",
      "aggregateId": "0fd9e3fe-3800-4b8b-9b55-c5cb45eddc73",
      "aggregateRevision": 7
    }

    Create a correction

    POST /efactura/v1/invoices/{invoiceId}/correction

    Creates a new draft from an invoice the authority rejected. The new invoice has its own number, today’s issue date and correctionOf set to the number of the rejected one. The rejected invoice does not change.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.

    Responses

    StatusMeaningBody
    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, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. already_corrected: A correction of this invoice already exists. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
      "expectedRevision": 7
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
        "expectedRevision": 7
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'a1367765-b7a2-4d88-be3b-0ab14849c713',
            'expectedRevision': 7,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
      "expectedRevision": 7
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction');
    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")}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
      "expectedRevision": 7
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
      "status": "accepted",
      "aggregateId": "1f35d06f-5f09-4cbb-a834-1feaa6ac845e",
      "aggregateRevision": 1
    }

    Create a credit note

    POST /efactura/v1/invoices/{invoiceId}/credit-note

    Creates a draft credit note from an accepted invoice, with the same lines and creditOf set to the number of the invoice. An invoice has one credit note this way.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.

    Request body

    FieldTypeRequiredMeaning
    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 invoice you read.

    Responses

    StatusMeaningBody
    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, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    409 revision_conflict: The invoice changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. invalid_status: The invoice is not in a status that allows this. already_credited: A credit note for this invoice already exists. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/credit-note" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "ab8f039a-fede-44e0-99eb-bbe91168a40d",
      "expectedRevision": 7
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/credit-note`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "ab8f039a-fede-44e0-99eb-bbe91168a40d",
        "expectedRevision": 7
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/credit-note',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'ab8f039a-fede-44e0-99eb-bbe91168a40d',
            'expectedRevision': 7,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "ab8f039a-fede-44e0-99eb-bbe91168a40d",
      "expectedRevision": 7
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/credit-note');
    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")}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/credit-note");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "ab8f039a-fede-44e0-99eb-bbe91168a40d",
      "expectedRevision": 7
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "ab8f039a-fede-44e0-99eb-bbe91168a40d",
      "status": "accepted",
      "aggregateId": "1f35d06f-5f09-4cbb-a834-1feaa6ac845e",
      "aggregateRevision": 1
    }

    List the history of an invoice

    GET /efactura/v1/invoices/{invoiceId}/history

    Returns every status the invoice went through, oldest first, with the time, the upload index and, for rejected, the message of the authority exactly as the authority wrote it.

    Parameters

    NameInTypeRequiredMeaning
    invoiceId path string (uuid) Yesrequired The invoice.
    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

    StatusMeaningBody
    200 A page of history entries. HistoryPage
    401 The token is missing, has expired or is not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The invoice does not exist in your account. Error
    429 There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. Error
    503 The gateway cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/history?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/history?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"]}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/history?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/history?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")}/efactura/v1/invoices/63b02302-55dc-4523-b584-c4eb55159924/history?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

    {
      "items": [
        {
          "status": "draft",
          "at": "2026-11-19T14:31:00Z"
        },
        {
          "status": "validated",
          "at": "2026-11-19T14:31:02Z"
        },
        {
          "status": "authorized",
          "at": "2026-11-19T14:31:03Z"
        },
        {
          "status": "queued",
          "at": "2026-11-19T14:31:04Z"
        },
        {
          "status": "submitted",
          "at": "2026-11-19T14:31:09Z",
          "uploadIndex": "5012480131"
        },
        {
          "status": "processing",
          "at": "2026-11-19T14:33:10Z"
        },
        {
          "status": "accepted",
          "at": "2026-11-19T14:37:40Z"
        }
      ],
      "nextCursor": null
    }