Anatomy of a job
Every guide builds part of a job request. This page is the whole shape in one place: what the top-level keys are, which are required, and where each is explained in depth.
Top-level structure
A POST /v2/jobs body (JobRequest) has exactly eight top-level keys:
| Key | Required | What it is | Guide |
|---|---|---|---|
carriers |
✅ | The carriers available for this job. Supply side. | Core concepts |
cargo |
✅ | The cargo to load (the lines/entries). Demand side. | Quickstart |
groups |
No | The groups this job declares, keyed by name; a cargo line opts into one through its own groups. They take effect only while configuration.groupSeparation is set. |
Group separation |
constraints |
No | Optional. Job-wide rules: stackingRules. See Stacking rules. |
Stacking rules |
units |
No | Per-kind units for the job. | Units |
configuration |
No | The primary objective, the two supported secondary switches, and the group-separation activation. | below |
name |
No | Optional caller-supplied label, <= 256 chars, echoed back on the status and result responses. No effect on packing. null is accepted and has the same effect as omitting the key: no name is stored. |
below |
problemType |
No | Which problem this job poses: "LoadPlanning" (default) or "MixedPalletizing". The only field that selects it. |
Mixed palletizing |
carriers and cargo are the only required keys; both must be non-empty. A job may send at most 200 entries in carriers[] and 5,000 lines in cargo[], whatever your plan; more is a 400 against /carriers or /cargo.
Sizes and weights have an upper bound. Every dimension must be at most 100 m and every weight at most 100000 kg, measured after conversion from the units you declared. The accepted number therefore depends on your units block: a 100 m limit is 100000 in mm, 100 in m and 328.08 in ft. Both bounds sit an order of magnitude above any trailer, container or air pallet, so the usual reason to meet one is a value sent in the wrong unit: 2400 meaning millimetres while units.length says m. A value past the bound is rejected with 400 against the field you sent, for example /cargo/0/geometry/dimensionX.
A carrier or cargo entry
An entry in cargo[] is defined inline, or is a reference to one of your SKUs by libraryId; see A cargo line that references a SKU below. An entry in carriers[] is inline too, or a reference to one of your saved carriers by libraryId; see Libraries. The body below shows both lists inline. This is the full request shape:
{
"units": { "length": "m", "weight": "kg" }, // optional, these are the defaults
"carriers": [
{
"externalId": "EUR-PALLET", // required, non-empty, <= 128 (duplicates allowed)
"name": "Euro pallet", // optional label, <= 256 chars
"geometry": { "type": "box", "dimensionX": 1.2, "dimensionY": 0.8, "dimensionZ": 1.5 },
"quantity": null, // null = unlimited instances; else > 0
"tareWeight": 25.0, // optional, >= 0, in units.weight - the empty carrier
"maxWeight": 1500, // optional, > 0, in units.weight - the most cargo it may carry, tare not counted
"category": "pallet" // optional, "container" | "pallet" | "truck" | "trailer"; omitted -> filled in from problemType, NOT the problem-type selector
}
],
"cargo": [
{
"externalId": "SKU-123", // OPTIONAL echo label, <= 128, NOT unique
"description": "Box A", // optional, <= 512 chars
"color": "#ffffff", // optional free-form string, <= 64 chars
"amount": 2, // required, >= 1 - number of identical units
"weight": 5.0, // >= 0 - per single unit, in units.weight; required, so send it even when it is 0
"geometry": { "type": "box", "dimensionX": 0.3, "dimensionY": 0.4, "dimensionZ": 0.2 },
"constraints": { // optional
"allowStackingOnTop": true, // default false
"sameSkuStacking": "none", // none | upperAndLower; default none
"allowedRotations": ["Z"] // "X" | "Y" | "Z"; omitted -> ["Z"]; [] -> no rotation
},
"category": "box", // optional, "box"; omitted -> filled in with "box"
"classes": ["glass"], // optional, inline only: at most one cargo class key, saved or not
"groups": ["fragile", "route-a"] // optional labels; a label only moves cargo if the job declares it in "groups", below
}
],
"configuration": { // optional
"objective": "MinimizeCarriers", // only this primary objective is accepted
"secondaryObjectives": [ // optional; at most one entry per type
{ "type": "CenterLoadMass" }, // centre the load's mass
{ "type": "consolidation", "direction": "-X" } // packing axis: "-X" | "-Y" | "Z"
],
"groupSeparation": { "mode": "segmented" } // optional; omit for none. See below
},
"groups": { // optional; the groups this job declares
"route-a": { "packingOrder": 1 }, // 1 packs nearest the front wall (x = 0)
"route-b": { "packingOrder": 2, "keepTogether": false } // keepTogether: optional, default true
},
"constraints": { // optional; job-wide rules
"stackingRules": { "ruleSetId": "0199e2b4-6c1d-7a3e-9b20-5f1d3c8e4a71" } // a saved rule set, or directOn / towerLimits inline
},
"name": "Rotterdam morning run", // optional label, <= 256 chars, trimmed; PUT /jobs/{id}/name to change or clear
"problemType": "LoadPlanning" // optional, "LoadPlanning" (default) | "MixedPalletizing" - the only field that selects the problem type
}
This is the canonical body the other guides build on.
Conventions. Values from a fixed set (enum values, in a request body or in list filters such as status, saved and sort) are matched without regard to case, and come back in their published spelling: "mixedpalletizing" goes in and "MixedPalletizing" comes back, and "MM" reads back as "mm". Names and codes keep their case: group names, a SKU's code (externalId, also as a filter) and system-catalogue slugs are case-sensitive. The idempotency fingerprint compares the body as you sent it: an enum value in another case makes a different body, so while the key is kept the same key gets the 409 rather than a replay.
The field rules:
| Field | Rule |
|---|---|
geometry.type |
Must be "box". Anything else → 400. |
geometry.dimensionX/Y/Z |
All three required, > 0. X = length, Y = width, Z = height. |
carriers[].externalId |
Required and non-empty on an inline carrier (<= 128). Optional on a reference (libraryId): omit it and the carrier keeps the entry's label; send it and it must be non-empty and replaces that label for this job. Duplicates across carriers are allowed. |
carriers[].quantity |
null or omitted = unlimited: the solver adds instances until the cargo runs out or the carrier fits nothing more, so only the carriers it actually used come back. An explicit value must be > 0 and is used in full: all N instances appear in the result's carriers[], so any instance past the point where the cargo ran out comes back with an empty placements[]. summary.carriersUsed counts only carriers with at least one placement, so it can be lower than the length of carriers[]: check a carrier's placements[] before you draw it. Entries are tried in the order you list them; see The order of carriers. |
carriers[].tareWeight |
Optional, >= 0, in units.weight, the carrier's own empty weight, stored with the job. What the result reports per carrier is kpis.loadedWeight: the weight of the placements in it. |
carriers[].maxWeight |
Optional, > 0, in units.weight: the most cargo this carrier may carry, not counting its tareWeight. What does not fit moves on to the next carrier (another of this entry while its quantity allows, then the next entry). On a reference, use overrides.maxWeight. |
carriers[].libraryId |
The id of a saved carrier: a company entry's UUID, or a system catalogue slug, which needs no company-library entitlement. With it, the carrier takes its definition from the entry; geometry, name, category, tareWeight and maxWeight may not be sent alongside (400, ambiguous_source), and externalId becomes optional. See Libraries. |
carriers[].overrides |
Reference form only: a per-job adjustment of the referenced entry, { "maxStackHeight": ..., "maxWeight": ... }. Rejected with 400 against this field on an inline carrier. See Load height for one job. |
cargo[].externalId |
Optional. On an inline line null, "" and duplicates are all valid; on a reference a value you send must be non-empty, and one you leave out falls back to the SKU's. Echo label, never a join key. |
cargo[].amount |
Line quantity: amount: 5 yields up to 5 placements that all reference the same line. |
cargo[].groups |
Free labels, at most 10 per line and 256 characters each; past either, a 400 against /cargo/{i}/groups or against the label (/cargo/{i}/groups/{j}). A label moves cargo only if the job also declares it in the top-level groups block and sets configuration.groupSeparation; see Separating groups along the carrier. While configuration.groupSeparation is set, a line may name at most one declared group. Comes back as groups on placements and unplaced items either way (and under the deprecated name group). |
cargo[].libraryId |
The id of a SKU in your company SKU library. With it, the line takes its geometry, weight, category and constraints from the SKU; those four may not be sent alongside (400, ambiguous_source), and only amount is required. See A cargo line that references a SKU. |
cargo[].classes |
Inline only. The line's cargo class: a list of at most one class key: one your account has saved, or any other key, which the job uses for itself. Absent or null means no class. On a reference the line takes the SKU's class. See Stacking rules. |
cargo[].overrides |
Reference form only: { "constraints": { ... } }, applied per field. Rejected with 400 against this field on an inline line. |
constraints.stackingRules |
Which cargo class may rest on which: a saved rule set by ruleSetId (with optional overrides), or directOn and towerLimits inline; never both. See Stacking rules. |
constraints.allowedRotations |
Axes the box may turn 90° about. Omitted → ["Z"]. [] → locked in the submitted orientation. Unknown tokens, or an axis named twice → 400. |
constraints.allowStackingOnTop |
Omitted → false: nothing may rest on the line. POST /v2/jobs/validate warns with stacking_disabled when no line allows it. |
constraints.sameSkuStacking |
Omitted or null → none: no requirement on the neighbours. The values are none and upperAndLower, in any case; an unknown value → 400. See Stack only with the same SKU. |
configuration.objective |
Omitted, null or "" → MinimizeCarriers. Any other value → 400. |
configuration.secondaryObjectives[].type |
"CenterLoadMass" or "consolidation". At most one entry per type: two consolidation entries → 400, no last-one-wins. A null entry → 400. |
configuration.secondaryObjectives[].direction |
Required for consolidation: "-X", "-Y" or "Z". "+X"/"+Y" → 400. Alongside "CenterLoadMass" it's accepted and ignored. |
configuration.tolerance |
Rejected: sending it at all → 400. See Not supported. |
problemType |
Optional: "LoadPlanning" (the default when omitted) or "MixedPalletizing". This is the only field that selects the problem type; a carrier's category is a display hint and plays no part in it. MixedPalletizing needs the feature on your plan and draws on its own monthly quota; without it, submitting one gets 403. |
Worth calling out explicitly: cargo has no name (use description); carriers have name but no description; and the job itself has an optional name too, distinct from both: see below. For what a request cannot express, see Not supported.
A cargo line that references a SKU
A cargo line can name a SKU saved in your company SKU library (see SKU libraries) instead of spelling out its box and weight. Such a line is a reference: it puts the SKU's id in libraryId and says how many, and the SKU supplies the rest. A line is either inline or a reference, never both, and one job may mix the two:
{
"units": { "length": "m", "weight": "kg" },
"carriers": [
{ "externalId": "TRAILER", "geometry": { "type": "box", "dimensionX": 13.6, "dimensionY": 2.48, "dimensionZ": 2.7 } }
],
"cargo": [
{ "libraryId": "0197d1e4-2a6b-7f3c-8d15-4b9e0c7a2f68", "amount": 24, "groups": ["store-104"], "color": "#3366cc", "overrides": { "constraints": { "allowStackingOnTop": true } } },
{ "libraryId": "0197d1e4-2a6b-7f3c-8d15-4b9e0c7a2f68", "amount": 6, "description": "Carton 60x40, this side up", "overrides": { "constraints": { "allowedRotations": [] } } },
{ "externalId": "SPOT-ITEM", "description": "Loose crate", "amount": 2, "weight": 30, "geometry": { "type": "box", "dimensionX": 0.8, "dimensionY": 0.6, "dimensionZ": 0.5 } }
]
}
Next to libraryId |
Rule |
|---|---|
amount |
Required, >= 1, as on an inline line. |
groups, color |
Optional, the line's own, as on an inline line. |
description |
Optional label for this line. Left out, the line is labelled with the SKU's name, so the second line above reads Carton 60x40, this side up and the first reads Carton 60x40. Must be non-empty when sent. |
externalId |
Optional. Left out, the line takes the SKU's externalId; when neither has one, the result echoes null. Must be non-empty when sent. |
overrides |
Optional: { "constraints": { ... } }, applied per field, see below. |
geometry, weight, category, constraints, classes |
Not allowed. The SKU defines them, and nothing is silently overruled: sending one is rejected with 400, field code ambiguous_source, against /cargo/{i}/libraryId. A property sent as null counts as absent. |
The job takes the SKU's geometry and weight in the SKU's own units, so a SKU saved in inches keeps its real size in a job that speaks millimetres; its category; and its constraints, merged with the line's override. The SKU is copied into the job when you submit it: a later PATCH, PUT or DELETE of the SKU never changes a job you already submitted. Plan limits count a reference exactly like an inline line, and the same SKU may appear on several lines, each with its own amount, labels and override.
Overriding constraints for one job
overrides.constraints applies per field: a field you send replaces the SKU's value for this job, and a field you leave out, or send as null, keeps the SKU's. The first line above lets other cargo rest on these 24 cartons and keeps whatever rotations the SKU allows. allowedRotations: [] locks the unit: the second line's six cartons are never turned, whatever the SKU allows. The defaults an inline line gets do not apply here: a field you leave out is the SKU's, not the default. Unknown tokens in allowedRotations are a 400, as on an inline line. The same goes for sameSkuStacking: sent in an override, it replaces the SKU's value, and a value other than none or upperAndLower is a 400.
constraints is the only override on a cargo line. Any other member of overrides is rejected with field code override_field_not_allowed, against /cargo/{i}/overrides/<member>, the member spelled exactly as you sent it: { "overrides": { "weight": 9 } } on the first line is reported against /cargo/0/overrides/weight. A member sent as null counts as absent. An inline line that sends overrides at all is rejected with 400 against /cargo/{i}/overrides.
Errors on a reference
code |
HTTP | When |
|---|---|---|
ambiguous_source |
400, field code |
A definition field (geometry, weight, category, constraints or classes) next to libraryId. Pointer /cargo/{i}/libraryId. |
override_field_not_allowed |
400, field code |
An overrides member other than constraints. Pointer /cargo/{i}/overrides/<member>, the member as sent. |
library_entry_not_found |
400, field code |
libraryId names no SKU you can use: unknown, deleted, another account's, malformed, a carrier entry's id, or a slug (there is no system SKU catalogue). One error per such line, all in one response. Pointer /cargo/{i}/libraryId. |
libraries_not_entitled |
403 |
The SKU library is not available on your plan: a type is available when the plan includes company libraries and its own size limit is not 0. Answered before any lookup, so it says nothing about whether the id exists. |
POST /jobs/validate applies every one of these checks the same way submit does, so you can try a body that references SKUs without queuing a job. See Errors & troubleshooting for the shape of a field-code error.
In the result: libraryId
Every placement and every unplaced item carries libraryId: the SKU the cargo line referenced, or null for an inline line. Placements and unplaced items also carry classes: the line's cargo class, or an empty list. A placement of the first line above, in the job's units:
{
"x": 0,
"y": 0,
"z": 0,
"sizeX": 0.6,
"sizeY": 0.4,
"sizeZ": 0.4,
"orientationRx": 0,
"orientationRy": 0,
"orientationRz": 0,
"weight": 18,
"geometry": { "type": "box", "dimensionX": 0.6, "dimensionY": 0.4, "dimensionZ": 0.4, "box": { "dimensionX": 0.6, "dimensionY": 0.4, "dimensionZ": 0.4 } },
"description": "Carton 60x40",
"color": "#3366cc",
"externalId": "SKU-4711",
"category": "box",
"group": ["store-104"],
"groups": ["store-104"],
"classes": ["glass"],
"itemId": "0197d2a8-5c3e-7b41-9f06-2e8d4a1c7b35",
"libraryId": "0197d1e4-2a6b-7f3c-8d15-4b9e0c7a2f68"
}
An unplaced item carries it the same way:
{
"description": "Carton 60x40, this side up",
"amount": 2,
"externalId": "SKU-4711",
"group": [],
"groups": [],
"classes": ["glass"],
"itemId": "0197d2a8-5c3e-7b41-9f06-2e8d4a1c7b36",
"libraryId": "0197d1e4-2a6b-7f3c-8d15-4b9e0c7a2f68",
"reason": null
}
reason says why those units were left out. Here it is null: the trailer has no quantity limit, so another trailer could have taken them, and the cause is not one the API can name; see Why cargo was left unplaced. libraryId names the SKU, itemId names the line. The two lines above that reference one SKU share their libraryId and keep distinct itemIds: group by libraryId to total per SKU, and join on itemId to get back to the line you sent.
A mixed palletizing job
A mixed palletizing job uses this same request, with problemType set to MixedPalletizing; see Mixed palletizing.
The configuration block
Three things live here, and all three are optional:
objective: the only primary objective this API accepts isMinimizeCarriers, which aims to pack all the cargo and keeps the number of carriers down where a carrier'squantityleaves the count open. It does so within the order you list the carriers in; see The order of carriers. Leave it out, or sendnull/"", and it defaults to the same thing. See Optimization objectives.secondaryObjectives: not ordered tie-breakers here, but two independent switches.CenterLoadMasscentres the load's mass once the solve is done.consolidationpicks which axis the solver packs along from the first step. The solver always packs along an axis (the default is-X), so leavingconsolidationout is not "no consolidation", just the default axis. List order has no effect, and each type may appear at most once.groupSeparation: turns the job's declared groups into real sections of the carrier, so each group loads and unloads as one block. It works together with the top-levelgroupsblock; both are covered in Separating groups along the carrier.
Naming a job
name is a free-text label for the job itself, separate from carriers[].name and unrelated to cargo[].description. Set it at submit time, or afterward with PUT /jobs/{id}/name, which can also change or clear it (there is no separate DELETE). It has no effect on the packing; it's simply echoed back on GET /jobs/{id} and GET /jobs/{id}/result. Leading and trailing whitespace is trimmed, and a value that is only whitespace is stored as no name at all: sending " ", sending null, and omitting the key from the PUT body all have the same effect. To find orders by name, list them with GET /v2/jobs?q=...; see Listing your jobs.
Coordinate frame
X is longitudinal (length), Y is lateral (width), Z is vertical (up), fixed for every carrier. Each carrier has its own frame whose origin corner is x = 0, y = 0, z = 0: z = 0 is the floor, and x = 0 is the front wall: the closed end of the carrier, away from the doors, which are at the far end of X. The default -X consolidation packs cargo toward it. Everything is in units.length, and rotations are always in degrees. The same frame and the same diagram apply here as in Coordinate frame; for what a placement's x/y/z, sizeX/Y/Z and orientationR* mean, how to plot one, and a worked example, see Reading a placement in Core concepts.
Not supported
What the API does not do, in one place:
- Geometry other than a box. Coming in a future release. Any
geometry.typeother than"box"is a400. - A primary objective other than
MinimizeCarriers. Any otherconfiguration.objectiveis a400; see The primary objective. configuration.tolerance. Any value,0included, is a400. It is rejected rather than ignored, so you never get a plan that quietly disregarded a tolerance you asked for.- A tilt switch.
allowedRotationsis the only rotation control: there is no separate boolean that lets a box tip onto its side. See Orientation. - Other cargo rules.
allowStackingOnTop,sameSkuStackingandallowedRotationsare a line's own rules; between kinds of cargo, a job applies cargo classes and stacking rules (see Stacking rules). A job has no priority field and no other rule that relates one load unit to another, apart from declared groups (see Separating groups along the carrier). Carriers take noconstraintsat all. - Volume, area or loading metres as input.
units.volume,units.areaandunits.ldmonly format output; send dimensions instead. See Output-only kinds. - Routes or stops. To unload in stages, declare groups, give each a packing order and set
configuration.groupSeparation; see Separating groups along the carrier. - A system SKU catalogue. The system catalogue holds carriers only; a cargo line references a SKU from your own SKU library. See The system catalogue.
- One file with every carrier's instructions. Loading instructions come as one PDF per carrier, with no archive for the whole job; see Loading-instruction PDFs.
- An embeddable viewer. The share link opens a page for people: there is no widget or SDK to build it into your app; see Shareable 3D viewer link.
- A synchronous solve. Every solve is a job you submit, poll and collect; see Async & validate.
Once you've got this shape, jump to the API Reference for every field.