🌾
Agrimore Platform API
OperationalBackend API & Serverless Gateway for Agrimore Marketplace, Seller Hub, Delivery Fleet & Admin.
Architecture
Pure REST API
Zero UI DependenciesDatabase Engine
Supabase PG 17
53 Registered TablesRuntime Platform
Next.js Serverless
Edge & Regional LambdaSecurity
RLS & Service Role
JWT Token AuthRegistered API Endpoints
Available REST endpoints exposed to Flutter mobile apps and external webhooks.
| Domain | Method | Endpoint | Description |
|---|---|---|---|
| System & Diagnostics | GET | /api/health | System health check & database connectivity |
| System & Diagnostics | GET | /health | Health check alias |
| Catalog & Products | GET | /api/products | List, filter & search agricultural products |
| Catalog & Products | GET | /api/categories | List agricultural product categories |
| Orders & Quotes | POST | /api/orders | Create new marketplace or B2B order |
| Orders & Quotes | POST | /api/orders/quote | Calculate pricing, delivery fees & taxes |
| Orders & Quotes | POST | /api/rfq | Submit B2B Request For Quote |
| Authentication | POST | /api/auth/login | Authenticate with phone/password |
| Authentication | POST | /api/auth/otp | Request / verify mobile SMS OTP |
| Authentication | GET | /api/auth/me | Get authenticated profile |
| Seller Operations | GET | /api/seller/dashboard | Seller metrics, revenue & inventory |
| Seller Operations | GET | /api/seller/orders | Incoming seller store orders |
| Delivery Logistics | GET | /api/delivery/available | Orders available for dispatch |
| Delivery Logistics | GET | /api/delivery/active | Active delivery partner assignments |
| Employee Program | GET | /api/employee/dashboard | Sales associate performance & orders |
| Admin Governance | GET | /api/admin/metrics | Platform GMV, users & volume metrics |
| AI Assistant | POST | /api/ai/chat | Crop advisory & assistant proxy |
| Payments & Wallet | POST | /api/payments/razorpay | Initialize Razorpay payment order |
| Payments & Wallet | GET | /api/wallet | User balance & audit ledger |