Skip to content
v0.3

order.shipment.mark_shipped

Stamp the departure on ONE parcel. Refused with document_required when the instance requires a document before dispatch and none is attached to this parcel, and while the order has an active hold. Idempotent by state: a parcel that already left is a success no-op. The ORDER advances to shipped only when every one of its parcels has gone.

  • Scope: order.write
  • System: no
  • Reachable from: POST /v1/commands/order.shipment.mark_shipped (tenant credential) · MCP tool order.shipment.mark_shipped · SDK client.call('order.shipment.mark_shipped', …)
  • Events: shipment.shipped, order.preparing, order.shipped
{
"properties": {
"order_id": {
"minLength": 1,
"type": "string"
},
"shipment_id": {
"minLength": 1,
"type": "string"
}
},
"required": [
"order_id",
"shipment_id"
],
"type": "object"
}
{
"additionalProperties": false,
"properties": {
"order_id": {
"type": "string"
},
"order_status": {
"type": "string"
},
"shipment_id": {
"type": "string"
},
"shipped_at": {
"type": "string"
}
},
"required": [
"order_id",
"shipment_id",
"shipped_at",
"order_status"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)