🛒 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
Example request
{
"status": "DELIVERED"
}Response
Update order status
Example response
{
"data": {
"status": "FULFILLED"
},
"message": "Order status changed successfully",
"statusCode": 200,
"success": true
}