SaleInvoice — sales invoice
Fields
| Field | Type | Required | Description |
|---|---|---|---|
Id | integer | (auto) | |
Number | string | (auto) | FAC-NNNNNN |
Series | string | no | Default FAC |
Date | date | no | |
PartnerId | integer | yes | |
Currency | string | no | |
TotalValue | number | (computed) | |
IsStorno | boolean | (read) | true if it is a reversal |
Lines | array | yes | At least one line |
JSON example
{
"Id": 7001,
"Number": "FAC-001024",
"Series": "FAC",
"Date": "2026-05-13",
"PartnerId": 27501,
"Currency": "RON",
"TotalValue": 4589.00,
"IsStorno": false,
"Lines": [
{ "ArticleCode": "0000002", "Quantity": 1, "UnitPrice": 4500.00, "VATRateId": 1, "WarehouseId": 1 }
]
}
Associated operations
AddSaleInvoice,UpdateSaleInvoice,DeleteSaleInvoicesStornoSaleInvoice→ creates a negative invoice with the same partnerGetSaleInvoice,GetSaleInvoicesWithSoldMarkSaleInvoice(fiscal-receipt marking)ExportSaleInvoices(export to external systems)SendDocumentToEmail(send a PDF by e-mail)
Validation rules
- Lines required: at least 1
Available stock >= Quantityfor non-service articles (validated by the mock withStoc insuficient pentru ...).- Valid
VATRateId— see VATRate.