Orders within range time
GET
http://82.180.154.188:4352/orders/range
Last modified:2025-06-11 16:16:19
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
Modified at 2025-06-11 16:16:19