InvoiceLineInput input
One line of the document, as the accounting system holds it.
Input fields
lineNo
Int
The line's number. It must be unique within the invoice. If omitted, the line's position in lines.
kind
InvoiceLineKind · default ITEM
What the line is.
name
String! · required
The line's text. Required on every kind except TEXT.
code
String
The code the line names its goods by: the supplier's code (received invoice), the customer's code (issued invoice), or the MAX SKU.
barcode
String
The EAN or GTIN.
manufacturerCode
String
The manufacturer's part number.
quantity
The quantity.
unit
String
The unit, as printed.
unitPriceNet
The unit price without VAT.
unitPriceGross
The unit price including VAT.
pricesIncludeVat
Boolean · default false
Whether the line's prices include VAT.
vatPercent
The VAT rate in percent, from 0 to 100.
discountPercent
The discount in percent, from 0 to 100.
totalNet
Decimal! · required
The line total without VAT.
totalVat
Decimal! · required
The line's VAT.
totalGross
Decimal! · required
The line total including VAT.
note
String
The line's note.
externalId
String
The accounting system's own id of the line.
variantId
The MAX id of the product variant. Without it, MAX matches an ITEM line by its code,
barcode and manufacturerCode.
advanceInvoice
On an ADVANCE_DEDUCTION line only, the deducted advance invoice. If MAX does not know it,
the line's advanceInvoiceId stays null.
salesOrderLineId
The MAX id of the sales order line the invoice line belongs to. A line your API key cannot see is not linked.