Endpoint reference

Every public endpoint, its required scope, and the safe fields it returns. All paths are relative to https://api.luxpos.lu/api/v1 and need a Bearer API key. Prefer clicking through requests? Use the interactive API Reference.

71 endpoints · 14 resourcesScopes and security model

Business & Locations

The business your key belongs to and its branches.

GET/public/me

The business this API key belongs to.

business:read

Fieldsid, name, currency, country, slug, status

GET/public/locations

List business locations / branches (paginated).

business:read

Querypagelimit

Fieldsid, locationNumber, name, code, street, houseNumber, city, postalCode, country, phone, email, vatNumber, latitude, longitude, isHeadquarters, isActive, createdAt

GET/public/locations/:id

Get a single location / branch.

business:read

FieldsSame fields as the location list.

Products & Inventory

Read the catalogue and per-location stock; create products and post signed stock adjustments.

GET/public/products

List products (paginated).

products:read

QuerycategoryIdsearchpagelimit

FieldsCatalogue fields: id, name, description, sellingPrice, sku, ean, categoryId, images (array of image URLs), isForSale, stockQuantity …

GET/public/products/:id

Get a single product (same fields as the list, incl. images[]).

products:read
GET/public/product-categories/tree

All product categories (flat list, ordered by position).

products:read
GET/public/products/:id/inventory

Per-location stock for a product.

products:read

FieldsproductId, trackInventory, totalQuantity, lowStockAlert, locations[locationId, locationName, locationNumber, quantity, lowStockAlert, updatedAt]

POST/public/products

Create a product.

products:write

Body and responseBody: name, sellingPrice, description?, sku?, ean?, purchasePrice?, vatRate?, vatPercent?, trackInventory?, stockQuantity?, lowStockAlert?, categoryId?, folderIds? (product folder UUIDs to file it under), images? (array of image URLs), isForSale?

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/products/:id

Update a product.

products:write

Body and responseBody: any of the create fields. images? (array of URLs) replaces the whole image list. folderIds? (array of folder UUIDs) replaces the product's folder assignment ([] removes it from all folders).

POST/public/products/:id/image

Upload an image file (multipart/form-data, field "image", ≤10MB jpeg/png/gif/webp) and append it to the product's images[].

products:write

Body and responseBody (multipart): image=<file>. Returns: the updated product with the new URL appended to images[].

DELETE/public/products/:id

Delete a product (soft delete, lets you walk back a bad bulk import). Returns 204.

products:write
POST/public/products/:id/inventory

Adjust stock by a signed delta (writes an inventory audit log).

inventory:write

Body and responseBody: delta (signed int), locationId?, reason?, note?. Returns: productId, locationId, delta, totalQuantity, locationQuantity

IdempotentSend an Idempotency-Key header to safely retry.

POST/public/product-categories

Create a product category, top-level or nested under a parent via parentId.

products:write

Body and responseBody: name, description?, image? (URL), color?, parentId? (nest under an existing category), sortOrder?. Returns: the created category (id, name, parentId, path, …).

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/product-categories/:id

Update a category: rename, recolor, or reparent it.

products:write

Body and responseBody: name?, description?, image?, color?, sortOrder?, parentId? (reparent; pass null to move to top level, the subtree path is rewritten).

DELETE/public/product-categories/:id

Delete a category. Fails (400) if it has active products; use ?force=true to delete one that still has empty sub-categories. Returns 204.

products:write

Queryforce

Product Folders (Dossiers)

Organise the catalogue into a folder tree (dossiers), separate from product categories. Create folders, nest sub-folders, and file products into them during a bulk import.

GET/public/product-folders

List product folders (flat, ordered by sort position).

products:read

Fieldsid, name, color, icon, isVisible, sortOrder, parentId, path, productCount

GET/public/product-folders/tree

Product folders as a nested tree (parent → children).

products:read

FieldsEach node: id, name, color, icon, isVisible, sortOrder, parentId, path, productCount, children[] (recursive).

POST/public/product-folders

Create a folder, top-level or nested under a parent via parentId.

products:write

Body and responseBody: name, color?, icon?, parentId? (nest under an existing folder), sortOrder?, isVisible?. Returns: the created folder (id, name, color, icon, isVisible, sortOrder, parentId, path).

PATCH/public/product-folders/:id

Update a folder: rename, recolor, re-icon, toggle visibility, or reparent it.

products:write

Body and responseBody: name?, color?, icon?, isVisible?, sortOrder?, parentId? (reparent; pass null to move to top level, the subtree path is rewritten).

DELETE/public/product-folders/:id

Delete a folder. Fails (400) if it has sub-folders; use ?force=true to delete one with sub-folders. Returns 204.

products:write

Queryforce

POST/public/product-folders/:id/products

Assign products to a folder (replaces the folder's product set).

products:write

Body and responseBody: productIds (array of product UUIDs). Returns: the updated folder (id, name, …, productCount).

Customers

Read profiles and visit history; create and link customers without duplicating people.

GET/public/customers

List customers (paginated).

customers:read

Querysearchpagelimit

GET/public/customers/:id

Get a single customer with visit history.

customers:read
POST/public/customers

Create a customer (links to an existing person by email/phone instead of duplicating).

customers:write

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/customers/:id

Update a customer that belongs to your business.

customers:write

Transactions & Sessions

The raw ledger of the register: every POS sale, line item, and cash-drawer session.

GET/public/transactions

List POS transactions (paginated).

transactions:read

Queryfromtopagelimit

GET/public/transactions/:id

Get a single transaction with its line items.

transactions:read
GET/public/sessions

List POS sessions (paginated).

transactions:read

Queryfromtopagelimit

GET/public/sessions/:id

Get a single POS session with its transactions.

transactions:read

Reports

Aggregated revenue reports and breakdowns, ready to drop into a dashboard.

GET/public/reports/summary

Revenue summary KPIs for a date range.

reports:read

Queryfromto

GET/public/reports/by-product

Revenue broken down by product.

reports:read

Queryfromto

GET/public/reports/by-category

Revenue broken down by product category.

reports:read

Queryfromto

GET/public/reports/by-cashier

Revenue broken down by cashier.

reports:read

Queryfromto

GET/public/reports/monthly-grid

Monthly aggregated revenue grid.

reports:read

Queryfromto

Invoices

Issued sales invoices with line items, for accounting and reconciliation.

GET/public/invoices

List sales invoices (paginated). Filter by customerId, buyerEmail (exact, case-insensitive) or externalRef to find a specific document instead of paging through everything. Every filter is applied inside your own business only.

invoices:read

QueryfromtostatuscustomerIdbuyerEmailexternalRefpagelimit

Fieldsid, locationId, customerId, invoiceNumber, invoiceType, status, creditNoteId (the invoice a CREDIT_NOTE credits), externalRef (your own reference), invoiceDate, dueDate, paidAt, buyerName, subtotalNet, totalVat, totalGross, discount, totalAmount, currency, exchangeRate, baseAmount (EUR-equivalent of totalAmount), structuredCommunication, createdAt

GET/public/invoices/:id

Get a single sales invoice with line items and VAT breakdown.

invoices:read

FieldsList fields (incl. currency, exchangeRate, baseAmount) + buyer address, buyerVatNumber, vatInclusive, paymentMethod, notes, customerNotes, pdfUrl (stable capability link), pdfDownloadUrl (fresh 15-min presigned URL, null until the PDF exists), items[], vatBreakdown[]. Never Stripe ids, fees or netPayoutAmount.

GET/public/invoices/:id/pdf-url

Get a fresh, short-lived download URL for the invoice PDF. Returns { url, expiresIn: 900 }, a NEW presigned URL each call (valid 15 min). Invoice PDFs are private; direct object URLs are no longer public, so fetch a link here on demand instead of storing one.

invoices:read
POST/public/invoices

Create a sales invoice (draft, or finalized when finalize=true). Pass currency (ISO-4217, e.g. "USD") to bill in a foreign currency. Conversion to EUR is automatic (ECB rate on the invoice date) and returned as exchangeRate + baseAmount.

invoices:write

Body and responseBody: buyerName, items[] (description, quantity, unitPrice, vatPercent?, discount?), customerId?, buyer address/VAT?, invoiceDate?, dueDate?, invoiceType?, vatInclusive?, discount?, notes?, currency? (3-letter ISO-4217, default EUR), externalRef? (max 128 chars, your own reference, filterable), finalize?. Returns: the invoice incl. currency, exchangeRate, baseAmount, customerId, externalRef.

IdempotentSend an Idempotency-Key header to safely retry.

POST/public/invoices/:id/credit-note

Issue a credit note (Avoir) for a confirmed or paid invoice. IMPORTANT: a credit note is stored with POSITIVE amounts, exactly like an invoice. Subtract it in your own books via invoiceType === CREDIT_NOTE. Never expect negative numbers.

invoices:write

Body and responseBody (all optional, an empty body is valid): externalRef? (not inherited from the credited invoice), notes? (defaults to “Credit note for invoice <number>”), finalize? (assigns the sequential number, renders the PDF and settles the original when fully covered). Returns: the credit note, with creditNoteId pointing at the invoice it credits.

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/invoices/:id

Update a draft sales invoice.

invoices:write

Body and responseBody: same optional buyer/date/type/discount/notes fields as create, plus externalRef? (empty string clears it).

Expenses

Purchase and cost records for bookkeeping.

GET/public/expenses

List expenses (paginated).

expenses:read

QuerystatuscategoryIdfromtosearchpagelimit

Fieldsid, expenseNumber, description, amount, netAmount, vatAmount, vatPercent, expenseDate, status, categoryId, category, vendorName, vendorVatNumber, paymentMethod, notes, isRecurring, paidAt, createdAt

GET/public/expenses/:id

Get a single expense.

expenses:read
POST/public/expenses

Create an expense (draft).

expenses:write

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/expenses/:id

Update a draft expense.

expenses:write
DELETE/public/expenses/:id

Delete a draft expense.

expenses:write

Tax

Period tax overview: revenue, deductible VAT, net liability, and P&L.

GET/public/tax/overview

Tax overview for a period (revenue, deductible VAT, net liability, P&L).

tax:read

Querytypeyearmonthquarter

Banking

Read-only bank accounts and the reconciled transaction feed.

GET/public/bank-accounts

List bank accounts (paginated).

banking:read

Querypagelimit

Fieldsid, name, iban, currency, provider, institutionName, status, lastSyncedAt, createdAt. Never the provider/connection ids.

GET/public/bank-accounts/:id

Get a single bank account.

banking:read
GET/public/bank-transactions

List bank transactions (paginated).

banking:read

QueryaccountIdstatusfromtopagelimit

Fieldsid, bankAccountId, bookedAt, valueDate, amount, currency, counterpartyName, counterpartyIban, remittance, structuredComm, status, matchedInvoiceId, createdAt. Never the raw provider payload.

GET/public/bank-transactions/:id

Get a single bank transaction.

banking:read

Staff

The team roster, safe fields only.

GET/public/staff

List staff (id, name, role only, never email or phone).

staff:read

Fieldsid, firstName, lastName, title, order, isActive

Loyalty

Loyalty cards and members with their live points and stamp balances.

GET/public/loyalty/cards

List loyalty cards / members (paginated).

loyalty:read

Querypagelimit

Fieldsid, code, currentStamps, totalStamps, rewardsRedeemed, points, appointmentsCompleted, spinTokens, lastVisitAt, isActive, createdAt, customer{id, firstName, lastName}

GET/public/loyalty/cards/:id

Get a single loyalty card.

loyalty:read
POST/public/loyalty/lookup

Resolve a scanned wallet-pass QR / card code to the member and their live balance.

loyalty:read

FieldscardId, code, customerId, firstName, lastName, type, points, currentStamps, stampsRequired, rewardDescription, rewardReady

POST/public/loyalty/cards/:id/stamps

Add stamps at checkout. Auto-resets a full card and mints the reward coupon; the wallet pass updates automatically.

loyalty:write
POST/public/loyalty/cards/:id/stamps/remove

Remove stamps (correction).

loyalty:write
POST/public/loyalty/cards/:id/points

Adjust points by a signed delta (earn on the ticket total, or deduct). Balance floors at 0.

loyalty:write
POST/public/loyalty/cards/:id/redeem

Redeem a full stamp card: deducts the required stamps and returns the reward for the till to apply.

loyalty:write
POST/public/loyalty/coupons/:code/redeem

Redeem a single-use loyalty coupon by its code.

loyalty:write

Website Builder

Build a full website programmatically: branding, source code (CSS / head HTML / JS), pages (visual blocks OR raw HTML), themes and publishing. The site is created on first use. Requires the Shop entitlement.

GET/public/site

Get the site config + page list. Creates the site (with default pages) on first call.

site:read

Fieldsid, isEnabled, siteName, logoUrl, faviconUrl, primaryColor, secondaryColor, accentColor, fontFamily, heroImageUrl, metaTitle, metaDescription, ogImageUrl, footerText, socialLinks, customCss, customHeadHtml, customJs, themeId, pages[], customDomain

PATCH/public/site

Update branding, source code and SEO. Set isEnabled=true to publish the whole site.

site:write

Body and responseBody (all optional): isEnabled, siteName, logoUrl, faviconUrl, primaryColor, secondaryColor, accentColor, fontFamily, heroImageUrl, metaTitle, metaDescription, ogImageUrl, footerText, socialLinks, googleAnalyticsId, facebookPixelId, customCss, customHeadHtml (injected in <head>), customJs (before </body>).

GET/public/site/pages

List all pages, ordered.

site:read
GET/public/site/pages/:slug

Get a single page by slug.

site:read

Fieldsid, title, slug, isHome, isPublished, showInNav, order, metaTitle, metaDescription, ogImageUrl, blocks[], renderMode ('BLOCKS'|'CODE'), customHtml

POST/public/site/pages

Create a page. Provide `blocks` for the visual builder, OR renderMode='CODE' + customHtml for a raw-HTML page.

site:write

Body and responseBody: title, slug, showInNav?, isPublished?, metaTitle?, metaDescription?, renderMode? ('BLOCKS'|'CODE'), blocks? (array of { type, order, config }, see /public/site/block-types), customHtml? (required when renderMode='CODE'). Max 10 custom pages.

IdempotentSend an Idempotency-Key header to safely retry.

PATCH/public/site/pages/:pageId

Update a page: replace its blocks, switch to CODE mode, edit SEO, publish/unpublish, toggle nav, reorder.

site:write

Body and responseBody (all optional): title, slug, isPublished, showInNav, order, metaTitle, metaDescription, ogImageUrl, renderMode ('BLOCKS'|'CODE'), blocks (replaces the whole array), customHtml (required when setting renderMode='CODE').

DELETE/public/site/pages/:pageId

Delete a page. Fixed pages (home/services/gallery/blog/contact/booking) cannot be deleted, unpublish them instead. Returns 204.

site:write
GET/public/site/themes

List available themes with their design tokens and editable source code (css / headHtml / js).

site:read

Fieldsid, key, name, description, previewImageUrl, tokens, pages, css, headHtml, js, price

POST/public/site/apply-theme

Apply a theme: maps its tokens + source code onto the site and clones its pages (existing pages kept; slug collisions get a numeric suffix).

site:write

Body and responseBody: themeKey (e.g. 'starter' or 'vitrine'). Returns: the updated site with pages.

IdempotentSend an Idempotency-Key header to safely retry.

GET/public/site/block-types

Catalog of every block type and its default config: the shape a client (or an AI) needs to fill a page's blocks[].

site:read

Fieldsblocks[]: { type, category, description, defaultConfig }

Shop

Online shop settings (storefront). Products themselves are managed via the Products endpoints (products:write). Requires the Shop entitlement.

GET/public/shop

Get the shop settings for your business. 404 until a shop is created via PATCH.

shop:read

Fieldsid, slug, name, description, mode (B2C|B2B|HYBRID), currency, status, primaryColor, logoUrl, bannerUrl, offersShipping, shippingFlatRate, freeShippingAbove, offersPickup, pickupAddress, showPricesToGuests, b2bRequireApproval, sellsServices, sellsGiftCards, invoiceMode, siteId, locationId, metaTitle, metaDescription, productCount

PATCH/public/shop

Upsert the shop: creates it on the first call (name defaults to the business name), then updates it. Set status=ACTIVE to publish. Link a builder site with siteId.

shop:write

Body and responseBody (all optional): name, mode, slug, description, primaryColor, currency, offersShipping, shippingFlatRate, freeShippingAbove, offersPickup, pickupAddress, invoiceMode, sellsServices, sellsGiftCards, showPricesToGuests, b2bRequireApproval, status, logoUrl, bannerUrl, siteId (your WhiteLabelSite id), locationId, metaTitle, metaDescription.

IdempotentSend an Idempotency-Key header to safely retry.