Skip to Content
Sales

Get key figures for a period

GET
/sales/summary

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.

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"
metrics?array<>

Only return these figures. Leave out to get all.

compare?"previousYear"

Add last year's figures for the same weekdays.

Value in"previousYear"

Response Body

OK

application/json
  1. response
period*
currency*string
vat*string
Value in"include""exclude"
metrics*

Key figures. Only the requested metrics are present.

previousYear?

Only when compare=previousYear.

Example Request
curl -X GET 'https://api.ajour.dk/v1/sales/summary?from=2026-11-01&to=2026-11-21&locationId=1031'
Example Response
{
  "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
    }
  }
}