# SalesOrderItemWriteBackInput input


The result of writing a goods line back to the external source
([`reportSalesOrderItemWriteBack`](/chameleoon-max/mutation/report-sales-order-item-write-back)).

## Input fields

### itemId

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

The line's MAX id (`SalesOrderItem.id`). Omit it to report the order's own change (its
addresses, contact or notes). Then a `problem` becomes the warning `SHOP_ORDER_NOT_WRITTEN` on
the order, and no `problem` resolves that warning.

### externalId

`String`

The external source's id of the item it created for the line.

### replacesExternalId

`String`

The line's former item id that `externalId` replaces. Send it when the external source removed
the item, MAX kept the line, and the item was added again. Without it, a line that already has
an item returns `CONFLICT`.

### problem

`String`

Why the external source did not accept the line.

## Used by

- [`reportSalesOrderItemWriteBack`](/chameleoon-max/mutation/report-sales-order-item-write-back) (mutation)
