0% found this document useful (0 votes)
3 views2 pages

Order Management API

The Order Management API documentation provides a comprehensive guide to the API's base URL, authentication method, and various endpoints for managing orders, admin authentication, items, vendor units, and general information. Key functionalities include license verification, admin login, order status updates, and retrieving item reviews. Examples are provided for common operations such as admin login and changing order status.

Uploaded by

drubini2003
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Order Management API

The Order Management API documentation provides a comprehensive guide to the API's base URL, authentication method, and various endpoints for managing orders, admin authentication, items, vendor units, and general information. Key functionalities include license verification, admin login, order status updates, and retrieving item reviews. Examples are provided for common operations such as admin login and changing order status.

Uploaded by

drubini2003
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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"
}

You might also like