Create picking batch
Groups ready-to-pick shipments in a warehouse into a new picking batch.
The batch is built from either a batch preset (batch_preset_id) or a picking class (picking_class_id), and is
sized by an asset type (asset_type_id) or an explicit max_shipments. The remaining properties filter which
shipments are eligible and control how the batch is picked.
When a user token is used, the user must have permission to process orders and must have access to the warehouse.
A 422 response is returned when no batch could be created, for example when no eligible shipments are available or
when there are not enough shipments to fill the batch and partial batches are not allowed. When some shipments could
not be picked, the error details explain why.
Body
Selects which ready-to-pick shipments in a warehouse are grouped into a picking batch and how the batch is picked.
A batch is built from either a batch preset or a picking class, and is sized by either an asset type or an explicit maximum number of shipments. All filters are optional; omitted filters do not restrict the selection.
The warehouse whose shipments are batched. The authenticated user must have access to it.
x >= 11
Only batch shipments of this type. Omit or null to batch shipments of any type.
parcel, freight, null "parcel"
Build the batch from this batch preset. The preset supplies the picking classes, sizing and defaults for
location_accessibility and print_packing_instructions. Either batch_preset_id or picking_class_id is required.
x >= 13
Build the batch from shipments in this picking class. Either batch_preset_id or picking_class_id is required.
x >= 12
Size the batch for this asset type (e.g. a cart). The maximum number of shipments is derived from the asset type
unless max_shipments is also given. Either asset_type_id or max_shipments is required unless the batch preset sizes the batch.
x >= 15
The maximum number of shipments in the batch.
x >= 124
The picking workflow. paper_in_bin prints packing slips placed into bins; paperless prints no packing slips.
Omit to use the batch preset's default workflow, or the system default when there is no preset.
paper_in_bin, paperless "paper_in_bin"
Only batch shipments with this batch tag. An empty string selects shipments without a batch tag.
Omit or null to ignore batch tags.
255"PRIORITY"
When true, batch_tag excludes matching shipments instead of selecting them.
false
Only batch shipments using one of these shipping methods.
1000A shipping method code in the form {carrier}_{method}.
When true, shipping_methods excludes matching shipments instead of selecting them.
false
Only batch shipments belonging to one of these merchants.
1000A merchant id.
When true, merchant_ids excludes matching shipments instead of selecting them.
false
Only batch shipments with one of these service levels.
1000A service level code.
When true, service_levels excludes matching shipments instead of selecting them.
false
Selects shipments by target ship date relative to the warehouse's current target ship date. Omit to select shipments due on or before the current target ship date.
on_or_before_current, before_current, current_only, after_current, any "on_or_before_current"
Which inventory locations may be picked from. accessible_only (Strict) follows the asset policies,
sweep prefers accessible locations but may pick from others, and any (Disregard) ignores accessibility.
Omit to use the batch preset's default, or accessible_only when there is no preset.
accessible_only, sweep, any "accessible_only"
Whether to print packing instructions for the batch. Omit to use the batch preset's setting, or false when there is no preset.
false
Whether to create the batch when there are not enough shipments to fill it. Omit to use the warehouse's default. Ignored when the warehouse is configured to always or never allow partial batches.
false