Skip to content
v0.3

order.shipment.set_tracking

Save the tracking (code / carrier / URL) on an order’s shipment — before or after it ships. Omitted fields keep their current value. Idempotent by state (re-saving the same tracking emits nothing).

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

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