Opening LiteShoper to Your Stack
Growing merchants outgrow manual exports. The liteshop-api plugin exposes authenticated REST API endpoints for products, orders, customers, and inventory—enabling custom mobile apps, ERP sync, reporting dashboards, and Zapier-style automations.
While sync plugins like shopee-sync and tiktok-sync cover marketplaces, liteshop-api is for your bespoke integrations.
API Surface Overview
| Endpoint Group | Operations |
|---|---|
| Products | List, create, update, delete; manage variants and images |
| Orders | Read orders, update status, add notes |
| Customers | Query profiles and order history |
| Inventory | Adjust stock levels programmatically |
| Webhooks | Subscribe to order.created, product.updated events |
Common Integration Patterns
- Warehouse WMS: Push new orders to picking systems automatically
- Accounting: Sync daily sales to QuickBooks or local Malaysian accounting software
- Mobile app: Build a branded shopping app reading LiteShoper catalog
- BI dashboard: Pull order metrics into Google Sheets or Power BI
- Custom dropship: Extend liteshop-dropship with supplier-specific APIs
Getting Started
- Install liteshop-api from liteshoper.com/plugins.
- Generate an API key pair under API Settings. Store secrets securely—never commit to Git.
- Review endpoint documentation in LiteShoper docs.
- Test authentication with a GET /products request using curl or Postman.
- Implement rate limiting on your client—respect plugin throttle defaults.
- Register webhooks for events your integration needs in real time.
- Build idempotent order handlers (duplicate webhook delivery happens).
- Deploy to production with HTTPS-only callbacks.
Authentication
liteshop-api uses API keys in headers or OAuth2 client credentials depending on configuration. Rotate keys periodically. Revoke compromised keys immediately from the admin panel.
Security Best Practices
Scope API keys to minimum permissions. Never expose keys in frontend JavaScript. Use server-side proxies for mobile apps. Log API access and alert on anomalous volume. Complement API security with store-wide practices from LiteShoper security guides.
Webhook Reliability
Respond with HTTP 200 within timeout windows. Queue heavy processing asynchronously. Implement retry-friendly endpoints. Monitor failed webhook logs in the plugin dashboard.
Pairing with Other Plugins
API updates can trigger inventory sync to Shopee via shopee-sync. Email notifications via liteshop-bulk-email can fire from external CRM events. Payment status from liteshop-stripe webhooks can match order records through liteshop-api updates.
Developer Resources
Full OpenAPI-style reference, code samples, and changelog live at liteshoper.com/docs. Community plugins on the marketplace may depend on liteshop-api—verify compatibility before upgrading.
When to Use vs. Native Plugins
Prefer marketplace plugins for standard needs (shipping with easyparcel, SEO with seo-ai). Use liteshop-api when you need custom logic no plugin provides—proprietary ERP, internal tools, or white-label apps.
Conclusion
liteshop-api makes LiteShoper programmable. Connect your operational stack, automate repetitive data entry, and scale integrations as your business complexity grows.