# ReportExternalIssueInput input


What one document of an externally managed warehouse issued of an order
([`reportExternalIssue`](/chameleoon-max/mutation/report-external-issue)).

## Input fields

### salesOrder

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

The order, by its MAX id or by the external source that placed it and the order's id there. An
order placed through another external system works too.

### warehouseId

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

The warehouse's MAX id. An external system must manage the warehouse (see
[`syncStockLevels`](/chameleoon-max/mutation/sync-stock-levels)).

### effectiveAt

[`Time!`](/chameleoon-max/type/time) · required

When the document took the goods off stock, on the external system's clock, which is the
clock of `asOf` in [`syncStockLevels`](/chameleoon-max/mutation/sync-stock-levels). At most 15 minutes ahead of the MAX clock.

### documentExternalId

`String!` · required

The document's id in the external system, for example the invoice's or the credit note's. 1 to
128 bytes, trimmed. Together with the external system and the item, it is the key under which
each quantity is absolute.

### items

[`[ReportExternalIssueItemInput!]!`](/chameleoon-max/type/report-external-issue-item-input) · required

1 to 100 items, each item once.

## Used by

- [`reportExternalIssue`](/chameleoon-max/mutation/report-external-issue) (mutation)
