Skip to Content

VehicleTypesApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
calculateVehicleFeePOST /vehicle-types/calculate-feeCalculate delivery fee for vehicle types
getVehicleTypesGET /vehicle-typesList all available vehicle types

calculateVehicleFee

PaginatedResponse_FareCalculationVehicleType calculateVehicleFee(CalculateFeeRequest, page, per_page)

Calculate delivery fee for vehicle types

Computes delivery fees for all applicable vehicle types based on pickup and dropoff coordinates, distance, and zone pricing rules. Returns a list of vehicle types with calculated prices, allowing users to compare options before booking.

Parameters

NameTypeDescriptionNotes
CalculateFeeRequestCalculateFeeRequestFee calculation request containing pickup/dropoff coordinates and distance details
pageIntegerPage number for pagination (default: 1)[optional] [default to null]
per_pageIntegerItems per page for pagination (default: 20)[optional] [default to null]

Return type

PaginatedResponse_FareCalculationVehicleType

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

getVehicleTypes

PaginatedResponse_VehicleType getVehicleTypes(page, per_page)

List all available vehicle types

Retrieves all active vehicle types in the system with their details including names, descriptions, and characteristics. Used to display available vehicle options to users when they are planning a delivery or taxi booking.

Parameters

NameTypeDescriptionNotes
pageIntegerPage number for pagination (default: 1)[optional] [default to null]
per_pageIntegerItems per page for pagination (default: 20)[optional] [default to null]

Return type

PaginatedResponse_VehicleType

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8