LaundryAPI
  1. Orders
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Orders

Update Order

PATCH
http://82.180.154.188:4352/orders/67f934802646815cf3d8417d
Last modified:2025-04-13 22:49:10
this end point is uset to update an order, it differs based on the user requesting it.
in case of ...
Admin, You can only update delivery, status and price
User, You can only update pickUpDateFrom, pickUpDateTo, deliveryDateFrom, deliveryDateTo, status
Delivery, You can only update status
status can only be WAITINGFORPICKUP, PICKEDUP, RECIEVED, READY, DELIVERED, or CANCELLED
delivery is the ID of the delivery person the the admin will assign the order to.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://82.180.154.188:4352/orders/67f934802646815cf3d8417d' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "delivery": "67f77f8d8cb790ed566c31cd",
    "price": 12,
    "pickUpDateFrom": "2025-04-11T14:00:00.000Z",
    "pickUpDateTo": "2025-04-11T14:00:00.000Z",
    "deliveryDateFrom": "2025-04-11T14:00:00.000Z",
    "deliveryDateTo": "2025-04-11T14:00:00.000Z",
    "status": "PICKEDUP"
}'
Response Response Example
{"status":"success","message":"Order updated successfully"}

Request

Header Params
Authorization
string 
required
Example:
Bearer {{JWT}}
Body Params application/json
price
number 
optional
delivery
string 
optional
pickUpDateFrom
string 
optional
pickUpDateTo
string 
optional
deliveryDateFrom
string 
optional
deliveryDateTo
string 
optional
status
string 
optional
Examples

Responses

🟢200OK
application/json
Body
status
string 
required
message
string 
required
Previous
Delete order
Next
All Branches
Built with