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