Getting Started

From zero to your first API response in under five minutes.

1

Create an API key

Log in to your LUXPOS dashboard and open Settings, then the Developer tab. The direct link is:

url
https://luxpos.lu/en/dashboard/settings?tab=developer

Click Create key, give it a descriptive name (for example my-integration), select the scopes you need, and copy the generated key. You will only see the full value once.

Keep your key secret

Treat it like a password. Never commit it to version control and never expose it in client-side JavaScript.
2

Make your first request

Pass your key in the Authorization header as a Bearer token:

bash
curl -H "Authorization: Bearer lpk_live_..." \
     https://api.luxpos.lu/api/v1/public/me

A successful response returns the business profile associated with your API key, including the business ID you will reference in other endpoints.

3

Pagination

List endpoints are paginated with two query parameters:

pageinteger

1-based page number. Default: 1

limitinteger

Results per page. Default: 50, maximum 100

bash
# Second page, 20 results per page
curl -H "Authorization: Bearer lpk_live_..." \
     "https://api.luxpos.lu/api/v1/public/transactions?page=2&limit=20"

The response includes a meta object with total, page and lastPage fields.

4

Error envelope

All error responses use a consistent JSON envelope:

json
{
  "statusCode": 401,
  "message": "Unauthorized: missing or invalid API key",
  "error": "Unauthorized"
}
statusCodeinteger

HTTP status code

messagestring

Human-readable error description

errorstring

Short error class, for example "Not Found"

Next steps