API Reference

All endpoints available to external apps

Base URL

https://api.fez.sa/v1

Authentication

curl https://api.fez.sa/v1/products \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json"

# Response
{
  "data": [...],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 150
  }
}

Endpoints

MethodEndpointScopeDescription
GET/api/v1/storeread_storeStore info, settings
GET/api/v1/productsread_productsList products with filters
GET/api/v1/products/:idread_productsProduct details + variants
POST/api/v1/productswrite_productsCreate product
PUT/api/v1/products/:idwrite_productsUpdate product
GET/api/v1/ordersread_ordersList orders with pagination
GET/api/v1/orders/:idread_ordersOrder details + items
PUT/api/v1/orders/:id/statuswrite_ordersUpdate order status
GET/api/v1/customersread_customersList customers
GET/api/v1/customers/:idread_customersCustomer details
GET/api/v1/categoriesread_productsCategory tree
GET/api/v1/inventoryread_productsInventory levels

Rate Limits

100 requests/minute per app. Limits returned in X-RateLimit-* headers.