https://erp.clarionit.in/api
Har request me ye header:
Authorization: Bearer YOUR_BOT_API_TOKEN Accept: application/json # ya X-Api-Key: YOUR_BOT_API_TOKEN
Token ERP server .env → BOT_API_TOKEN. Admin ye token WhatsApp provider ko alag se share kare.
| Kaam | Link |
|---|---|
| Company service request | https://erp.clarionit.in/service_call/company |
| Sales person form | https://erp.clarionit.in/service_call/{slug-or-id}example: https://erp.clarionit.in/service_call/toshan-dhiwar |
| ERP login | https://erp.clarionit.in/login |
| Method | Full link | Kaam |
|---|---|---|
| GET | https://erp.clarionit.in/api/service-calls | List (status, search, phone, sales_person_id) |
| POST | https://erp.clarionit.in/api/service-calls | Nayi call create (JSON, ya multipart + attachments[] photos) |
| GET | https://erp.clarionit.in/api/service-calls/{id} | Detail + visits + pickup/drop count |
| POST | https://erp.clarionit.in/api/service-calls/{id}/assign | Engineer assign (service visit) |
| POST | https://erp.clarionit.in/api/service-calls/{id}/pickup-drop | Vendor pickup/drop assign |
| GET | https://erp.clarionit.in/api/service-calls/{id}/visits | Us call ki visits |
| GET | https://erp.clarionit.in/api/service-calls/{id}/challans | Us call ke challan |
| GET | https://erp.clarionit.in/api/visits | Engineer ki visits |
| POST | https://erp.clarionit.in/api/visits/{id}/status | Visit / pickup-drop status |
| GET | https://erp.clarionit.in/api/sales-people | Sales list + form_url |
| GET | https://erp.clarionit.in/api/engineers | Engineer list |
| Method | Full link | Kaam |
|---|---|---|
| GET | https://erp.clarionit.in/api/job-cards | List |
| POST | https://erp.clarionit.in/api/job-cards | Create |
| GET | https://erp.clarionit.in/api/job-cards/{id} | Detail |
| PUT / PATCH | https://erp.clarionit.in/api/job-cards/{id} | Update |
| POST | https://erp.clarionit.in/api/job-cards/{id}/status | Status change |
| DELETE | https://erp.clarionit.in/api/job-cards/{id} | Delete |
| Method | Full link | Kaam |
|---|---|---|
| GET | https://erp.clarionit.in/api/challans | List |
| POST | https://erp.clarionit.in/api/challans | Create (visit_id + items) |
| GET | https://erp.clarionit.in/api/challans/{id} | Detail |
| PUT / PATCH | https://erp.clarionit.in/api/challans/{id} | Update |
| GET | https://erp.clarionit.in/api/challans/{id}/pdf | PDF URL |
| POST | https://erp.clarionit.in/api/challans/{id}/pdf-refresh | PDF dubara banao |
| POST | https://erp.clarionit.in/api/challans/{id}/account | Accounts bill status |
| GET | https://erp.clarionit.in/api/challans/by-number | Sr No se dhoondho |
| DELETE | https://erp.clarionit.in/api/challans/{id} | Soft delete |
Visit status: 0 Assigned · 1 Working · 2 Pending & Return · 3 Complete · -1 Canceled
Call status: 0 Fresh · 1 Assigned · 2 Closed
Challan type: 1 Billable · 2 Non-billable · 3 Other
POST https://erp.clarionit.in/api/service-calls
{
"name": "Customer Name",
"phone": "98XXXXXXXX",
"address": "Full address",
"requirement": "Printer not working",
"notes": "Morning visit",
"source": "whatsapp"
}
Company call: sales_person_id mat bhejo. Kisi sales ko dena ho to user id bhejo.