---
title: "Update order status"
method: PATCH
path: "/ecommerce/orders/status/{orderId}"
tags: ["🛒 Ecommerce"]
---

# Update order status

`PATCH /ecommerce/orders/status/{orderId}`

The API allows an authenticated user with the role of `ADMIN` to update the status of an order.

The API expects the `orderId` to be passed as a path variable and the desired status (`DELIVERED` or `CANCELLED`) to be provided in the request body.

This API provides a secure and controlled way for administrators to modify the status of an order, enabling efficient order management within the system.

## Request body

- object
  - `status` string

## Response `200`

Update order status

- object
  - `data` object
    - `status` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
