API Reference
Complete reference for ZENTER's REST API
Authentication
POST /api/auth/login
Authenticate a user
Parameters:
email(string): User emailpassword(string): User password
Orders
GET /api/orders
Retrieve a list of orders
Query Parameters:
status(string): Filter by order statuslimit(number): Number of results to return
POST /api/orders
Create a new order
Body:
{
"items": [
{
"product_id": "string",
"quantity": 1
}
],
"customer_info": {
"name": "string",
"email": "string",
"phone": "string"
}
}
Products
GET /api/products
Get all products
POST /api/products
Create a new product
Webhooks
POST /api/webhooks
Register a webhook endpoint