API reference

Business

Your business at a glance: the numbers on the dashboard's home and its analytics. Read only. Scope: business.

GET/dashboard/summary

Query
tz IANA time zone that "today" is computed in, e.g. America/El_Salvador. Default UTC.
curl "https://api.malla.fun/dashboard/summary?tz=America/El_Salvador" \
-H "Authorization: Bearer $MALLA_API_KEY"
{
"stats": {
"pendingOrders": 3,
"ordersToFulfil": 5,
"salesTodayCents": 18500,
"salesLast7DaysCents": 142000,
"conversationsNeedingAttention": 2,
"balanceCents": 98000,
"currency": "USD"
},
"setup": {
"whatsappConnected": true,
"instagramConnected": false,
"hasActiveProducts": true,
"botPublished": true,
"payoutAccountConfigured": true,
"hasLogo": true,
"teamInvited": false
},
"recentOrders": [],
"timeZone": "America/El_Salvador"
}

GET/dashboard/analytics

Sales analytics for a period, each number next to the period right before it: revenue, orders, average ticket, customers (new and returning), payment rate, the sales chart, sales by channel, best sellers and best customers, the hours that sell, discount codes, cart recovery and stock alerts. Sales are orders paid in the period that are still paid or fulfilled.

Query
range 7d, 30d, 90d or 12m, today included. Default 30d. 12m buckets the chart by month, the rest by day.
tz IANA time zone the days and hours are local to. Default UTC.
curl "https://api.malla.fun/dashboard/analytics?range=30d&tz=America/El_Salvador" \
-H "Authorization: Bearer $MALLA_API_KEY"
{
"range": "30d",
"currency": "USD",
"granularity": "day",
"start": "2026-09-22T06:00:00.000Z",
"end": "2026-10-22T06:00:00.000Z",
"previousStart": "2026-08-23T06:00:00.000Z",
"kpis": {
"current": { "revenueCents": 1141400, "ordersCount": 74, "averageOrderCents": 15424, "returningRate": 0.88, "paymentRate": 0.92 },
"previous": { "revenueCents": 1658265, "ordersCount": 98, "averageOrderCents": 16921, "returningRate": 0.74, "paymentRate": 0.93 }
},
"series": { "current": [{ "bucket": "2026-09-22", "revenueCents": 41200, "ordersCount": 3 }], "previous": [] },
"channels": [{ "channel": "whatsapp", "revenueCents": 702100, "ordersCount": 46 }],
"topProducts": [{ "productId": "01a0b7f5-…", "title": "Mochila de cuero Sierra", "quantity": 19, "revenueCents": 245100 }],
"heatmap": [[0, 0, 1, 0]]
}