Customer Dashboard API

Aggregated data for the customer account dashboard overview.

Base: /api/v1/dashboard  |  X-Tenant-ID required
GET /api/v1/dashboard/customer 🔒 Auth Required

Returns aggregated summary of the customer account in parallel queries for performance.

Response

{
  "success": true,
  "data": {
    "user": { "id": "uuid", "name": "John", "email": "john@email.com", "phone": "123", "avatar_url": null },
    "stats": { "total_orders": 12, "pending_orders": 1, "wishlist_items": 4, "unread_notifications": 2 },
    "recent_orders": [ { "id": "uuid", "order_number": "ORD-123", "total": "4500.00", "status": "processing", "created_at": "2026-06-15T10:00:00Z" } ],
    "default_address": { "label": "Home", "street": "123 Main St", "town": "Nairobi" }
  }
}