Skip to content

Monitor customers with Ajour

With Ajour, ownr watches your customers and tells you when something changes. Through the API, your own system can put items in Ajour and get the changes delivered as webhooks.

Requires: the ajour scope and a licence or a purchased Ajour subscription. Without it, the Ajour endpoints answer 402, and the body links to where to buy. Calls to Ajour do not count against the API quota.

1. Add an item

Terminal window
curl -X POST "https://ownr.dk/api/v2/company/36732261/ajour" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"item": { "id": 36732261, "slug": "company", "url": "/api/v2/company/36732261", "name": "SNT ApS" },
"is_in_ajour": true
}
}

Persons and properties are added the same way with /person/{itemId}/ajour and /property/{dafId}/ajour. An organisation can have at most 50,000 items in Ajour.

2. See what is in Ajour

Call Returns
GET /company/{cvr}/ajour Whether one company is in Ajour
GET /account/ajour/companies All companies in Ajour, paged
GET /account/ajour/persons All persons in Ajour
GET /account/ajour/properties All properties in Ajour

3. Receive the changes

When something changes on an item in Ajour, ownr sends a webhook to your server. Set it up once as described under Webhooks, and see which events exist:

4. Remove an item

Terminal window
curl -X DELETE "https://ownr.dk/api/v2/company/36732261/ajour" \
-H "Authorization: Bearer ACCESS_TOKEN"

Every Ajour endpoint is in the reference.