Travel & Expense

API Update: Manage Fuel Prices Directly via Vehicle Types

<span id="hs_cos_wrapper_name" class="hs_cos_wrapper hs_cos_wrapper_meta_field hs_cos_wrapper_type_text" style="" data-hs-cos-general-type="meta_field" data-hs-cos-type="text" >API Update: Manage Fuel Prices Directly via Vehicle Types</span>

For those integrating with Flex HRM via API, we have expanded the functionality of the VehicleType endpoint. You can now automate the management of average fuel prices directly within the vehicle type calls.

Manually updating average fuel prices for every single company at the end of the month can be time-consuming, especially if you manage large volumes or work at a payroll bureau. Therefore, we have added support for the AverageFuelPrices property in the existing VehicleType endpoint.

What is New?

The endpoint for vehicle types (VehicleType) has been updated with new fields that allow you to read, create, edit, and delete fuel price history via the API.

  • GET: Now also retrieves the list of connected fuel prices.

  • POST/PUT: You can now include a list of AverageFuelPrices when creating or updating a vehicle type.

  • Validation: The system ensures that price periods are logically connected without gaps or overlaps, just as it does in the user interface.

Why Use This?

By including fuel prices in your integration, you can build workflows that update price lists for all affected companies simultaneously. This reduces administrative burden and ensures that benefit calculations are always based on correct data without manual intervention.

Technical specifications and details about the new fields can be found in the API help under VehicleType.

You may also be interested in