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:
GET /marketing- List couponsPOST /marketing- Create couponGET /marketing/:id/usage- Get coupon usage
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