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 toolorder.shipment.mark_shipped· SDKclient.call('order.shipment.mark_shipped', …) - Events:
shipment.shipped,order.preparing,order.shipped
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "order_id": { "minLength": 1, "type": "string" }, "shipment_id": { "minLength": 1, "type": "string" } }, "required": [ "order_id", "shipment_id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "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"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)