Get the company that owns the key
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.
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.
OK
application/json- response
id*integerAjour company id.
name*stringcvr?|Danish company registration number (CVR).
currency*stringCurrency of all money amounts.
timeZone*stringTime zone of all local dates.
workHours?|Opening hours used by the hour breakdown.
key*The API key used for this call.
curl -X GET 'https://api.ajour.dk/v1/company'{ "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 }}Overview
Every endpoint of the Ajour Public API v1, with parameters and responses.
List locations GET
The company's locations (shops) that the key can see. Deleted locations are left out. `lastSyncedAt` is the time of the newest sales upload from that location, so you can see how fresh the data is. Requires scope `catalog:read`.