Get all orders
GET
http://82.180.154.188:4352/orders
Last modified:2025-04-12 15:20:43
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}}