# Update an order's status **PUT /orders/{id}** ## Servers - Local development server: http://localhost:3000/api/v1 (Local development server) - Production server: https://referspecs-backend.onrender.com/api/v1 (Production server) ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **id** (string) The CUID of the order to update ### Body: application/json (object) - **status** (string) The new status of the order (e.g., 'Processing', 'Shipped', 'Delivered', 'Cancelled') ## Responses ### 200 Order updated successfully #### Body: application/json (object) - **id** (string) Unique identifier for the order (CUID) - **userId** (string) CUID of the user who placed the order - **status** (string) Current status of the order (e.g., 'New', 'Processing', 'Shipped') - **createdAt** (string(date-time)) Timestamp when the order was created - **stripePaymentIntentId** (string | null) Associated Stripe Payment Intent ID ### 400 Bad Request (e.g., invalid status value) #### Body: application/json (object) - **message** (string) A message describing the error ### 401 Unauthorized #### Body: application/json (object) - **message** (string) A message describing the error ### 404 Order not found #### Body: application/json (object) - **message** (string) A message describing the error ### 500 Internal Server Error #### Body: application/json (object) - **message** (string) A message describing the error [Powered by Bump.sh](https://bump.sh)