v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🛒 Ecommerce

Update order status

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.

patch/ecommerce/orders/status/{orderId}

Request body

statusstring

Example request

{
  "status": "DELIVERED"
}

Response

Update order status

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "status": "FULFILLED"
  },
  "message": "Order status changed successfully",
  "statusCode": 200,
  "success": true
}