Quick reference
20. Quick Reference
Endpoints Overview
| Resource | GET | POST | PUT | PATCH | DELETE |
|---|---|---|---|---|---|
| Products | List, Get | Create | Update | - | Delete |
| Orders | List, Get | Create, Batch Create | Status | Payment status | Delete |
| Customers | List, Get | - | - | - | Delete |
| Categories | List, Get | Create | Update | - | Delete |
| Brands | List, Get | Create | Update | - | Delete |
| Branches | List, Get | Create | Update | - | Delete |
| Shipping | - | Calculate | - | - | - |
| Webhooks | List, Get, Deliveries | Create | Update | - | Delete |
| API Keys | List | Create | - | - | Delete |
All Endpoints
Authentication:
POST /auth/register- Register new admin userPOST /auth/login- Login and create sessionPOST /auth/logout- Logout and destroy sessionGET /auth/me- Get current user (requires auth)
Products:
GET /products- List products (with pagination, search, filters)POST /products- Create productGET /products/:id- Get product detailsPUT /products/:id- Update productDELETE /products/:id- Delete productPOST /products/import- Import products from CSVGET /products/export- Export products to CSV
Categories:
GET /categories- List all categoriesPOST /categories- Create categoryGET /categories/:id- Get category (with children/parent)PUT /categories/:id- Update categoryDELETE /categories/:id- Delete category
Brands:
GET /brands- List all brandsPOST /brands- Create brandGET /brands/:id- Get brandPUT /brands/:id- Update brandDELETE /brands/:id- Delete brand
Orders:
GET /orders- List orders (with pagination, filters)POST /orders- Create orderPOST /orders/batch- Batch create orders (up to 100)GET /orders/:id- Get order detailsPUT /orders/:id/status- Update order statusPATCH /orders/:id/payment-status- Update payment statusDELETE /orders/:id- Delete order
Customers:
GET /customers- List customersGET /customers/:id- Get customer detailsGET /customers/:id/loyalty- Get loyalty balance & ledgerPOST /customers/:id/notes- Add customer note
Branches:
GET /branches- List branchesPOST /branches- Create branchGET /branches/:id- Get branchPUT /branches/:id- Update branchDELETE /branches/:id- Delete branchGET /branches/:id/integrations- List branch integrationsPUT /branches/:id/integrations/:key- Update branch integration
Shipping:
GET /shipping/zones- List shipping zonesPOST /shipping/zones- Create shipping zoneGET /shipping/shipments- List shipmentsPOST /shipping/external/calculate- Calculate shipping rates (API key auth)
Webhooks:
GET /webhooks- List webhooksPOST /webhooks- Create webhookGET /webhooks/:id- Get webhookPUT /webhooks/:id- Update webhookDELETE /webhooks/:id- Delete webhookGET /webhooks/:id/deliveries- Get webhook delivery logs
Marketing — Overview:
GET /marketing- Marketing overview (aggregate counts + loyalty stats)POST /marketing/subscribe- Newsletter subscription (public, no auth)
Marketing — Contacts:
GET /marketing/contacts- List contacts (paginated, searchable)GET /marketing/contacts/stats- Contact statisticsPOST /marketing/contacts- Create contactPUT /marketing/contacts/:id- Update contactDELETE /marketing/contacts/:id- Delete contact
Marketing — Coupons:
GET /marketing/coupons- List coupons (paginated, searchable)GET /marketing/coupons/stats- Coupon statisticsPOST /marketing/coupons- Create couponGET /marketing/coupons/:id- Get couponPUT /marketing/coupons/:id- Update couponDELETE /marketing/coupons/:id- Delete couponGET /marketing/coupons/:id/usage- Coupon usage historyPOST /marketing/coupons/:id/validate- Validate coupon (with discount preview)
Marketing — Loyalty:
GET /marketing/loyalty/config- Loyalty program configurationGET /marketing/loyalty/stats- Loyalty statisticsGET /marketing/loyalty/balances- List customer balances (paginated, searchable)GET /marketing/loyalty/balances/:customer_id- Single customer balancePOST /marketing/loyalty/adjust- Adjust loyalty pointsGET /marketing/loyalty/ledger- Points ledger (filtered, paginated)GET /marketing/loyalty/registrations- List registrationsPUT /marketing/loyalty/registrations/:id- Approve/reject registration
Marketing — Abandoned Carts:
GET /marketing/abandoned-carts- List abandoned cartsGET /marketing/abandoned-carts/count/unviewed- Unviewed countPATCH /marketing/abandoned-carts/:id/view- Mark as viewedDELETE /marketing/abandoned-carts/:id- Delete cartPOST /marketing/abandoned-carts/:id/trigger-automation- Trigger recovery
Marketing — Automation:
GET /marketing/automation/status- Addon statusGET /marketing/automation/campaigns- List campaignsGET /marketing/automation/campaigns/:type- Get campaignPUT /marketing/automation/campaigns/:type- Update campaignGET /marketing/automation/runs- Automation run historyGET /marketing/automation/template-variables- Template variablesPOST /marketing/automation/templates/enhance- AI-enhance template
Settings:
GET /settings- Get all settingsPUT /settings/:key- Update settingGET /settings/emails- Get email templatesPUT /settings/emails/:id- Update email templateGET /settings/payment-gateways- Get payment gatewaysPUT /settings/payment-gateways/:id- Update payment gateway
Plugins:
GET /plugins- List pluginsGET /plugins/:id- Get pluginPOST /plugins/:id/enable- Enable pluginPOST /plugins/:id/disable- Disable pluginPUT /plugins/:id/config- Update plugin configuration
API Keys:
GET /api-keys- List API keys (for current user)POST /api-keys- Create API keyDELETE /api-keys/:id- Delete API key
Response Format
Success:
{
"status": "success",
"data": { ... }
}Error:
{
"status": "error",
"message": "Error message"
}Interactive Documentation
Visit /api-docs when the server is running for interactive Swagger documentation.
Last updated: April 2026