# StockDocumentExternalRefInput input


The reference that a receipt or an issue gets: the record that an external source made of it.

## Input fields

### source

`String!` · required

The code of an external source in MAX.

### externalId

`String!` · required

The external source's id of its record, at most 200 characters.

### externalNumber

`String`

The number that the external source shows for its record, at most 100 characters. If omitted
or null, the reference has no number.

## Used by

- [`setIssueExternalRef`](/chameleoon-max/mutation/set-issue-external-ref) (mutation)
- [`setReceiptExternalRef`](/chameleoon-max/mutation/set-receipt-external-ref) (mutation)
