Storefront API (Public)
Base URL
https://api.ecommaps.com/api/v1/storefrontPrimary Authentication
x-api-key: sk_eco_...Customer account endpoints under /auth/* also require bearer JWT tokens after login/signup.
Endpoint Inventory (Contract Scope)
Store
GET /storeGET /store/menusGET /store/menus/{handle}
Products and Discovery
GET /productsGET /products/{slug}GET /searchGET /product-categories
Collections
GET /collectionsGET /collections/{slug}
Cart
POST /cartGET /cart/{cart_id}POST /cart/{cart_id}/itemsPATCH /cart/{cart_id}/items/{item_id}DELETE /cart/{cart_id}/items/{item_id}
Orders
POST /ordersGET /ordersGET /orders/track/{order_number}
Content
GET /pagesGET /pages/{slug}GET /blogsGET /blogs/{slug}
Promotions
POST /coupons/validate
Customer Auth
POST /auth/signupPOST /auth/loginGET /auth/mePOST /auth/me/addressesPATCH /auth/me/addresses/{address_id}/defaultDELETE /auth/me/addresses/{address_id}
Response Model Notes
- List endpoints use pagination model where applicable (
data+pagination). - Contract fields follow backend Pydantic schemas and route implementations.
- Media URLs may be rewritten to the public CDN domain.
Error Model Baseline
| Status | Meaning |
|---|---|
400 | Invalid request payload or query parameters |
401 | Missing/invalid auth header or token |
404 | Resource not found |
409 | Conflict (for example, duplicate signup email per store) |
422 | Validation failure |
500 | Internal server error |