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
    • Orders within range time
      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
    • User's Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  • Settings
    • Set Vat Value
    • get Vat Value
  1. Orders

Update Order

PATCH
http://82.180.154.188:4352/orders/68449802ecd9437297a059ac
Last modified:2025-06-13 21:36:53
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, price, discount, VAT, and items
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
service type is either WashAndIron, Iron, DryClean
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/68449802ecd9437297a059ac' \
--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",
    "priceOfPackage": 30,
    "items" : [
        {
            "item": "6839ac879acc3a8e983ef55c",
            "quantity": 2,
            "serviceType": "WashAndIron"
        },
        {
            "item": "6839adf19acc3a8e983ef568",
            "quantity": 1,
            "serviceType": "DryClean"
        }
    ],
    "VAT": 15,
    "discount": 2
}'
Response Response Example
{"status":"success","message":"Order updated successfully"}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Modified at 2025-06-13 21:36:53
Previous
Delete order
Next
All Branches
Built with