Order Lifecycle
Current status enum
The current public Order status enum contains Created, Requested, OnHold,
Cancelled, Fulfilled, Processing, Picked, Packed, LabelCreated,
Returned, Error, and Draft. Enum membership does not by itself define a
status meaning, initial state, reachability, or caller-settable target.
Verified update transitions
Use Update Order Status for the following caller transitions. Any pair not listed is refused.
| From | To |
|---|---|
Requested | Created |
Created | Processing |
Created | Picked |
Created | Packed |
Processing | Picked |
Processing | Packed |
Picked | Packed |
LabelCreated | Fulfilled |
Fulfilled | Returned |
Created | OnHold |
Processing | OnHold |
Picked | OnHold |
OnHold | Created |
OnHold | Processing |
OnHold | Picked |
Draft | Cancelled |
Requested | Cancelled |
Created | Cancelled |
Processing | Cancelled |
Picked | Cancelled |
Packed | Cancelled |
OnHold | Cancelled |
The three OnHold rows are resumes. To resume an Order from OnHold, send the status it was held from. Mailhub
checks the requested status against the one it recorded at hold time and
refuses any other target; the refusal names the status to send. For an Order
with no recorded hold status, the status you send is accepted.
Transitions only Mailhub makes
LabelCreated is never a caller target. These transitions happen as a side
effect of another operation:
| Operation | From | To |
|---|---|---|
| Buy a Label | Created, Processing, Picked, or Packed | LabelCreated |
| Cancel a Label | LabelCreated | Packed |
There is no LabelCreated → Cancelled transition. To cancel an Order that
holds a Label, cancel the Label first (the Order returns to Packed), then
cancel the Order.
Update outcomes
| Status | Meaning |
|---|---|
409 | Order.StatusTransitionNotAllowed: the transition is not allowed — it is not in the tables above, the Order is already in the requested status, or a resume names the wrong status. The message lists the statuses the Order can move to |
422 | The request failed validation: the status is Error (10) or not a defined value, reason is longer than 500 characters, or source is longer than 100 characters |
Inspect the returned response before continuing a workflow.