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

Get all orders

GET
http://82.180.154.188:4352/orders
Last modified:2025-04-12 15:20:43
allow user to get all their orders.
if the loged-in user is an admin this end point will retrieve all orders.
if the loged-in user is a delivery this end point will retrieve all orders assigned to him.
You can filter orders by their status as well by passing status in the request query parameters it can only be WAITINGFORPICKUP, PICKEDUP, RECIEVED, READY, DELIVERED, or CANCELLED
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://82.180.154.188:4352/orders' \
--header 'Authorization: Bearer '
Response Response Example
{
    "status": "success",
    "results": 1,
    "data": {
        "orders": [
            {
                "_id": "67fa698e6fb49c77ad2fd489",
                "user": {
                    "_id": "67f934742646815cf3d84177",
                    "name": "Mostafa Youssef",
                    "email": "user@gmail.com",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            32.322,
                            23.434344
                        ],
                        "area": "خميس مشيط",
                        "buildingNo": "1111",
                        "floorNo": "54554",
                        "apartmentNo": "2332",
                        "buildingLockCode": "12332",
                        "securityGuardMobile": "132312"
                    }
                },
                "branch": {
                    "_id": "67fa5e9cf0bc58483702a71c",
                    "name": "Downtown Branch for testing loation",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            30.111111,
                            30.111112
                        ],
                        "area": "Downtown"
                    }
                },
                "pickUpDateFrom": "2025-04-11T14:00:00.000Z",
                "pickUpDateTo": "2025-04-11T16:00:00.000Z",
                "deliveryDateFrom": "2025-04-12T14:00:00.000Z",
                "deliveryDateTo": "2025-04-12T16:00:00.000Z",
                "status": "WAITINGFORPICKUP",
                "createdAt": "2025-04-12T13:24:30.864Z",
                "updatedAt": "2025-04-12T13:24:30.864Z",
                "__v": 0
            }
        ]
    }
}

Request

Query Params
status
string 
optional
Example:
WAITINGFORPICKUP
Header Params
Authorization
string 
required
Example:
Bearer {{JWT}}

Responses

🟢200OK
application/json
Body
status
string 
required
results
integer 
required
data
object 
required
orders
array [object {8}] 
required
Previous
Delete item
Next
Single Order
Built with