# ExternalSource type


A system that MAX receives records from or sends records to, identified by its code.

## Fields

### code

`String!`

The code that an external reference names the external source by, for example `OBERON`.

### name

`String!`

The external source's name.

### kind

`String!`

The external source's kind: `ESHOP`, `ERP` or `OTHER`. Read it as a string.

### archived

`Boolean!`

Whether the external source is archived. An archived external source takes no new
references. Its existing references can still be removed.

### invoicePrintAllowed

`Boolean!`

Whether MAX prints this external source's invoices with its own templates. A user sets it in
MAX, in the external source's settings.

When it is `false`, the external source sends its own PDF ([`attachInvoiceDocument`](/chameleoon-max/mutation/attach-invoice-document)). Until
it does, the invoice's PDF is `INVOICE_PDF_MISSING`.

## Used by

- [`externalSource`](/chameleoon-max/query/external-source) (query)
- [`Warehouse`](/chameleoon-max/type/warehouse)
