simpla.fydocs

Get dashboard statistics summary

Returns aggregated KPIs including sales totals, vendor counts, and webhook status

GET
/stats/summary

Returns aggregated KPIs including sales totals, vendor counts, and webhook status

x-api-key<token>

In: header

Query Parameters

period?string

Predefined time period (default: 30d)

Value in"today" | "7d" | "30d" | "90d" | "custom"
startDate?string

Start date for custom period (ISO 8601 format)

endDate?string

End date for custom period (ISO 8601 format)

Response Body

application/json

curl -X GET "https://example.com/stats/summary"
{
  "totalSales": 1542,
  "totalSalesValue": 25487900.5,
  "salesChange": 12.5,
  "activatedVendors": 87,
  "inactiveVendors": 12,
  "processedSales": 850,
  "pendingSales": 15,
  "webhookSuccessRate": 94.5,
  "prospected": 142,
  "converted": 38,
  "conversionRate": 24.7
}
Empty
Empty