VehicleTypesApi
All URIs are relative to https://business.apis.kesk.app/v1
| Method | HTTP request | Description |
|---|---|---|
| calculateVehicleFee | POST /vehicle-types/calculate-fee | Calculate delivery fee for vehicle types |
| getVehicleTypes | GET /vehicle-types | List 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
| Name | Type | Description | Notes |
|---|---|---|---|
| CalculateFeeRequest | CalculateFeeRequest | Fee calculation request containing pickup/dropoff coordinates and distance details | |
| page | Integer | Page number for pagination (default: 1) | [optional] [default to null] |
| per_page | Integer | Items per page for pagination (default: 20) | [optional] [default to null] |
Return type
PaginatedResponse_FareCalculationVehicleType
Authorization
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
| Name | Type | Description | Notes |
|---|---|---|---|
| page | Integer | Page number for pagination (default: 1) | [optional] [default to null] |
| per_page | Integer | Items per page for pagination (default: 20) | [optional] [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json; charset=utf-8