Create or update a bin. Each bin belongs to one specific warehouse.
Bin codes must be per-warehouse unique. If you attempt to assign a duplicate code, API will return error 1012.
It is not possible to move a bin to another warehouse.
|Parameter name||Description||Possible value||Required|
|binID||Leave this field empty when creating a new bin.||Integer|
|warehouseID||Warehouse ID. For new bins, this field is required. For existing bins, warehouse cannot be changed. If you edit an existing bin and pass the "warehouseID" parameter, it will be ignored.||Integer|
|code||Bin code. For new bins, this field is required.||String|
|status||Possible values: "ACTIVE", "ARCHIVED", by default "ACTIVE".||String|
|preferred||0 or 1.||Integer|
|allowedProduct||A textual description; use it to indicate if this bin is only meant for storing a specific product or products.||String|
|replenishmentMinimum||If the quantity in this bin falls below this value, the item should be reordered. (API client must itself establish a system what product is being referred here. This field could be used in conjunction with "allowedProduct".)||Decimal (6 places)|
|maximumAmount||Maximum capacity of this bin. (API client must itself establish a system what product is being referred here. This field could be used in conjunction with "allowedProduct".)||Decimal (6 places)|
|binID||Integer||ID of the created/updated item.|