LaundryAPI
  1. Branches
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
    • Single Order
    • Create Order
    • Delete order
    • Update Order
  • Branches
    • All Branches
      GET
    • Single Branch
      GET
    • branch's orders
      GET
    • Nearest Branches
      GET
    • Create Branch
      POST
    • update branch
      PATCH
    • Delete branch
      DELETE
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Branches

branch's orders

GET
http://82.180.154.188:4352/branches/67fa5e9cf0bc58483702a71c/orders
Last modified:2025-04-12 15:20:57
This end point retrievs all the orders assigned to a specific branch
if the loged-in user is an admin this end point will retrieve all orders.
if the loged-in user is an user this end point will retrieve all their orders only.
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/branches/67fa5e9cf0bc58483702a71c/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

Header Params
Authorization
string 
optional
Example:
Bearer {{JWT}}

Responses

🟢200Success
application/json
Body
status
string 
required
results
integer 
required
data
object 
required
orders
array [object {11}] 
required
Previous
Single Branch
Next
Nearest Branches
Built with