Admin API/Analytics/Queries
analytics
queryReports for a period (since inclusive, until exclusive; at most 2 years). Ask for the same fields twice with aliases to compare two periods.
Returns AnalyticsReport!
query Analytics($since: DateTime!, $until: DateTime!) {
analytics(since: $since, until: $until) {
currencyCode
since
timezone
until
adSources {
avgDaysToDeliver
confirmed
delivered
detail
fees
imageUrl
}
agents {
avgDaysToDeliver
confirmed
delivered
detail
fees
imageUrl
}
carriers {
avgDaysToDeliver
confirmed
delivered
detail
fees
imageUrl
}
cash {
collected
pending
pendingOrders
}
channels {
avgDaysToDeliver
confirmed
delivered
detail
fees
imageUrl
}
}
}
# Variables
{
"since": "2026-11-01T10:00:00Z",
"until": "2026-11-01T10:00:00Z"
}Arguments
Returned fields
- adSources[AnalyticsRow!]!required
- Storefront orders that arrived with utm_source (ads, influencers). detail = utm_campaign.
Arguments
firstInt
- agents[AnalyticsRow!]!required
- Confirmation calls made in the period, by agent. orders = calls; confirmed = calls that confirmed.
- carriers[AnalyticsRow!]!required
- Parcels SHIPPED in the period, by delivery company.
- cashAnalyticsCash!required
- channels[AnalyticsRow!]!required
- By where the order came from: online_store, whatsapp, manual, api, import.
- cities[AnalyticsRow!]!required
Arguments
firstInt
- currencyCodeString!required
- overTime[AnalyticsPoint!]!required
- Hours for up to 2 days, days up to 120 days, weeks beyond.
- products[AnalyticsRow!]!required
Arguments
firstInt
- sinceDateTime!required
- summaryAnalyticsSummary!required
- timezoneString!required
- untilDateTime!required