Skip to Content
Reports

Download a report as PDF or Excel

GET
/reports/{reportType}

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.

Authorization

apiKey
headerAuthorizationBearer <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.

Path Parameters

reportType*string

The report to build. See GET /reports for the list.

Value in"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"

Query Parameters

from*string

First day of the period, as a local date in Europe/Copenhagen.

Formatdate
to*string

Last day of the period, included. Local date in Europe/Copenhagen.

Formatdate
locationId?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?string

Only 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?string

Only this salesperson, by name as on the register.

vat?string

Show money amounts including or excluding VAT.

Default"include"
Value in"include""exclude"
format?string

File format: pdf (default) or xlsx. Overrides the Accept header.

Value in"pdf""xlsx"
clientCode?string

Customer card code, for reports that list clientCode in their filters. Needs customers:read.

cardType?string

Customer card type, for reports that list cardType in their filters. Needs customers:read.

Response Body

The report file.

response?unknown
Example Request
curl -X GET 'https://api.ajour.dk/v1/reports/total-sales?from=2026-11-01&to=2026-11-21&locationId=1031&productGroupId=10'
Example Response
null