Documentation
LiteShoper API — Full Guide
On this page
Overview
LiteShoper API (liteshop-api) exposes read-only REST endpoints for products, orders, and inventory. Connect ERP, warehouse systems, mobile apps, or custom dashboards.
Installation
Install with marketplace license. Admin menu: System → Developers → API Keys.
API keys
- Go to API → Keys (
/admin/api/keys). - Click create — enter name and select scopes:
products:readorders:readinventory:read
Copy the key immediately — format ls_live_… — shown only once.
Authenticate with header: X-API-Key: ls_live_your_key_here
Endpoints
| Method | Path | Scope |
|---|---|---|
| GET | /api/v1/products |
products:read |
| GET | /api/v1/products/{id} |
products:read |
| GET | /api/v1/orders |
orders:read |
| GET | /api/v1/orders/{id} |
orders:read |
| GET | /api/v1/inventory |
inventory:read |
Examples
curl -H "X-API-Key: ls_live_xxx" \
https://your-store.com/api/v1/products
curl -H "X-API-Key: ls_live_xxx" \
"https://your-store.com/api/v1/orders?status=confirmed"
OpenAPI docs
- Interactive docs:
https://your-store.com/api/docs - OpenAPI JSON:
https://your-store.com/api/openapi.json - Admin reference: API → Documentation
Security
- Read-only by design — safer for integrations
- Revoke compromised keys immediately
- Use minimum scopes needed
- Never expose keys in frontend JavaScript
Troubleshooting
- 401 Unauthorized — missing/invalid key or revoked
- 403 Forbidden — key lacks required scope
- Key name required — fill name when creating