List sales lines
Every receipt line, for when you build your own figures or copy data to a data warehouse. Lines with the same receiptNumber and locationId make one receipt. Sorted by date, then id. For a nightly copy, store the newest syncedAt you have and pass it as syncedSince next time. The period can be at most 92 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"syncedSince?stringOnly lines uploaded to Ajour after this time.
date-timelimit?integerItems per page.
1 <= value <= 1000100cursor?stringThe nextCursor value from the previous page.
OK
application/json- response
A page of sales lines.
data*array<>nextCursor*|Pass as cursor to get the next page. null on the last page.
curl -X GET 'https://api.ajour.dk/v1/sales?from=2026-11-01&to=2026-11-21&locationId=1031&syncedSince=2026-11-21T00%3A00%3A00Z'{
"data": [
{
"id": "88213904",
"locationId": 1031,
"date": "2026-11-21T08:14:52+01:00",
"receiptNumber": 204511,
"orderType": "pos",
"lineType": "product",
"product": {
"id": "1001",
"name": "Cappuccino"
},
"productGroupId": "10",
"quantity": 2,
"unitPrice": 42,
"discount": 0,
"amountInclVat": 84,
"amountExclVat": 67.2,
"isReturn": false,
"salesperson": "Anna",
"clientId": null,
"syncedAt": "2026-11-21T08:20:03Z"
}
],
"nextCursor": "eyJkIjoiMjAyNi0xMS0yMVQwODoxNDo1MiIsImkiOjg4MjEzOTA0fQ"
}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`.
List report types GET
Each report you can download, with its formats and the filters it accepts. Reports with customer card data show only when the key has the `customers:read` scope. Requires scope `reports:read`.