Skip to Content
Sales

List sales lines

GET
/sales

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.

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.

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<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?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"
syncedSince?string

Only lines uploaded to Ajour after this time.

Formatdate-time
limit?integer

Items per page.

Range1 <= value <= 1000
Default100
cursor?string

The nextCursor value from the previous page.

Response Body

OK

application/json
  1. response

A page of sales lines.

data*array<>
nextCursor*|

Pass as cursor to get the next page. null on the last page.

Example Request
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'
Example Response
{
  "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"
}