Order Management API Documentation
Base URL:
{your_domain}/api/v1/order-management
Authentication:
Use Authorization: Bearer <your_token>
API Endpoints:
1. Configuration & Utils
GET /config - Get system configuration
GET /config/get-zone-id - Retrieve zone info
GET /config/place-api-autocomplete - Google Maps autocomplete
GET /config/place-api-details - Google Maps details
GET /config/geocode-api - Geocode API
2. License Verification
POST /license/verify - Verify license
3. Admin Authentication
POST /auth/admin/login - Admin login
GET /auth/admin/token/{user_name} - Get token
POST /auth/admin/modules - Get modules
POST /auth/admin/modules-order - Get module orders
POST /auth/admin/change-status - Update order status
POST /auth/admin/deliveryman-list - Get deliverymen
POST /auth/admin/assign-deliveryman - Assign deliveryman
POST /auth/admin/delivery-man - Deliveryman info
GET /auth/admin/fcm-token-update/{user_name}/{fcm_token} - Update FCM token
4. Items & Reviews
GET /items/reviews/{item_id} - Get item reviews
5. Vendor & Units
GET /vendor/unit - List units
6. General Info
GET /about-us
GET /privacy-policy
GET /terms-and-conditions
7. Zone Management
GET /zone/list
8. Admin Order Management
GET /admin-orders/admin-order
GET /admin-orders/admin-delete-order/{orderid}
GET /customer/order/cancellation-reasons
Examples:
Admin Login:
POST /auth/admin/login
{
"user_name": "admin@[Link]",
"password": "yourpassword"
}
Get Module Orders:
POST /auth/admin/modules-order
Headers: Authorization: Bearer <token>
{
"module_id": 1,
"zone_id": 1
}
Change Order Status:
POST /auth/admin/change-status
Headers: Authorization: Bearer <token>
{
"order_id": 1001,
"order_status": "confirmed"
}