# InvoiceLine type


One line of an invoice, as printed.

## Fields

### id

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

The line's MAX id.

### lineNo

`Int!`

The line's number within the invoice.

### kind

[`InvoiceLineKind!`](/chameleoon-max/type/invoice-line-kind)

What the line is.

### name

`String!`

The line's 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!`

Whether the line's prices include VAT.

### vatPercent

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

The VAT rate in percent.

### discountPercent

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

The discount in percent.

### totalNet

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

The line total without VAT.

### totalVat

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

The line's VAT.

### totalGross

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

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 the line is for. Null when none matched.

### variantMatch

`String`

How the variant was found: `EXPLICIT` when your integration named it, otherwise the code that
matched it (for example `SUPPLIER_CODE`, `BARCODE` or `SKU`).

### advanceInvoiceId

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

On an `ADVANCE_DEDUCTION` line, the MAX id of the deducted advance invoice. Null when it is
unknown.

### salesOrderLineId

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

The MAX id of the sales order line the invoice line belongs to.

## Used by

- [`InvoiceLineConnection`](/chameleoon-max/type/invoice-line-connection)
- [`InvoiceLineEdge`](/chameleoon-max/type/invoice-line-edge)
