curl -X POST https://api.avoca.ai/v1/outbound/maintenance/schedule \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"team_id": 123,
"customer_name": "Bob Wilson",
"phone_number": "+13105551234",
"last_service_date": "2023-07-15",
"equipment_type": "HVAC System",
"maintenance_due": "2024-01-25",
"equipment_details": {
"brand": "Carrier",
"model": "58CVA090",
"age_years": 8,
"warranty_status": "expired"
},
"maintenance_plan": {
"plan_type": "premium",
"expires": "2024-12-31",
"services_included": ["Spring tune-up", "Fall tune-up", "Filter changes"],
"discount_percentage": 15
},
"schedule_options": {
"days_before_due": 10,
"preferred_days": ["tuesday", "wednesday", "thursday"],
"preferred_time": "morning"
},
"incentive_offer": {
"type": "discount",
"value": "$30 off when you book this week",
"expires": "2024-01-20"
}
}'