Developers
API documentation
Build on Hazans with secure endpoints for products, orders, themes, and integrations.
Base URL: https://api.hazans.com/v1
Auth: Bearer tokens obtained from your dashboard. Send with Authorization header: Authorization: Bearer <token>.
Versioning: Versioned via URL and backward-compatible changes noted in changelog.
Auth
- POST /auth/login — Obtain a session token.
- POST /auth/refresh — Refresh an existing token.
Products
- GET /products — List products with pagination and filters.
- POST /products — Create a product with variants and media.
- PATCH /products/{id} — Update product fields.
Orders
- GET /orders — List orders with status filters.
- PATCH /orders/{id} — Update status, fulfillment, tracking.
- POST /orders/{id}/fulfill — Add fulfillment and tracking details.
Themes
- GET /themes — List available themes.
- POST /themes/apply — Apply a theme to a store.
- POST /themes/save — Save editor changes to theme data.