Skip to main content
POST
Create picking batch

Body

application/json

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.

warehouse_id
integer<int32>
required

The warehouse whose shipments are batched. The authenticated user must have access to it.

Required range: x >= 1
Example:

1

shipment_type
enum<string> | null

Only batch shipments of this type. Omit or null to batch shipments of any type.

Available options:
parcel,
freight,
null
Example:

"parcel"

batch_preset_id
integer<int32>

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.

Required range: x >= 1
Example:

3

picking_class_id
integer<int32>

Build the batch from shipments in this picking class. Either batch_preset_id or picking_class_id is required.

Required range: x >= 1
Example:

2

asset_type_id
integer<int32>

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.

Required range: x >= 1
Example:

5

max_shipments
integer<int32>

The maximum number of shipments in the batch.

Required range: x >= 1
Example:

24

workflow
enum<string>

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.

Available options:
paper_in_bin,
paperless
Example:

"paper_in_bin"

batch_tag
string | null

Only batch shipments with this batch tag. An empty string selects shipments without a batch tag. Omit or null to ignore batch tags.

Maximum string length: 255
Example:

"PRIORITY"

exclude_batch_tag
boolean
default:false

When true, batch_tag excludes matching shipments instead of selecting them.

Example:

false

shipping_methods
string[]

Only batch shipments using one of these shipping methods.

Maximum array length: 1000

A shipping method code in the form {carrier}_{method}.

Example:
exclude_shipping_methods
boolean
default:false

When true, shipping_methods excludes matching shipments instead of selecting them.

Example:

false

merchant_ids
integer<int32>[]

Only batch shipments belonging to one of these merchants.

Maximum array length: 1000

A merchant id.

Example:
exclude_merchants
boolean
default:false

When true, merchant_ids excludes matching shipments instead of selecting them.

Example:

false

service_levels
string[]

Only batch shipments with one of these service levels.

Maximum array length: 1000

A service level code.

Example:
exclude_service_levels
boolean
default:false

When true, service_levels excludes matching shipments instead of selecting them.

Example:

false

target_ship_date
enum<string>

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.

Available options:
on_or_before_current,
before_current,
current_only,
after_current,
any
Example:

"on_or_before_current"

location_accessibility
enum<string>

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.

Available options:
accessible_only,
sweep,
any
Example:

"accessible_only"

print_packing_instructions
boolean

Whether to print packing instructions for the batch. Omit to use the batch preset's setting, or false when there is no preset.

Example:

false

allow_partial
boolean

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.

Example:

false

Response

The picking batch was created.

resource
PickingBatch · object
required

A picking batch groups shipments so they can be picked together.

meta
object

Response metadata.