For developers
Ample POS API
Connect your own systems, like a hub, an ERP or a supplier feed, to a business on Ample POS: read everything, push products and stock in, and hear about changes as they happen.
1. Get a key
The business owner opens API & webhooks in their dashboard and creates a key. They choose read only or read and write, and which areas it can use. The full key is shown once; it looks like ak_4c1f…_Yx3….
A key belongs to one business. It acts for the person who created it and can never do more than they can. If they leave the business, or the key is revoked, it stops working.
2. Make requests
Send the key as a bearer token to https://<your Ample POS address>/api. The dashboard shows the exact address. You don’t need a business ID header: the key already says which business it’s for.
curl https://amplepos.net/api/catalog/products?limit=50 \ -H "Authorization: Bearer ak_..."
- Money is in cents:
priceMinor: 1250is $12.50. - IDs are UUIDs. Times are ISO 8601 in UTC.
- Errors are JSON with
statusCodeandmessage.401means a bad or revoked key,403a missing permission or a read-only key,409a conflict such as a duplicate SKU or a staleversion. - Many writes accept an
idempotencyKey: send the same one when retrying and the change is applied only once.
Read data
| Endpoint | What | Needs |
|---|---|---|
GET /locations | Stores and their time zones | — |
GET /catalog/products?search=&status=&limit=&offset= | Products with their variants | catalog.read |
GET /catalog/products/{id} | One product | catalog.read |
GET /catalog/variants?after=&limit= | Every sellable variant with barcodes, paged by `after` (fast full export) | catalog.read |
GET /catalog/lookup?code= | Find a variant by SKU or barcode | catalog.read |
GET /inventory/levels?locationId=&limit=&offset= | On-hand counts at a location | inventory.read |
GET /inventory/movements?locationId=&variantId=&before= | Stock history, newest first | inventory.read |
GET /sales?status=&before=&limit= | Sales, newest first | pos.sell |
GET /sales/{id} | One sale with lines, payments and refunds | pos.sell |
GET /customers?search=&limit=&offset= | Customers | customers.use |
GET /customers/{id} | One customer with their sales | customers.use |
GET /reports/sales?from=&to=&locationId= | Daily totals, payment methods, top products | reports.read |
GET /reports/inventory | Stock value by location | reports.read |
GET /purchase-orders, /suppliers | Purchasing | purchasing.receive |
GET /gift-cards | Gift cards and balances | giftcards.manage |
Push data in
| Endpoint | What | Needs |
|---|---|---|
POST /integrations/products/upsert | Create or update up to 500 products by SKU | catalog.manage |
POST /integrations/inventory/levels | Set on-hand counts at a location (up to 1,000 rows) | inventory.adjust |
POST /inventory/receipts | Add stock that arrived | inventory.adjust |
POST /inventory/adjustments | Add or remove stock with a reason | inventory.adjust |
POST /inventory/transfers | Move stock between locations | inventory.adjust |
POST /catalog/products, PATCH /catalog/products/{id}, PATCH /catalog/variants/{id} | Edit the catalog item by item | catalog.manage |
POST /customers, PATCH /customers/{id} | Add and edit customers | customers.use / customers.manage |
Upsert products by SKU
POST /integrations/products/upsert
{
"products": [
{ "sku": "TEE-RED-M", "name": "Red tee", "variantName": "Medium",
"priceMinor": 2500, "costMinor": 900, "category": "Apparel", "barcodes": ["0123456789012"] },
{ "sku": "MUG-1", "name": "Mug", "priceMinor": 1200 }
]
}
→ { "created": 1, "updated": 1, "errors": 0,
"results": [{ "sku": "TEE-RED-M", "status": "updated", "productId": "…", "variantId": "…" }, …] }A SKU that exists is updated (matching ignores upper/lower case); a new one creates a product. Each row succeeds or fails on its own.
Set stock levels
POST /integrations/inventory/levels
{
"locationId": "…",
"levels": [{ "sku": "TEE-RED-M", "onHand": 12 }, { "variantId": "…", "onHand": 0 }],
"idempotencyKey": "hub-sync-2026-11-24T10:00"
}
→ { "set": 1, "unchanged": 1, "errors": 0,
"results": [{ "sku": "TEE-RED-M", "status": "set", "before": 9, "after": 12 }, …] }Give the count you want, not the difference. Ample POS records the difference as one stock adjustment, so history and reports stay correct.
Follow changes: the feed
GET /events?after=<last id>&types=inventory.changed,sale.completed&limit=100 returns events oldest first, with next to pass as after next time and hasMore. Store the last id you handled and you’ll never miss a change, even after downtime. Keys only see event types their permissions allow.
Follow changes: webhooks
Add a webhook in the dashboard, or from your app with a key that has api.manage: POST /webhooks with { "url": "https://…", "events": ["inventory.changed"] }. The response includes the signing secret (whsec_…), shown once.
Each event is a POST with this body. Answer with any 2xx within 10 seconds; anything else is retried with backoff for about a day.
{
"id": "evt_1042",
"type": "inventory.changed",
"createdAt": "2026-11-24T10:00:00.000Z",
"businessId": "…",
"data": {
"kind": "sale",
"lines": [{ "locationId": "…", "variantId": "…", "sku": "TEE-RED-M",
"quantityDelta": -1, "reason": "sale", "onHand": 11 }]
}
}Check the Ample-Signature header (t=<unix time>,v1=<hex>): it’s an HMAC-SHA256 of <t>.<raw body> with your secret. Reject old timestamps, and use the event id to ignore repeats.
import { createHmac, timingSafeEqual } from 'node:crypto';
function isFromAmplePos(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
return timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ''));
}Event types
| Type | When | Needs |
|---|---|---|
product.created | A product was added | catalog.read |
product.updated | A product’s name, description, category or status changed | catalog.read |
variant.created | A variant (size, color...) was added to a product | catalog.read |
variant.updated | A variant’s price, SKU, barcodes or status changed | catalog.read |
inventory.changed | Stock went up or down at a location (sale, delivery, count, adjustment, transfer) | inventory.read |
sale.completed | A sale was paid in full | pos.sell |
sale.refunded | Some or all of a sale was refunded | pos.sell |
sale.voided | An unpaid sale was voided | pos.sell |
customer.created | A customer was added | customers.use |
customer.updated | A customer’s details changed | customers.use |
customer.deleted | A customer was deleted | customers.use |
purchase_order.ordered | A purchase order was sent to the supplier | purchasing.receive |
purchase_order.received | A delivery was received against a purchase order | purchasing.receive |
location.created | A location was added | — |
location.updated | A location was changed or archived | — |
Events carry IDs and what changed; fetch the record for full details.