# Ajour Public API > A read-only HTTP API for Ajour customers and their partners. Base URL: https://api.ajour.dk/v1. Send the API key as `Authorization: Bearer `. Money is in DKK, dates are local dates in Europe/Copenhagen, lists are paged with a cursor. OpenAPI file: https://docs.ajour.dk/openapi/public-v1.json - Guides: Get started and learn the rules - **Get started** - [Introduction](/index.md): Read your Ajour sales, products and report figures from your own systems. - [Quick start](/quick-start.md): Create an API key and make your first calls in five minutes. - **Guides** - [Authentication](/authentication.md): API keys, scopes, location limits and how to revoke a key. - [Conventions](/conventions.md): The rules that every endpoint follows for field names, dates, money, paging and ids. - Errors - [Errors](/errors.md): Error responses use the Problem Details format (RFC 9457). - [Invalid parameter](/errors/invalid-parameter.md): A parameter has the wrong format or an unknown value. - [Impersonation is not allowed](/errors/impersonation-not-allowed.md): The request has a header that the public API does not accept. - [The key must not be in the URL](/errors/key-in-url.md): An API key was found in the URL. - [Unauthorized](/errors/unauthorized.md): The API key is missing, wrong, revoked or expired. - [Missing scope](/errors/missing-scope.md): The API key does not have the scope that the call needs. - [Company is inactive](/errors/company-inactive.md): The company's Ajour account is not active. - [Report needs all locations](/errors/report-needs-all-locations.md): This report needs a key for all locations. - [Not found](/errors/not-found.md): The item does not exist, or the location is outside the key. - [Validation failed](/errors/validation-failed.md): The end of the period is before the start. - [Date range is too long](/errors/date-range-too-long.md): The period is longer than the endpoint allows. - [Location required](/errors/location-required.md): A report call must name one location. - [Too many requests](/errors/rate-limited.md): The key has made too many requests. - [Report took too long](/errors/report-timeout.md): A report took longer than 90 seconds to build. - [Rate limits](/rate-limits.md): How many calls a key can make, and what to do when you reach the limit. - [Versioning](/versioning.md): How the API changes, and how long old versions stay. - [Recipes](/recipes.md): Short examples for common tasks. - [Using the API with AI agents](/ai-agents.md): Give an AI agent or coding assistant what it needs to use the Ajour API. - [Agent skills](/agent-skills.md): Install the ajour-api skill, so your coding agent knows how to use the Ajour API. - API reference: Every endpoint of v1 - [Overview](/api-reference.md): Every endpoint of the Ajour Public API v1, with parameters and responses. - Company and catalog - [\[object Object\]](/api-reference/company-and-catalog/getCompany.md): 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. - [\[object Object\]](/api-reference/company-and-catalog/listLocations.md): The company's locations (shops) that the key can see. Deleted locations are left out. `lastSyncedAt` is the upload time of the newest sale from that location, so you can see how fresh the data is. All locations come on one page. Requires scope `catalog:read`. - [\[object Object\]](/api-reference/company-and-catalog/listProductGroups.md): Product groups with their POS number as `id`, sorted by POS number. Use `updatedSince` to copy only changes. Requires scope `catalog:read`. - [\[object Object\]](/api-reference/company-and-catalog/listProducts.md): The product catalogue with prices from the Ajour back office, sorted by POS number. `stock` is filled only when the product tracks stock. Requires scope `catalog:read`. - [\[object Object\]](/api-reference/company-and-catalog/getProduct.md): One product by its POS number. Same shape as one item in the product list. Returns `404` if the number is unknown for this company. Requires scope `catalog:read`. - [\[object Object\]](/api-reference/company-and-catalog/listSalespersons.md): The salesperson names found on sales in the key's locations in the last 13 months. Registers store names, not ids, so use the name in the `salesperson` filter. All names come on one page. Requires scope `sales:read`. - Sales - [\[object Object\]](/api-reference/sales/getSalesSummary.md): 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`. - [\[object Object\]](/api-reference/sales/getSalesBreakdown.md): One endpoint for every dashboard chart and report table. `groupBy` picks the dimension. Rows are sorted by turnover, highest first. Time groupings (`hour`, `weekday`, `day`, `month`) are sorted by time instead. `hour` only returns the company's work hours, like the dashboard. `productGroup` and `product` leave out discount lines, like the dashboard. The period can be at most 366 days. Requires scope `sales:read`. - [\[object Object\]](/api-reference/sales/listSales.md): Every receipt line, for when you build your own figures or copy data to a data warehouse. Lines with the same `receiptNumber` and `locationId` make one receipt. These are the lines the dashboard counts, so the sum of `amountInclVat` matches `totalTurnover` of the summary. `vat` has no effect here; each line has both amounts. Sorted by date, then id. For a nightly copy, store the newest `syncedAt` you have and pass it as `syncedSince` next time. The period can be at most 92 days. Requires scope `sales:read`. - Reports - [\[object Object\]](/api-reference/reports/listReports.md): 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`. - [\[object Object\]](/api-reference/reports/getReport.md): Builds the report and returns the file: the same PDF or Excel file as in the Ajour back office. Choose the format with `format` or the `Accept` header. A report covers one location or all the key's locations, so a key limited to several locations must pass one `locationId`. Large periods can take up to 90 seconds. Requires scope `reports:read`. `sales-per-client` and `client-card-balances` also need `customers:read`. At most 10 report files per minute per key.