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
    • 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

Orders within range time

GET
http://82.180.154.188:4352/orders/range
Last modified:2025-06-11 16:16:19
Allow admin to get orders within a range
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://82.180.154.188:4352/orders/range?start=2025-06-02T20:17:19.661Z&end=2025-06-07T19:50:26.807Z' \
--header 'Authorization: Bearer '
Response Response Example
{
    "status": "success",
    "results": 2,
    "data": {
        "orders": [
            {
                "priceOfPackage": 0,
                "_id": "683e06cf781c0b0d3b777533",
                "user": {
                    "_id": "683dea01bda55959119473e4",
                    "name": "soha",
                    "email": "soha132003@gmail.com",
                    "phoneNumber": "201128709613",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            30.323,
                            30.3233
                        ],
                        "area": "Egypt ",
                        "buildingNo": "32",
                        "floorNo": "2",
                        "apartmentNo": "3",
                        "buildingLockCode": "122",
                        "securityGuardMobile": "1234"
                    }
                },
                "branch": {
                    "_id": "68252ebc35681134c64c0a28",
                    "name": "juddah Branch",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            30.111111,
                            30.111112
                        ],
                        "area": "juddah"
                    }
                },
                "pickUpDateFrom": "2025-06-03T04:00:00.000Z",
                "pickUpDateTo": "2025-06-03T06:00:00.000Z",
                "deliveryDateFrom": "2025-06-04T04:00:00.000Z",
                "deliveryDateTo": "2025-06-04T06:00:00.000Z",
                "status": "READY",
                "createdAt": "2025-06-02T20:17:19.661Z",
                "updatedAt": "2025-06-02T21:05:50.858Z",
                "__v": 0,
                "delivery": "683deed3bda559591194746f",
                "price": 150
            },
            {
                "_id": "68449802ecd9437297a059ac",
                "user": {
                    "_id": "68378af89f567a349f209877",
                    "name": "ADMIN",
                    "email": "admin@gmail.com",
                    "phoneNumber": "201000000000",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            34,
                            23
                        ],
                        "area": "خميس مشيط",
                        "floorNo": "54554"
                    }
                },
                "branch": {
                    "_id": "68252ebc35681134c64c0a28",
                    "name": "juddah Branch",
                    "location": {
                        "type": "Point",
                        "coordinates": [
                            30.111111,
                            30.111112
                        ],
                        "area": "juddah"
                    }
                },
                "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",
                "priceOfPackage": 30,
                "createdAt": "2025-06-07T19:50:26.807Z",
                "updatedAt": "2025-06-07T19:50:26.807Z",
                "__v": 0
            }
        ]
    }
}

Request

Query Params
start
string 
optional
Example:
2025-06-02T20:17:19.661Z
end
string 
optional
Example:
2025-06-07T19:50:26.807Z
Header Params
Authorization
string 
optional
Example:
Bearer {{JWT}}

Responses

🟢200OK
application/json
Body
status
string 
required
results
integer 
required
data
object 
required
orders
array [object {14}] 
required
Modified at 2025-06-11 16:16:19
Previous
Get all orders
Next
Single Order
Built with