Get key figures for a period
The same key figures as the cards on the Ajour dashboard. Add compare=previousYear to also get last year's figures for the same weekdays, aligned the same way as the dashboard. The period can be at most 366 days. Requires scope sales:read.
apiKeyAuthorizationBearer <ajr_live_<keyId>_<secret>>An Ajour API key, sent as Authorization: Bearer <key>. Create keys in the Ajour back office under Settings → API keys. Each key has scopes: catalog:read, sales:read, reports:read and customers:read.
from*stringFirst day of the period, as a local date in Europe/Copenhagen.
dateto*stringLast day of the period, included. Local date in Europe/Copenhagen.
datelocationId?array<integer>Only these locations. Repeat the parameter for more than one. Must be locations the key can see. Leave out for all of them.
productGroupId?stringOnly this product group (POS number).
productId?array<string>Only these products (POS numbers). Repeat the parameter for more than one.
orderType?array<>Only these order types. Repeat the parameter for more than one.
salesperson?stringOnly this salesperson, by name as on the register.
vat?stringShow money amounts including or excluding VAT.
"include""include""exclude"metrics?array<>Only return these figures. Leave out to get all.
compare?"previousYear"Add last year's figures for the same weekdays.
"previousYear"OK
application/json- response
period*currency*stringvat*string"include""exclude"metrics*Key figures. Only the requested metrics are present.
previousYear?Only when compare=previousYear.
curl -X GET 'https://api.ajour.dk/v1/sales/summary?from=2026-11-01&to=2026-11-21&locationId=1031'{
"period": {
"from": "2026-11-01",
"to": "2026-11-21"
},
"currency": "DKK",
"vat": "include",
"metrics": {
"totalTurnover": 486210.5,
"posTurnover": 451900,
"onlineTurnover": 34310.5,
"transactions": 6120,
"averageTransaction": 79.45,
"discount": 8120,
"returns": 1340,
"contributionMargin": 301455.2,
"contributionMarginPercent": 62
},
"previousYear": {
"period": {
"from": "2025-11-02",
"to": "2025-11-22"
},
"metrics": {
"totalTurnover": 441870,
"transactions": 5893
}
}
}List salesperson names GET
The salesperson names found on sales in the key's locations. Registers store names, not ids, so use the name in the `salesperson` filter. Requires scope `sales:read`.
Get sales grouped by one dimension GET
One endpoint for every dashboard chart and report table. `groupBy` picks the dimension. Rows are sorted by turnover, highest first. Time groupings (`hour`, `weekday`, `day`, `month`) are sorted by time instead. `hour` only returns the company's work hours, like the dashboard. The period can be at most 366 days. Requires scope `sales:read`.