# 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`](/chameleoon-max/type/invoice-line-kind) · 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

[`Decimal`](/chameleoon-max/type/decimal)

The quantity.

### unit

`String`

The unit, as printed.

### unitPriceNet

[`Decimal`](/chameleoon-max/type/decimal)

The unit price without VAT.

### unitPriceGross

[`Decimal`](/chameleoon-max/type/decimal)

The unit price including VAT.

### pricesIncludeVat

`Boolean` · default `false`

Whether the line's prices include VAT.

### vatPercent

[`Decimal`](/chameleoon-max/type/decimal)

The VAT rate in percent, from 0 to 100.

### discountPercent

[`Decimal`](/chameleoon-max/type/decimal)

The discount in percent, from 0 to 100.

### totalNet

[`Decimal!`](/chameleoon-max/type/decimal) · required

The line total without VAT.

### totalVat

[`Decimal!`](/chameleoon-max/type/decimal) · required

The line's VAT.

### totalGross

[`Decimal!`](/chameleoon-max/type/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

[`UUID`](/chameleoon-max/type/uuid)

The MAX id of the product variant. Without it, MAX matches an `ITEM` line by its `code`,
`barcode` and `manufacturerCode`.

### advanceInvoice

[`InvoiceRefInput`](/chameleoon-max/type/invoice-ref-input)

On an `ADVANCE_DEDUCTION` line only, the deducted advance invoice. If MAX does not know it,
the line's `advanceInvoiceId` stays null.

### salesOrderLineId

[`UUID`](/chameleoon-max/type/uuid)

The MAX id of the sales order line the invoice line belongs to. A line your API key cannot see
is not linked.

## Used by

- [`SyncInvoiceInput`](/chameleoon-max/type/sync-invoice-input)
