1. Delivery - Orders
3enab
🚚 Delivery Application
  • 👤 User Application
  • 🏪 Vendor Application
  • 👨‍💼 Admin Application
  • 🚚 Delivery Application
  • Auth - Delivery
    • Register a new delivery driver
      POST
    • Login delivery driver
      POST
    • Logout delivery driver
      POST
    • Refresh access token
      POST
    • Send phone OTP
      POST
    • Verify phone OTP
      POST
    • Send password reset OTP
      POST
    • Verify password reset OTP
      POST
    • Reset password
      POST
  • Delivery - Orders
    • Get all orders for delivery coordinator
      GET
    • Get driver's assigned orders
      GET
    • Driver — delivered orders report (date range)
      GET
    • Get order details
      GET
    • Send assignment request to driver (Coordinator)
      POST
    • Accept assignment (Driver)
      POST
    • Reject assignment (Driver)
      POST
    • Update order status
      PATCH
    • Coordinator — driver delivered orders report (date/time range)
      GET
  • Users - Delivery
    • Get current delivery user profile
      GET
    • Update current delivery user profile
      PUT
    • Delete current delivery user account
      DELETE
    • Change password
      POST
    • Change driver status (online/offline/busy)
      PATCH
    • Get all drivers by status (Coordinator)
      GET
    • Get driver by ID (Coordinator)
      GET
    • Update driver (Coordinator)
      PUT
    • Delete driver (Coordinator)
      DELETE
    • Get all delivery coordinators
      GET
  • Versions - Delivery
    • Get the latest version for Delivery app
  • Delivery - Delivery Areas
    • Get all delivery areas (delivery app)
    • Get delivery area by ID (delivery app)
  • Orders - Delivery
    • Get active orders for a specific driver
  • Vendors - Delivery
    • List vendors (Coordinator)
  1. Delivery - Orders

Get all orders for delivery coordinator

GET
/api/v1/delivery/orders
Retrieves orders based on the provided filters.
Omit isPickup → returns all orders (delivery + pickup)
isPickup=false → delivery orders only
isPickup=true → pickup (self-collection) orders only
Default status filter: preparing, out_for_delivery
Search by order number (orderNumber):
Order numbers are per vendor (vendor A and B can both have order #5).
orderNumber=42 → all orders with number 42 across all vendors (combine with pagination).
orderNumber=42&vendorId=... → order 42 for that specific vendor (usually one row).
When only orderNumber is set (no status), results include any status for that number.
Add status query params to narrow by status when searching by number.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Query Params

Responses

🟢200OK
application/json
Available orders fetched successfully
Body

Example
{
    "status": "success",
    "message": "Delivery orders fetched successfully",
    "data": {
        "orders": [
            {
                "_id": "string",
                "orderNumber": 0,
                "user": {
                    "_id": "string",
                    "name": "string",
                    "phone": "string"
                },
                "vendor": {
                    "_id": "string",
                    "name": "string",
                    "phone": "string",
                    "location": {}
                },
                "assignedDriver": "string",
                "pendingDriver": "string",
                "items": [
                    {
                        "item": {
                            "_id": "string",
                            "name": "string",
                            "description": "string",
                            "imagePath": "string",
                            "optionName": "string",
                            "category": {
                                "_id": "string",
                                "name": "string"
                            }
                        },
                        "optionId": "string",
                        "optionValue": "string",
                        "quantity": 0,
                        "unitPrice": 0,
                        "totalPrice": 0
                    }
                ],
                "address": {
                    "street": "string",
                    "city": "string",
                    "buildingNumber": "string",
                    "floor": "string",
                    "apartmentNumber": "string",
                    "phone": "string"
                },
                "status": "pending",
                "total": 0,
                "subtotal": 0,
                "deliveryFee": 0,
                "discount": 0,
                "paymentMethod": "string",
                "isPickup": true,
                "notes": "string",
                "rejectionReason": "string",
                "createdAt": "2019-08-24T14:15:22.123Z",
                "updatedAt": "2019-08-24T14:15:22.123Z"
            }
        ],
        "total": 150,
        "page": 1,
        "limit": 10,
        "totalPages": 15
    }
}
🟠401Unauthorized
Modified at 2026-04-08 13:50:28
Previous
Reset password
Next
Get driver's assigned orders
Built with