Get business overview
Changed onAccount-wide business pulse in one call: revenue, orders, leads, new contacts, and live-site traffic over a date range, each compared against the immediately preceding period of equal length. Defaults to the last 7 days; the range cannot exceed 366 days. Use this as the starting point for any business review — drill into a specific site with GET /sites/{id}/analytics, and into records with the orders/contacts list endpoints.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Query parameters
Start of the date range (inclusive), as an ISO-8601 date (YYYY-MM-DD). Defaults to 6 days before end_date, so the default range is the last 7 days including today.
End of the date range (inclusive), as an ISO-8601 date (YYYY-MM-DD). Defaults to today.
Response
Business overview for the requested period
The resolved date range the metrics cover.
The comparison period: the range of equal length immediately before period.start_date.
Lowercase ISO currency code all monetary amounts are expressed in (the account's display currency).
All-time revenue in the account currency, in the smallest currency unit (cents for USD). Net of refunds: live orders that succeeded or were partly refunded, less what was refunded. Test purchases and disputed charges are left out.
Revenue in the account currency, in the smallest currency unit (cents for USD), with the preceding period of equal length for comparison and a per-day time series. Net of refunds: live orders that succeeded or were partly refunded, less what was refunded. Test purchases and disputed charges are left out.
Period totals with the preceding period of equal length for comparison and a per-day time series.
Period totals with the preceding period of equal length for comparison and a per-day time series.
Period totals with the preceding period of equal length for comparison.
Orders created in the period that have since been refunded or partially refunded. Attribution is by order date (refund timestamps are not tracked); amounts are in the account currency, in the smallest currency unit.
Top products by units sold over the period (units, not revenue — per-item revenue attribution is not tracked). Empty when nothing sold.
Traffic for the account's live site, or for its main site before that site is first published (which keeps any history imported from its earlier crevio.co page). Null only when the account has no site. Zeros may also mean analytics collection is temporarily degraded.
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
- warning