Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enquiry and lead management
/enquiries
/enquiries/{id}
/enquiries/verify-whatsapp
POST /enquiries
{ "to_company_id": "7b3f1c2d-4e5a-6f7b-8c9d-0e1f2a3b4c5d", "product_id": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d", "message": "Interested in bulk order of 500 units", "quantity": 500, "user_name": "Amit Sharma", "user_email": "amit@example.com", "user_phone": "+91-9876543210" }
to_company_id
product_id
message
quantity
user_name
user_email
user_phone
201 Created
{ "id": "550e8400-e29b-41d4-a716-446655440000", "to_company_id": "7b3f1c2d-4e5a-6f7b-8c9d-0e1f2a3b4c5d", "product_id": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d", "message": "Interested in bulk order of 500 units", "quantity": 500, "user_name": "Amit Sharma", "user_email": "amit@example.com", "user_phone": "+91-9876543210", "status": "pending", "zoho_lead_id": null, "created_at": "2024-01-15T10:30:00Z" }
400
500
GET /enquiries
company_id
status
source_platform
page
1
page_size
50
100
pending
contacted
qualified
converted
lost
200 OK
{ "items": [...], "total": 142, "page": 1, "page_size": 50, "total_pages": 3 }
403
GET /enquiries/{enquiry_id}
404
PATCH /enquiries/{enquiry_id}
{ "status": "qualified", "notes": "Buyer confirmed budget and timeline" }
notes
POST /enquiries/verify-whatsapp
{ "phone": "+91-9876543210" }
{ "phone": "+91-9876543210", "is_valid": true, "is_whatsapp": true, "error": null }
POST /enquiries └── Enquiry saved to DB └── Background task: ├── WhatsApp message → supplier's phone ├── Email notification → supplier └── Zoho CRM push → Lead created (zoho_lead_id stored on success)