---
title: "The invoice object | Docs | e-Factura Gateway by R&D Copilot"
description: "The fields of an invoice, how its amounts add up and which of them you send and which the gateway fills."
canonical: "https://efactura.rdcopilot.com/docs/send/the-invoice-object/"
language: en
updated: 2026-11-22
---

# The invoice object

The fields of an invoice, how its amounts add up and which of them you send and which the gateway fills.

One object describes every invoice, sent or received, and a credit note is an invoice with another `type`. The open invoice in the product shows the same fields. Amounts are decimal strings with two decimals, never JSON numbers.

An accepted invoice

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

## Who and what

| Field | Meaning |
| --- | --- |
| `id` | Identifier of the invoice. Use it in every request about the invoice. |
| `companyId` | The company the invoice belongs to. |
| `number` | The number of the invoice, from your series. |
| `type` | `invoice` or `credit_note`. |
| `direction` | `sent` for an invoice the company sent, `received` for one a supplier sent to it. |
| `partner` | The buyer of a sent invoice, the supplier of a received one. |
| `partnerCif` | The tax identifier of the partner as printed on the invoice. For a buyer it carries the country prefix, for example `RO`. |
| `reference` | The buyer reference, for example the number of the purchase order. It is empty when there is none. A check warns when a sent invoice has none. |
| `correctionOf` | The number of the rejected invoice this one corrects, or `null`. See [Corrections](https://efactura.rdcopilot.com/docs/send/corrections/). |
| `creditOf` | The number of the invoice this credit note credits, or `null`. See [Invoices and credit notes](https://efactura.rdcopilot.com/docs/send/invoices-and-credit-notes/). |

## Lines, VAT and totals

Each line has a `code`, a `name`, a `quantity`, a net `unitPrice` and a `vatRate`; the gateway adds its `net` amount, which is the quantity times the unit price. `vatBreakdown` has one row for each rate that has a base: the base, the rate and the VAT, which is the base times the rate rounded to the nearest 0.01, halves up.

-   `net` is the sum of the `net` of the lines.
-   `vat` is the sum of the `vat` of the rows of `vatBreakdown`.
-   `total` is `net` plus `vat`.

The standard VAT rate in Romania is 21%. The reduced VAT rate in Romania is 11%. The 21% and 11% VAT rates apply from 1 August 2025. A line with a rate that is not in force fails a blocking check. See [Validation rules catalogue](https://efactura.rdcopilot.com/docs/statuses-and-errors/validation-rules/).

## State

| Field | Meaning |
| --- | --- |
| `status` | Where the invoice is in its lifecycle. See [Lifecycle and statuses](https://efactura.rdcopilot.com/docs/statuses-and-errors/lifecycle-and-statuses/). |
| `uploadIndex` | The index the authority returned for the upload; for a received invoice, the identifier of its download. `null` before. |
| `revision` | Grows with every accepted change. Send it as `expectedRevision` when you change the invoice. |

curl

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

JavaScript

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

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

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