Skip to content
Lunexa

Commerce API

Catalogue, stock and orders that already know how to post to the books.

Products, variants and barcodes, warehouses and stores, quotations, sale and purchase orders, payments, returns and stock: every order creates its invoice or bill and posts to the accounts.

163 endpoints · OpenAPI 3.1

Your catalogue on your website
GET /public/products?page=1&limit=20Client-Id: <your client id>Client-Secret: <your client secret>User-Agent: your-shop/1.0

What you can call

Orders

Sale and purchase orders with items, expenses, tax, delivery status and returns.

  • POST/order
  • GET/orders
  • PATCH/order/{order_id}/delivery/status
  • PUT/order/{order_id}/return

Payments

Payments and refunds on an order, post-dated cheques included.

  • POST/order/payments
  • POST/order/refund/payments
  • PATCH/order/{order_id}/post-dated/status
  • PATCH/order/{order_id}/revoke

Quotations

Provisional orders you can check against stock before they become real ones.

  • POST/provisional/order
  • GET/provisional/orders
  • GET/provisional/order/{provisional_order_id}/inventories
  • PUT/provisional/order/{provisional_order_id}

Products and barcodes

Variants with their SKUs, prices and a barcode per unit type, new barcodes on request.

  • POST/product-variant
  • GET/product-variants/search
  • GET/product-variant-identification/new/barcode
  • GET/product-variant/{product_variant_id}/price/inventory

Stock

Stock per location, every stock movement, adjustments and unit conversions.

  • GET/inventories
  • GET/inventory/transactions
  • POST/inventory/adjustment
  • POST/inventory/conversion

Public catalogue

Products, categories and brands for your shop, with your API client only.

  • GET/public/products
  • GET/public/product/{product_id}
  • GET/public/categories
  • GET/public/brands

How it fits together

Your applications talk to one service. Identity signs the user in, and the service posts to the ledger.

Your website
Your mobile app
Your back office
Identity: sign-in, users, roles, API clients
Lunexa Commerce API
CatalogueOrdersStockReports
Orders and payments post to the Lunexa ledger

Included with every integration

Identity comes with every API: you don't build sign-in, users or permissions.

  • Sign-in with a password or a one-time code
  • Users, roles and permissions
  • API clients with secret rotation
  • Audit and usage logs
  • Error codes listed per method and per field
  • An OpenAPI 3.1 spec and a Postman collection
A validation error
{  "success": false,  "error": "NET-111",  "message": "Validation error in parameters",  "errors": [ { "field": "name", "code": "IDT-141" } ]}

Before and after

Without Lunexa: Stock and accounts kept in sync by your code

With the Lunexa API: Orders create their invoices, bills and journals

Without Lunexa: Barcodes generated by hand

With the Lunexa API: A new barcode from one endpoint

Without Lunexa: The catalogue copied to your shop

With the Lunexa API: Public product endpoints for your website

Without Lunexa: Sign-in, users and permissions built from scratch

With the Lunexa API: Users, roles and API clients from Identity

Build on Lunexa

Tell us what you are building and we'll set up an API client for your team.

Request API access