---
title: "Update an order status (synchronous)"
method: PATCH
path: "/api/v1/orders/{id}/status"
tags: ["orders"]
---

# Update an order status (synchronous)

`PATCH /api/v1/orders/{id}/status`

Transitions the order to a new status, validated by the order state machine snapshot embedded at creation. On success it appends an immutable timeline event (OrderTrackingEvent). Operator / internal-integration path: accountCode and the actor (user or service account) come from the JWT.

## Path parameters

- `id` string, uuid, required

## Request body

- OrderStatusUpdate
  - `metadata` object, nullable
  - `status` string, required

## Response `200`

Order status updated.

- OrderStatusUpdateResponse
  - `id` string, required
  - `status` string, required
  - `previous_status` string, required
  - `updated_at` string, required
  - `event_id` string, required

## Other responses

- `400` — Invalid payload: missing/invalid status, metadata is not an object, or id is not a UUID.
- `401` — Authentication is missing, malformed, expired, or refers to a session that is no longer active.
- `403` — The caller is authenticated but lacks the required permission for this action.
- `404` — Order not found in the caller account.
- `422` — The status transition is not allowed by the order state machine, or the target is CANCELLED (cancellation must go through POST /orders/:id/cancel).
- `500` — Unexpected server error. The response body never leaks internal details.

## Changes

- **2026-07-07** `a3b4750a505f` — 1 breaking, 5 info
  - added the new required request property `status`
  - added the required property `event_id` to the response with the `200` status
  - added the required property `id` to the response with the `200` status
  - added the required property `previous_status` to the response with the `200` status
  - …2 more
- **2026-07-07** `84194c31ab85` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kruzer-corp/apis/oms-api/changes/api/v1/orders/:id/status/patch.md)

---

[API](https://skmtc.dev/kruzer-corp/apis/oms-api.md) · [All operations](https://skmtc.dev/kruzer-corp/apis/oms-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kruzer-corp/oms-api/revisions/38ef6e16a7a8/schema)
