# InvoiceLinkInput input


A MAX document to link an invoice to, or to unlink it from.

## Input fields

### type

[`InvoiceLinkType!`](/chameleoon-max/type/invoice-link-type) · required

The kind of document.

### targetId

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

The MAX id of the sales order, purchase order, receipt, issue or consignment.

## Used by

- [`linkInvoice`](/chameleoon-max/mutation/link-invoice) (mutation)
- [`unlinkInvoice`](/chameleoon-max/mutation/unlink-invoice) (mutation)
