The Urban Store admin dashboard is a protected interface available atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ALEJ4NDRO2025/urban-store/llms.txt
Use this file to discover all available pages before exploring further.
/admin that gives authorized administrators full control over the store: browsing and updating every order, creating and maintaining the product catalog, and viewing real-time sales analytics. All admin API endpoints require a valid JWT that carries the is_admin: true claim — unauthenticated or non-admin requests are rejected outright.
Access Control
Admin privileges are stored directly on the MongoDBusers collection as an is_admin boolean field. When a user authenticates, that field is embedded in the signed JWT payload. The Next.js middleware.js inspects the JWT cookie on every request to /admin/** and redirects any visitor whose token does not carry is_admin: true back to the homepage.
To promote an existing user to administrator, connect to your MongoDB database and run:
Admin Panel Features
Order Management
View every order in the store and update its fulfillment status as it moves through the pipeline.
Product Catalog
Create, edit, and delete products including per-variant inventory, images, sizes, and colors.
Analytics Dashboard
Real-time conversion funnels, RFM customer segments, traffic sources, and smart anomaly alerts.
Inventory Control
Manage per-variant stock via the
stock_by_variant map to track exact size|color quantities.Viewing All Orders
Retrieve the full order list with customer details, totals, and current status:Updating Order Status
Move an order through its lifecycle with aPATCH request:
| Status | Meaning |
|---|---|
pending | Order created, awaiting payment |
paid | Payment confirmed by Stripe |
pending_shipment | Paid and queued for dispatch |
shipped | Dispatched to the carrier |
cancelled | Order cancelled |
Managing Products
All product write operations are restricted to admin users and require aBearer token in the Authorization header.
| Action | Method | Endpoint |
|---|---|---|
| Create product | POST | /api/products/ |
| Edit product | PUT | /api/products/<slug>/ |
| Delete product | DELETE | /api/products/<slug>/ |
Accessing the Analytics Dashboard
The analytics dashboard is embedded in the admin frontend at/admin. From there you can switch between the conversion funnel, RFM segmentation, traffic sources, and smart alerts views. The underlying data is served by the analytics API — see the Analytics page for the full endpoint reference.
The
chatbot and recomendaciones apps are present in INSTALLED_APPS in config/settings.py but their features are not yet implemented. The corresponding API endpoints are not active.