curl --location --request PATCH '/orders/ORD-1705312200000-001/cancel'
{
"success": true,
"data": {
"id": "ORD-1705312200000-001",
"customerName": "John Doe",
"customerEmail": "john@example.com",
"status": "cancelled",
"items": [
{
"id": "item-1",
"orderId": "ORD-1705312200000-001",
"name": "Burger",
"quantity": 1,
"price": 8.99,
"subtotal": 8.99
}
],
"total": 8.99,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:32:00.000Z"
}
}