application/json

Body

  • start_date string
  • end_date string
  • category_id integer
  • start_agency_id integer
  • end_agency_id integer
  • options array[object]
    Hide options attributes Show options attributes object
    • id integer
    • quantity integer
  • coupon_code string
  • franchise_levels array[object]
    Hide franchise_levels attribute Show franchise_levels attribute object
    • id integer
  • mileage_level object
    Hide mileage_level attribute Show mileage_level attribute object
    • id integer
  • package_id integer

Responses

  • 200 application/json

    200 response

    Hide response attributes Show response attributes object
    • total_amount number
    • total_coupon_amount number
    • total_amount_before_coupon number
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
}