Skip to main content

Bin attributes

Every field you can set on a bin (a carton, a pallet or a trailer), what the packer does with it, and on which endpoint. A field marked /pack only affects cartonisation, /pack_pallet only palletisation, both affects both. Lengths and weights follow the request's units.

On /pack the packer chooses between all the bins you send. On /pack_pallet every order is built on the first bin, unless the items carry tags.

The item attributes are on a page of their own.

Identity and size​

id (required, both). The bin type, returned with every packed bin.

width, height, depth (required, both). The inside of the bin. For a pallet, height is the highest the load may go.

bin_type (both, default BOX). BOX, PALLET, TRUCK or ENVELOPE. An envelope packs differently, see max_height. A PALLET or TRUCK never shrinks (the adjust_*_min fields are ignored).

Weight​

max_weight (both, default unlimited). The most the contents may weigh. The bin's own weight is not counted against it. On /pack the next item that would go over is refused; on /pack_pallet the next layer is.

tar_weight (both, default unset). The weight of the empty bin. It is added to the weight of the packed bin in the response and to the weight carriers charge for, but never to what max_weight checks.

max_weight caps the contents; the tare may go over it

weight_limits (/pack, default empty). Caps on the weight in one part of the bin, for example a trailer that may carry only so much on its first stretch. Each limit is a max_weight and a zone given by a start and end along any of width, height and depth, measured from the bin's origin in the request's units. An axis you leave out spans the whole bin. An item counts with the share of its volume that lies inside the zone, as its weight is spread evenly over it, so an item on the edge counts half. The packer never places an item that takes a zone over its limit: it uses room outside the zone or another bin. For a trailer, in kilograms and centimetres, that carries at most 2000 on its first 300 along the depth:

"weight_limits": [{"max_weight": 2000, "depth": {"start": 0, "end": 300}}]

weight_limits caps the weight inside a zone; an item on the edge counts half

Order​

sequence_axes​

sequence_axes (both, default ["height"]). The directions along which the items' sequence is respected: any of "width", "height" and "depth". Along each one, the item that comes out first sits nearest the open side, which is the far end of the direction. The default only rules out a lower sequence on top of a higher one, so along the floor the drops may be in any order. A trailer that is unloaded at its doors, one drop after the other, uses ["height", "depth"]: then the drops also run in order from the cab to the doors.

The figure shows a trailer from the side, two pallets high, with the drop of each pallet. With ["height"] only the stacking counts, so drops may be mixed along the trailer. With ["height", "depth"] that same load is refused, and the drops run from the cab to the doors.

A trailer from the side, two high: with ["height"] mixed drops are allowed; with ["height", "depth"] they are not

tags​

tags (both, default empty). The tags this bin offers. An item only goes into a bin that has all of the item's tags.

An item tagged cold fits a bin tagged cold and dry, not a bin tagged dry

Fill rate and cost (/pack)​

min_fill_rate, max_fill_rate (default unset). The share of the bin's volume the contents should fill, between 0 and 1. Above max_fill_rate the next item is refused, for example to keep room for padding. A bin that ends below min_fill_rate counts as the worst possible choice, so the packer prefers another bin type whenever one exists.

Below min_fill_rate the packer looks for another bin; between the two is fine

packaging_cost, transport_cost (default unset). The cost of the empty bin and of shipping it. They are only used when the account optimises for cost; see cost optimisation. When carriers are configured, the carrier's price replaces transport_cost.

Box-on-demand (/pack)​

adjust_width_min, adjust_height_min, adjust_depth_min (default unset). Setting any of these makes the bin a template that is cut down to its contents after packing, but never below these minimums. A dimension without a minimum keeps its size. See box-on-demand for the full picture.

Tall contents: the box is cut to their height. Low contents: it stops at adjust_height_min

max_height​

max_height (ENVELOPE only). How far an envelope can bulge. Items must fit in its flat body (height) plus a dome that rises to max_height in the middle, so the corners have less room than the centre. It must be above height.

An envelope from the side: an item under the dome fits, one that pokes out does not

Pallet build (/pack_pallet)​

A pallet is built from full layers first; what is left forms a mixed top. These fields shape the layers.

min_layer_fill_rate (default 0.875). The share of the pallet floor a full layer must cover. Items that cannot make such a layer go to the mixed top.

A layer covering 90% of the floor is a full layer; 60% is not

max_layer_height_diff (default 0.5). How much shorter than the tallest item of a layer another item in that layer may be, so the layer above stays flat.

Items of nearly the same height share a layer; a large step does not

max_layers (default unlimited). The most full layers on one pallet. The next layer starts a new pallet, and a pallet that has its full count of layers gets no mixed top.

With max_layers 4, a fifth layer goes to the next pallet

max_layer_unique_ids (default 3). The most different articles that may share one layer. With 1, every layer holds a single article.

Two articles in a layer is allowed with a maximum of 3, four is not

pick_boxes​

pick_boxes (default empty). The boxes, such as totes or crates, that items with pick_in_box are packed into before they go on the pallet. Each is a bin in its own right: its size, its adjust_*_min (to shrink to its contents) and its min_fill_rate apply. A pick box larger than the pallet floor is skipped.

Small items go into a pick box, which then goes on the pallet

stack_on_width_edge, stack_on_height_edge, stack_on_depth_edge, is_open_top (pick boxes, defaults false, true, false, true). Where a pick box carries load, as for an open-top item. By default a pick box is open at the top and carries load only on its four corner posts.

Free data​

extras (both, default empty). Any data of your own, returned unchanged with the packed bin.

Fields without an effect​

divider_height_tolerance, divider_min_fill_rate and nr_intermediary_pallets are accepted for compatibility and have no effect.