Download a report as PDF or Excel
Builds the report and returns the file: the same PDF or Excel file as in the Ajour back office. Choose the format with format or the Accept header. A report covers one location or all the key's locations, so a key limited to several locations must pass one locationId. Large periods can take up to 90 seconds. Requires scope reports:read. sales-per-client and client-card-balances also need customers:read. At most 10 report files per minute per key.
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.
reportType*stringThe report to build. See GET /reports for the list.
"total-sales""total-sales-per-date""total-sales-per-product-group""sales-per-date-and-time""sales-per-date-time-and-product""sales-per-salesperson""sales-per-salesperson-avg-sales-per-expedition""sales-returns-per-salesperson""turnover-per-guest""logbook-per-salesperson""sales-per-client""client-card-balances"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<>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"format?stringFile format: pdf (default) or xlsx. Overrides the Accept header.
"pdf""xlsx"clientCode?stringCustomer card code, for reports that list clientCode in their filters. Needs customers:read.
cardType?stringCustomer card type, for reports that list cardType in their filters. Needs customers:read.
The report file.
response?unknowncurl -X GET 'https://api.ajour.dk/v1/reports/total-sales?from=2026-11-01&to=2026-11-21&locationId=1031&productGroupId=10'null