curl --location --request PATCH 'http://localhost:3000/orders/1/status' \ --header 'Content-Type: application/json' \ --data '{ "status": "PAID" }'
{ "id": 1, "customerEmail": "[email protected]", "totalAmount": "45.50", "status": "PAID", "createdAt": "2026-03-10T10:30:00.000Z" }
Update the status of an existing order
PENDING
PAID
CANCELLED