POST /calculate-booking-amount Run in API Explorer
Ask AI
POST
/calculate-booking-amount
curl \
--request POST 'https://api.fleetee.io/calculate-booking-amount' \
--header "x-api-key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"start_date":"string","end_date":"string","category_id":42,"start_agency_id":42,"end_agency_id":42,"options":[{"id":42,"quantity":42}],"coupon_code":"string","franchise_levels":[{"id":42}],"mileage_level":{"id":42},"package_id":42}'
Request examples
{
"start_date": "string",
"end_date": "string",
"category_id": 42,
"start_agency_id": 42,
"end_agency_id": 42,
"options": [
{
"id": 42,
"quantity": 42
}
],
"coupon_code": "string",
"franchise_levels": [
{
"id": 42
}
],
"mileage_level": {
"id": 42
},
"package_id": 42
}
Response examples (200)
{
"total_amount": 42.0,
"total_coupon_amount": 42.0,
"total_amount_before_coupon": 42.0
}