# AttachDocumentInput input


A file to attach to a sales order with [`attachDocument`](/chameleoon-max/mutation/attach-document).

## Input fields

### requestId

`String!` · required

Your idempotency key for this call, an opaque string of 1 to 128 bytes, unique within the
organisation.

### fileId

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

The `fileId` that `POST /api/v1/files` returned for the upload.

### salesOrder

[`SalesOrderRefInput!`](/chameleoon-max/type/sales-order-ref-input) · required

The order the document is kept with.

### kind

[`DocumentKind!`](/chameleoon-max/type/document-kind) · required

What the document is.

### externalId

`String`

The issuing system's own id of the document. At most 200 characters.

### externalNumber

`String`

The document's number in the issuing system. At most 100 characters.

### title

`String`

The document's title. At most 255 characters.

### note

`String`

A note about this version. At most 2000 characters.

## Used by

- [`attachDocument`](/chameleoon-max/mutation/attach-document) (mutation)
