Skip to Content
Reports

List report types

GET
/reports

Each report you can download, with its formats and the filters it accepts besides from and to. Reports with customer card data show only when the key has the customers:read scope. Reports that always cover all locations are left out for keys limited to some locations. Requires scope reports: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.

Response Body

OK

application/json
  1. response
data*array<>

The items on this page.

nextCursor?|

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

Example Request
curl -X GET 'https://api.ajour.dk/v1/reports'
Example Response
{
  "data": [
    {
      "type": "total-sales",
      "name": "Total sales",
      "formats": [
        "pdf",
        "xlsx"
      ],
      "filters": [
        "locationId",
        "productGroupId",
        "productId",
        "orderType",
        "salesperson"
      ]
    },
    {
      "type": "turnover-per-guest",
      "name": "Turnover per guest",
      "formats": [
        "pdf",
        "xlsx"
      ],
      "filters": [
        "locationId",
        "salesperson"
      ]
    }
  ],
  "nextCursor": null
}