Line
One item line or one tax summary line. Lines carry only what can differ within an invoice. Gross is
never sent: it is always net plus VAT. Line vat must add up to the invoice's VAT per rate; where your
ERP rounds at invoice level, put the rounding difference on one line.
- goodsType: "goods" or "services"enum
_or _services required - lineType: string
_id max length:255requiredYour id for the line, for example the ERP entry id, or its sequence number. Unique within the document and stable across versions.
- netType:required
As printed. Usually negative on a credit note, and negative on a discount line.
- tax
_code requiredThe line's VAT treatment. Either a VAT IT tax code, or your own tax code as it is in your ERP, where VAT IT keeps the mapping from your codes to VAT IT tax codes for that client. A code with no mapping yet makes the line wait with
tax_code_unmappeduntil VAT IT adds it. See the Tax codes guide.- Type: enum
The line's VAT treatment. Either a VAT IT tax code, or your own tax code as it is in your ERP, where VAT IT keeps the mapping from your codes to VAT IT tax codes for that client. A code with no mapping yet makes the line wait with
tax_code_unmappeduntil VAT IT adds it. See the Tax codes guide.values- sale
_domestic - sale
_domestic _exempt - sale
_domestic _reverse _charge - sale
_intra _eu _goods - sale
_intra _eu _services - sale
_intra _eu _triangular - sale
_distance _goods - sale
_export
- sale
- vatType:required
The VAT charged on the line, as printed. Zero when none.
- vatType: string
_rate requiredPercent, so
23and not0.23. - shipType:
_from _country Only when this line's goods left from a different country than the document's.
- shipType:
_to _country Only when this line's goods arrived in a different country than the document's.
- taxType:
_jurisdiction Only when this line falls under a different registration than the document. Leave it out otherwise.