Create a new fare with a POST request:
POST /fares
{
"route_id": 1,
"seat_plan_id": 1,
"coach_type": 1,
"seat_type": "Business Class",
"from_date": "2024-01-01",
"to_date": "2024-12-31",
"amount": 1500,
"status": 1
}
{
"status": "success",
"message": "Fare created successfully",
"data": {
"data": {
"id": 3,
"route_id": 1,
"start_id": 1,
"end_id": 2,
"start_name": "Dhaka",
"end_name": "Chittagong",
"distance": 244,
"duration": "5:30",
"route_status": 1,
"seat_plan_id": 1,
"seat_plan_name": "AC Business",
"coach_type": 1,
"seat_type": "Business Class",
"from_date": "2024-01-01",
"to_date": "2024-12-31",
"amount": 1500,
"status": 1,
"created_by": 1,
"updated_by": null,
"created_at": "2024-01-15T12:00:00",
"updated_at": "2024-01-15T12:00:00",
"deleted_at": null
}
}
}