API Reference

Complete reference for ZENTER's REST API

Authentication

POST /api/auth/login

Authenticate a user

Parameters:
  • email (string): User email
  • password (string): User password

Orders

GET /api/orders

Retrieve a list of orders

Query Parameters:
  • status (string): Filter by order status
  • limit (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