Skip to Content
Company and catalog

Get the company that owns the key

GET
/company

Returns the company the API key belongs to, and the key's own scopes and locations. Works with any scope. Use it as your first test call.

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
id*integer

Ajour company id.

name*string
cvr?|

Danish company registration number (CVR).

currency*string

Currency of all money amounts.

timeZone*string

Time zone of all local dates.

workHours?|

Opening hours used by the hour breakdown.

key*

The API key used for this call.

Example Request
curl -X GET 'https://api.ajour.dk/v1/company'
Example Response
{  "id": 412,  "name": "Café Nørrebro ApS",  "cvr": "12345678",  "currency": "DKK",  "timeZone": "Europe/Copenhagen",  "workHours": {    "start": "07:00",    "end": "23:00"  },  "key": {    "keyId": "7Kq2Vx9b",    "scopes": [      "catalog:read",      "sales:read"    ],    "locationIds": null  }}