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
AverageFuelPriceswhen 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.