Dashboard
1 API call in this section.
Get Dashboard
Customer Portal / Delivery Management / Dashboard
GET
/customer/delivery/dashboardReturns dashboard data
KPIs, wallet snapshot, chart data, and recent deliveries. Metrics and chart series are aggregated server-side for lower latency.
Query parameters
| Parameter | Type | Description |
|---|---|---|
tz | string | IANA timezone Example: |
recent_limit | string | Number of recent deliveries (1-20) Example: |
chart_days | string | Number of days for chart (7-31) Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/customer/delivery/dashboard?tz=UTC&recent_limit=5&chart_days=7" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
200OK
Response body
json
1{2 "success": true,3 "data": {4 "metrics": {5 "created_mtd": 15,6 "in_transit": 3,7 "pending": 2,8 "delivered": 109 },10 "wallet": {11 "balance": 500,12 "spend_mtd": 15013 },14 "charts": {15 "delivery_week": {16 "title": "Orders This Week",17 "period": {18 "start": "2026-01-28",19 "end": "2026-02-04"20 },21 "data": {22 "labels": [23 "2026-01-28",24 "2026-01-29",25 "2026-01-30"26 ],27 "series": {28 "created": [29 2,30 3,31 132 ],33 "delivered": [34 1,35 2,36 137 ]38 }39 },40 "insights": {41 "total_created": 6,42 "total_delivered": 4,43 "completion_rate": 67,44 "trend": "up"45 }46 }47 },48 "recent_deliveries": [49 {50 "id": "uuid",51 "delivery_code": "DEL-12345",52 "from": "123 Main St",53 "to": "456 Oak Ave",54 "status": "in_transit",55 "payment_status": "paid",56 "delivery_fee": 25,57 "created_at": "2026-02-04T10:00:00Z"58 }59 ]60 }61}