Appearance
CreateWarehouseTransferInput
Type: Input
Input for creating a warehouse transfer; the server allocates its id.
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| approvedAt | ISO8601 | ISO-8601 timestamp the transfer was approved. Left null when omitted. | |
| approvedByUserId | UserID | TypeID of the user who approved the transfer (prefix "usr"). Normally omitted on create. | |
| completedAt | ISO8601 | ISO-8601 timestamp the stock movement completed. Left null when omitted. | |
| completedByUserId | UserID | TypeID of the user who completed the move (prefix "usr"). Normally omitted on create. | |
| destinationLocationId | WarehouseLocationID! | TypeID of the warehouse location stock is moved into (prefix "wlc"). Must differ from sourceLocationId. | |
| notes | String | Free-text note about the transfer. | |
| quantity | Float! | Amount to move, expressed in unit. Must be greater than zero. | |
| reason | StockMovementReason! | Why the stock is being moved (e.g. TRANSFERRED, ISSUED_TO_PRODUCTION, SCRAPPED). | |
| referenceId | String | Identifier of the originating document named by referenceType; stored opaquely. | |
| referenceType | String | Kind of the originating document this transfer is raised against (e.g. a job or order). Free-form string, not a foreign key. | |
| requestedAt | ISO8601 | ISO-8601 timestamp the transfer was requested. Defaults to now when omitted. | |
| requestedByUserId | UserID | TypeID of the user raising the transfer (prefix "usr"). | |
| sourceLocationId | WarehouseLocationID! | TypeID of the warehouse location stock is moved out of (prefix "wlc"). | |
| status | TransferStatus | Initial lifecycle status. Defaults to REQUESTED when omitted. | |
| stockableId | String! | Identifier of the item being moved, within the catalog named by stockableType. | |
| stockableType | StockableType! | Kind of item being moved; discriminates which catalog stockableId points into. | |
| unit | MeasurementUnit | Unit of measure for the quantity. Defaults to PC when omitted. |