Errors & troubleshooting
Most errors from the /v2 API are machine-readable problem+json with a stable top-level code. Two have an empty body instead. This guide covers all of it: the shapes, the code registry by status, and how to react to each.
When to use this
- You're writing error handling and want to branch on a stable
code, not a status code alone. - You hit a
400/401/403/404/409/412/413/415/422/429/503and need to know what it means and what to do.
The problem+json shape
Most errors follow RFC 9457 (application/problem+json) with a stable top-level code. For field-level problems, errors[] lists each offending field; the subsection below explains its pointer.
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "Validation failed.",
"status": 400,
"code": "validation_failed",
"errors": [
{ "pointer": "/cargo/0/geometry/type", "code": "validation_failed", "message": "Only 'box' geometry is supported." }
]
}
| Field | Notes |
|---|---|
type |
URI for the problem type. Not customized per error: it points at the response's HTTP status, so two failures with different code values share one type. Usually the RFC 9110 section for that status, but the 422 points at RFC 4918 instead, and the three 429s carry no type at all. Switch on code, never on this field. |
title |
Short, human-readable summary. |
status |
HTTP status code (also on the response). |
detail |
Human-readable explanation for this occurrence, where present. |
code |
Stable machine-readable code; branch on this when it's present. |
errors[] |
Per-field problems on this shape: pointer, code (validation_failed, unless a field code applies: ambiguous_source or library_entry_not_found on the libraryId of a job carrier or cargo line, or override_field_not_allowed on its overrides; unknown_cargo_class, duplicate_pair or conflicting_rule in a rule set, on a SKU's classes, or under a job's /constraints/stackingRules/ (including overrides); stacking_rule_set_not_found on a job's ruleSetId), message. |
resource |
On a 409 saying something already exists (external_id_taken, saved_load_exists, cargo_class_key_taken, cargo_class_name_taken, stacking_rule_set_name_taken), when it still exists: the existing resource, as type (library_entry, saved_load, cargo_class, stacking_rule_set; tolerate others) and id (a class's key, otherwise its id). |
Only title and status are guaranteed present; type/code/detail/errors/resource appear where they apply. type is on every problem body except the three 429s.
What a client actually has to handle
errors[].pointeris a JSON Pointer (RFC 6901) into the request body, over the member names as this contract spells them (camelCase, also when you sent another case), e.g./carriers/0/externalId. A name you chose yourself, a group name or anoverridesmember, appears as you sent it, with~written as~0and/as~1. For a query parameter or a header it is its own name, without a leading/(e.g.limit,Idempotency-Key). An empty pointer means the body as a whole. Against a body sent in the contract's spelling it names the value at fault; for a missing member it names where that member belongs.- Some responses have no body.
401and the idempotency409(reusedIdempotency-Keywith a different body) are both empty. The409s forjob_already_terminal,job_not_succeeded,saved_load_exists,external_id_taken,share_link_not_retrievable,cargo_class_key_taken,cargo_class_name_taken,cargo_class_in_useandstacking_rule_set_name_takendo carryproblem+jsonwith acode.
The error code registry, by status
Three patterns cover most codes: *_not_found when an id names nothing you can use, max_* when a request would pass a limit your plan sets on a count, and *_exceeded when a quota or the request rate is used up. too_many_active_jobs is the one count limit that does not follow the pattern.
| HTTP | code |
When |
|---|---|---|
400 |
validation_failed |
Request invalid: errors[] lists the offending fields of the body, or the offending query parameter (e.g. limit, carrier) (see above for how its pointer reads). A PATCH on a library entry that changes units.weight or units.length without carrying the numbers stored in that unit gets it too, with the pointer /units/weight or /units/length: see A change of unit needs its numbers |
400 |
ambiguous_source |
A field code inside errors[]: a carrier sends libraryId together with geometry, name, category, tareWeight or maxWeight, or a cargo line sends it together with geometry, weight, category, constraints or classes, or constraints.stackingRules sends ruleSetId together with directOn or towerLimits. Send one form or the other |
400 |
library_entry_not_found |
A field code inside errors[]: the libraryId of a carrier or cargo line names no entry you can use (unknown, deleted, another account's, or malformed; on a cargo line, anything that is not one of your SKUs). One error per such line. The id of one of your libraries, or of the system catalogue, gets the same code, with a message that says it named a library |
400 |
override_field_not_allowed |
A field code inside errors[]: a carrier's overrides sent a member other than maxStackHeight or maxWeight, or a cargo line's a member other than constraints. The pointer names the member as you sent it, e.g. /carriers/0/overrides/cost or /cargo/0/overrides/weight |
400 |
unknown_cargo_class |
A field code inside errors[]: a class key your account does not have, in a SKU's classes or in a rule's upper or lower in a rule set; in a job's stackingRules (including overrides), a key no cargo line of the job carries and your account has not saved |
400 |
stacking_rule_set_not_found |
A field code inside errors[]: a job's constraints.stackingRules.ruleSetId names no rule set your account has (unknown, deleted, another account's, or not in the standard form) |
400 |
duplicate_pair |
A field code inside errors[]: a pair twice in one list; the pointer is at the second |
400 |
conflicting_rule |
A field code inside errors[]: a pair in both directOn and towerLimits; the pointer is at the towerLimits item |
401 |
none (empty body) | Key missing, invalid or revoked |
403 |
customer_api_not_entitled |
Key valid, but the plan has no customer API access. You can create a key on any plan, so this is the response an integration built ahead of an upgrade will see. The detail field names where to upgrade |
403 |
permission_denied |
The key lacks the permission this operation needs; detail names it. Checked after the plan's customer-API access, so it never hides that one. See Permissions |
403 |
request_body_not_supported |
You sent a request body to POST /v2/jobs/{id}/instructions or POST /v2/jobs/{id}/share. Neither takes one; send the request without a body. Note this shares the 403 status with the checks above, so branch on code, not on the status |
403 |
mixed_palletizing_not_entitled |
POST /v2/jobs submitted a MixedPalletizing job and the plan does not include that problem type. Distinct from the three 422s below: this means the capability is missing, not that the job is too big. See Mixed palletizing |
403 |
load_planning_not_entitled |
The symmetric case: POST /v2/jobs submitted, or defaulted to, a LoadPlanning job and the plan does not include it |
403 |
link_sharing_not_entitled |
POST /v2/jobs/{id}/share and the plan does not include link sharing. Checked before the job lookup, so an unentitled caller learns about the plan rather than about the job. Revoking a link is never gated this way |
403 |
libraries_not_entitled |
Key valid, but the plan does not include the company library involved: 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 an id exists. A job carrier or cargo line whose UUID libraryId names a type that is not available gets the same code on POST /jobs and POST /jobs/validate, and so does a job that names a cargo class on a plan without cargo classes, or a ruleSetId on a plan without stacking rule sets. On /cargo-classes and /stacking-rule-sets: the plan does not include cargo classes or stacking rule sets, which come with company libraries. For cargo classes and stacking rule sets, title and detail name what the plan lacks |
403 |
library_read_only |
POST, PUT or DELETE on the system catalogue (carrier_system_default). Checked before the request body or an Idempotency-Key is read; only we change this library, on any plan |
404 |
job_not_found |
Unknown job id, a job that belongs to another account, a job deleted after its expiresAt, or, on the instructions download, a job that is not an instructions job |
404 |
result_not_ready |
Job exists but hasn't succeeded yet |
404 |
artifact_not_ready |
The instructions job is yours, but this PDF is not available. While the job is queued or running, keep polling the job; once it has succeeded the answer is final (no PDF at that position, or removed by retention): request instructions again |
404 |
saved_load_not_found |
Unknown saved-load id, one already released, or one that belongs to another account; also a replace that names none of yours |
404 |
share_not_found |
GET /v2/jobs/{id}/share on a job of yours without a share link |
404 |
library_not_found |
No library you can use has this id |
404 |
library_entry_not_found |
The library has no entry with this id |
404 |
cargo_class_not_found |
Your account has no cargo class with this key |
404 |
stacking_rule_set_not_found |
Your account has no stacking rule set with this id |
409 |
job_already_terminal |
POST .../cancel on a job that already finished |
409 |
job_not_succeeded |
POST .../instructions, POST .../share or POST /saved-loads on a job that hasn't succeeded |
409 |
share_link_not_retrievable |
GET /v2/jobs/{id}/share for a link the API cannot show again, typically one minted before links could be read back. Share the job again, or revoke the link |
409 |
saved_load_exists |
POST /saved-loads for a run that is already saved. Nothing was changed, so after a timeout this means your first attempt landed. resource names the saved load |
409 |
external_id_taken |
POST or PUT on your SKU library with an externalId another SKU already has. A SKU code is unique within the library and case-sensitive. Use another code, or replace the SKU that has it. resource names the SKU that has the code |
409 |
cargo_class_key_taken |
POST /cargo-classes with a key another class already has. resource names that class (cargo_class, its key) |
409 |
cargo_class_name_taken |
POST or PUT on a cargo class with a name another class has, ignoring case. resource names the class that has it (cargo_class, its key) |
409 |
cargo_class_in_use |
DELETE on a cargo class that SKUs still have, or that rule sets name while removeFromRuleSets=true was not sent. skuCount and ruleSetCount say how many of each (both are always present); give the SKUs another class first, and send removeFromRuleSets=true to remove the class from the rule sets |
409 |
stacking_rule_set_name_taken |
POST or PUT on a rule set with a name another rule set has, ignoring case. resource names the rule set that has it (stacking_rule_set, its id) |
409 |
none (empty body) | Idempotency-Key reused with a different body while the key is kept (see Safe retries) |
412 |
revision_mismatch |
If-Match sent with a PATCH, PUT or DELETE on a library entry, a cargo class or a rule set does not match the current revision. currentRevision says which it is; read again and reapply your change |
413 |
payload_too_large |
The request body is larger than the API will read. Permanent for that body, so retrying it unchanged cannot succeed: split the order across several jobs instead. A very large cargo array is the usual cause |
415 |
unsupported_media_type |
A body sent under a content type other than application/json, or with none at all, to a route that reads JSON: POST /v2/jobs, POST /v2/jobs/validate, PUT /v2/jobs/{id}/name, POST /v2/saved-loads, POST /v2/libraries/{id}/entries, PUT /v2/libraries/{id}/entries/{entryId}, and POST and PUT on /v2/cargo-classes and /v2/stacking-rule-sets. PATCH /v2/libraries/{id}/entries/{entryId} takes application/merge-patch+json as well, and answers 415 with an Accept-Patch: application/merge-patch+json, application/json header and the detail Send the patch as application/merge-patch+json or application/json. (application/json-patch+json is refused). POST /v2/jobs/{id}/instructions and POST /v2/jobs/{id}/share take no body: they answer 403 request_body_not_supported to one instead, whatever the content type, and an empty body with a stray content type is not an error there |
422 |
max_items_per_job |
The job has more cargo units than your plan allows. Send fewer items, or upgrade the plan. detail names the limit's value |
422 |
max_carriers_per_job |
The job has more entries in carriers[] than your plan allows. Every entry counts, whatever its quantity: one entry with quantity: 20 counts once, and two entries with the same libraryId count twice. Merge entries for the same carrier, or upgrade the plan |
422 |
max_carrier_instances_per_job |
The carrier quantities add up to more carriers than your plan allows. That is the sum over all entries, where an entry without a quantity counts as one. Lower the quantities, or upgrade the plan |
422 |
max_saved_loads |
You keep as many saved loads of this problem type as your plan allows. Release one with DELETE /saved-loads/{id}, name it in replace to release it in the same call as the save, or upgrade the plan. detail names the limit's value |
422 |
max_library_entries |
A company library already holds as many entries as your plan allows for its type. Delete one, or upgrade the plan. detail names the limit. A PUT or PATCH never counts against it |
422 |
max_cargo_classes |
Your account already has as many cargo classes as your plan allows. detail names the limit |
422 |
max_stacking_rule_sets |
Your account already has as many stacking rule sets as it may keep, at most 50. detail names the limit |
429 |
rate_limit_exceeded |
Too many requests, too fast: the account may make 300 requests per minute across /v2. This is the one response that tells you how long to wait, in a Retry-After header |
429 |
too_many_active_jobs |
Concurrent-job limit reached: as many of your jobs are queued or running as your plan allows, instructions jobs included. Wait for one to finish |
429 |
monthly_quota_exceeded |
The monthly job quota is used up for the job's problem type. Each problem type meters its own pot, so mixed palletizing running out says nothing about load planning, and the other pot keeps accepting jobs. See Limits & quotas |
500 |
internal_server_error |
Something failed that the API did not anticipate. Treat it as transient: retry, and if it persists contact support. Not the same as the failed-job error.code internal_error further down this page, which reports a job that was accepted and then did not solve |
503 |
entry_write_conflict |
A PATCH, PUT or DELETE on a library entry, sent without If-Match, or with If-Match: *, kept colliding with concurrent changes to the same entry after the API's own retries. Nothing changed: send the same request again. With a specific If-Match, a change in between is a 412 instead |
A 500 carries internal_server_error and gives you nothing else to branch on: the cause is recorded internally and never appears in the body. It is the one entry in this registry that does not tell you what to change, because there is nothing on your side to change. Retry it.
A 429 is retryable, but how you wait depends on which one you hit. rate_limit_exceeded carries a Retry-After header with the number of seconds; honour it. too_many_active_jobs and monthly_quota_exceeded carry no such header, so back off on a schedule of your own choosing.
Validate first to catch 400s without queuing a job: POST /v2/jobs/validate runs the same validation as POST /v2/jobs and answers in the same shape. It applies the one access check a submit applies to company-library references (403 libraries_not_entitled), but not the problem-type, plan-limit and quota checks, so a body that validates can still be refused on submit. Authentication, the plan's customer-API gate and the request rate limit still apply, as on every /v2 route: validate can answer 401 or 403, and a tight validation loop can earn a 429 rate_limit_exceeded. See Async & validate.
Validate-only warnings
POST /v2/jobs/validate can return non-blocking warnings: the request is still valid: true, and a warning never stops a submit. They appear only in that response.
code |
When | Pointer |
|---|---|---|
cargo_exceeds_every_carrier |
A cargo line fits no carrier of the request in any of its allowed rotations, by size or because one unit is heavier than the carrier's maxWeight. Those units will be left in unplacedItems, with the reason no_carrier_fits (see Why cargo was left unplaced). |
/cargo/{i}, or /cargo/{i}/libraryId when the line references a SKU |
stacking_disabled |
No cargo line allows anything on top of it: allowStackingOnTop is false or not set on every line, after library values and overrides. Nothing will be stacked. |
/cargo |
zero_weight |
A cargo line weighs 0. | /cargo/{i}/weight, or /cargo/{i}/libraryId for a SKU reference |
unknown_member |
A member the contract does not define was found in constraints, in constraints.stackingRules, or in an item of its directOn, towerLimits or overrides, and the API ignored it. Names are matched ignoring case, and a member sent as null counts as not sent. An unknown member elsewhere in the body (the root, carriers[], cargo[]) is ignored without a warning, so an empty warnings does not mean nothing was ignored. |
That member, e.g. /constraints/stackingRules/directsOn |
The list may grow; branch on code and tolerate codes you do not know.
Failed jobs aren't HTTP errors
A job that fails during solving still returns 200 from GET /v2/jobs/{id}; the failure is in the body: status: failed, an errorCategory string for diagnostics, and an error object (code + message). Likewise, cargo that couldn't be placed in a succeeded job appears in unplacedItems, not as an error. See Async & validate.
error.code is a closed set:
error.code |
Meaning |
|---|---|
invalid_input |
The job couldn't be solved as submitted; have the user adjust the input. |
solver_error |
The solve didn't complete; retry. |
render_error |
Document rendering failed; retry. |
internal_error |
Everything else: retry, or contact support. |
error.message is a safe, human-readable sentence and never contains exception detail. errorCategory is the category behind it: diagnostic only, and not a closed set. Switch on error.code, not errorCategory.
Why cargo was left unplaced
Every entry in unplacedItems carries a reason: one code that says why those units were left out. It is always present; its value is one of the codes below, or null.
reason |
Meaning | How to react |
|---|---|---|
no_space |
The carriers that could take these units had no room left for them, or for the group they are kept together with, given the cargo's own stacking and rotation settings. This also holds when volume is still free: the free space was not usable for these units. | Add carriers or larger ones, allow stacking (allowStackingOnTop) or more rotations, or, when an earlier carrier closed early at the group, set keepTogether: false on it (see What segmented guarantees). |
over_weight |
Every carrier that could take these units had too little of its maxWeight left for one more unit. |
Add carriers, or a carrier with a higher maxWeight. |
no_carrier_fits |
One unit fits no carrier of the job, by size in any allowed rotation or by weight, so more carriers of these types will not help. It is the result-side counterpart of the validate warning cargo_exceeds_every_carrier. |
Use a larger or stronger carrier type, or change the cargo line. POST /v2/jobs/validate reports the same case before planning, as the warning cargo_exceeds_every_carrier. |
null |
No single cause can be named from the request and the result, for example when a carrier with no quantity limit would have taken these units. |
Nothing specific to fix: compare the unplaced cargo with the carriers you sent. |
The list may grow; branch on reason and tolerate values you do not know.
Notes & caveats
- Branch on
code, nottitle/detail. Codes are stable; the human-readable text may change. 403is permanent,429is transient. Retrying a403won't help: the account's plan needs to change, or the key needs the permissiondetailnames.429is worth retrying after a wait. Onlyrate_limit_exceededtells you how long, inRetry-After; for the other two, pick your own interval.404hides existence on purpose. A job that belongs to another account looks exactly like a job that doesn't exist: both arejob_not_found.- Two registries, one field name.
internal_server_erroris a top-levelcodeon a500: the request did not complete, and the job may not exist.internal_erroris anerror.codeinside a200body: the job does exist, was accepted, and then failed while solving. Keeping one lookup table for both fields conflates the two. - Validate to shift errors left.
POST /v2/jobs/validatereturns the same400as a real submit, without queuing a job or triggering a solve.
Related
- Authentication:
401/403/404auth behaviour. - Limits & quotas: the limits behind the
422and429codes, and how long the API keeps what you create. - Async & validate: dry-run validation, idempotency
409, failed-job detail.