AlmondTill/G3N API

RelocateStockInput

input type

Relocate-input for relocateStock. A location is a Bin or (side absent) the DERIVED un-binned pool: bin-to-bin, pool-to-bin (put-away), bin-to-pool (take-out); at least ONE side names a bin and an equal pair refuses. Both bins must belong to the item logical facility (relocate is intra-LF by law); the to-bin must be ACTIVE (the from-bin may be any status — the healing direction). Lot fields ride ONLY on lot-controlled items.

Fields

FieldTypeRequiredNotes
inventoryItemIdID ID!yesThe InventoryItem id — tenant-scoped + ACTIVE-gated + STOCKED-gated server-side.
quantityString String!yesThe moved quantity — a strictly POSITIVE decimal string.
bucketStockBucketnoThe relocated bucket — on_hand | damaged | held; DEFAULTED to on_hand when omitted.
fromBinIdIDnoThe source Bin id; ABSENT = the un-binned pool.
toBinIdIDnoThe target Bin id; ABSENT = the un-binned pool.
lotCodeStringnoThe lot identity.
lotExpiresAtStringnoThe lot expiry (UTC instant) — birth-stamps the lot record; a later mismatch refuses; a record missing it is enriched.
captionStringnoNo further notes.
refsString [String!]noNo further notes.

Used by