# Invoice
## Properties
| Name | Type | Description | Notes |
| --------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **id** | Option<**i32**> | The ID of the invoice. | [optional] |
| **invoice_number** | Option<**String**> | The invoice number. | [optional] |
| **relation_id** | Option<**i32**> | The ID of a relation. | [optional] |
| **date** | Option<[**serde_json::Value**](.md)> | Invoice date. | [optional] |
| **reference** | Option<**String**> | Reference of the invoice. | [optional] |
| **text** | Option<**String**> | Text of the invoice. | [optional] |
| **term_of_payment** | Option<**i32**> | Term of payment from the invoice date, in days. | [optional] |
| **in_ex_vat** | Option<**String**> | Indicates if the price per unit of the sub items on the invoice is including (`IN`) or excluding (`EX`) VAT.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#FACT_010\">FACT_010</a></td><td>Invoice VAT must be IN or EX.</td></table></div> | [optional] |
| **template_id** | Option<**i32**> | The ID of an invoice template. | [optional] |
| **email_template_id** | Option<**i32**> | The ID of an email template. | [optional] |
| **total_excl** | Option<**f64**> | The invoice amount, excluding VAT. | [optional] |
| **total_amount** | Option<**f64**> | The invoice amount, including VAT. | [optional] |
| **vat_amount** | Option<**f64**> | The VAT amount. | [optional] |
| **url_pdf_file** | Option<**String**> | A shareable url to download the invoice as a PDF file. | [optional] |
| **items** | Option<[**Vec<models::InvoiceItem>**](InvoiceItem.md)> | At least one invoice item is required. | [optional] |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)