Welcome to the Odoo-Twilio WhatsApp Middleware API. This service connects Odoo ERP with Twilio WhatsApp Business API.
Health check endpoint
Test Twilio WhatsApp connection
{
"to": "whatsapp:+1234567890",
"message": "Test message"
}
Test Odoo connection
Send WhatsApp message
{
"to": "whatsapp:+1234567890",
"message": "Your message here",
"template": "optional_template_name",
"parameters": {}
}
Create maintenance request in Odoo
{
"title": "Equipment Issue",
"description": "Detailed description",
"equipment_id": 1,
"priority": "1",
"category_id": 1
}
Create expense request in Odoo
{
"description": "Expense description",
"amount": 100.00,
"quantity": 1,
"employee_id": 1,
"currency_id": 1
}
Create fund request in Odoo
{
"amount": 500.00,
"description": "Fund purpose",
"partner_id": 1,
"currency_id": 1
}
Twilio webhook for incoming messages
Odoo webhook for status updates
Users can send messages in the following formats:
MAINT: [Equipment] - [Description]EXPENSE: [Amount] - [Description]FUND: [Amount] - [Purpose]HELP