The Reports API provides access to Zippi’s operational and financial analytics. Summary data is returned as structured JSON; the export endpoint streams a downloadable CSV file directly to the caller. Both endpoints accept the same date-range and view-scope parameters so that a UI can show a live table and offer a matching download without re-querying different logic.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CRISTIANCAMACH34/Zippi/llms.txt
Use this file to discover all available pages before exploring further.
All monetary values returned by report endpoints — totals, revenues, fees, settlements, and variances — are expressed as integer centavos (Colombian pesos × 100). Divide by
100 before displaying currency in the UI.Permissions
| Permission | Description |
|---|---|
reports.read | Query and view operational and financial report data |
reports.export | Download reports as CSV files |
cashier, finance_admin, city_admin, country_admin, business_owner, business_admin, and business_branch_admin roles.
GET /api/v1/reports/summary
Returns an aggregated operational and financial summary for the given time window. Theview parameter allows callers to scope the summary to a specific operational lens (e.g. orders, revenue, couriers).
Permission required: reports.read
Query Parameters
ISO 8601 date (
YYYY-MM-DD) — start of the reporting window (inclusive). If omitted, the service applies a default lookback (typically the current calendar month).ISO 8601 date (
YYYY-MM-DD) — end of the reporting window (inclusive). Defaults to today.Scope filter for the summary. Controls which metric groups are included in the response. Typical values:
orders, revenue, couriers, cashier. When omitted, a full cross-domain summary is returned.Response
Whether the request succeeded.
Summary payload. Structure varies by
view; the full summary includes all groups.Order metrics — total count, completed, cancelled, and failed counts; average delivery time in seconds.
Revenue metrics —
gross_revenue, service_fees, net_revenue, all in centavos.Courier performance metrics — active courier count, total deliveries, average deliveries per courier.
Cashier metrics — total collections by method (cash, Wompi, other), total variance across closed shifts — all in centavos.
Echoes back the resolved
start_date and end_date used for the query.GET /api/v1/reports/summary/export
Streams the same summary data as a UTF-8 encoded CSV file. The filename is generated by the service and returned in theContent-Disposition header. Accepts the same query parameters as GET /api/v1/reports/summary.
Permission required: reports.export
Query Parameters
ISO 8601 date (
YYYY-MM-DD) — start of the reporting window (inclusive).ISO 8601 date (
YYYY-MM-DD) — end of the reporting window (inclusive).Scope filter controlling which metric groups are included in the CSV export. Same values as the JSON summary endpoint.
Response Headers
| Header | Value |
|---|---|
Content-Type | text/csv; charset=utf-8 |
Content-Disposition | attachment; filename="<generated_filename>.csv" |
The export filename is server-generated based on the report scope and date range (e.g.
zippi_summary_2024-01-01_2024-01-31.csv). It is safe to use directly as a save-as filename.