Skip to main content

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.

FromTo
RequestedCreated
CreatedProcessing
CreatedPicked
CreatedPacked
ProcessingPicked
ProcessingPacked
PickedPacked
LabelCreatedFulfilled
FulfilledReturned
CreatedOnHold
ProcessingOnHold
PickedOnHold
OnHoldCreated
OnHoldProcessing
OnHoldPicked
DraftCancelled
RequestedCancelled
CreatedCancelled
ProcessingCancelled
PickedCancelled
PackedCancelled
OnHoldCancelled

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:

OperationFromTo
Buy a LabelCreated, Processing, Picked, or PackedLabelCreated
Cancel a LabelLabelCreatedPacked

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​

StatusMeaning
409Order.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
422The 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.