DynamicFeesApi
All URIs are relative to https://business.apis.kesk.app/v1
| Method | HTTP request | Description |
|---|---|---|
| calculateDynamicFees | POST /dynamic-fees/calculate | Calculate dynamic fees for an order |
| getWeatherConditions | GET /dynamic-fees/weather-conditions | Get current weather conditions |
calculateDynamicFees
FeeCalculationResponse calculateDynamicFees(FeeCalculationRequest)
Calculate dynamic fees for an order
Evaluates all active dynamic fee rules against the provided order context and returns applicable surcharges. Considers factors like weather conditions, time of day, zone restrictions, and demand levels to compute percentage or fixed-amount fees.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| FeeCalculationRequest | FeeCalculationRequest | Fee calculation request with order details including location, type, and base amount |
Return type
Authorization
HTTP request headers
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
getWeatherConditions
WeatherConditionsResponse getWeatherConditions(latitude, longitude)
Get current weather conditions
Retrieves real-time weather information for a specific location to help users understand potential weather-based fee surcharges. Returns temperature, precipitation, visibility, and weather condition type which may affect dynamic pricing.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| latitude | Double | Latitude coordinate for weather data retrieval | [default to null] |
| longitude | Double | Longitude coordinate for weather data retrieval | [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json; charset=utf-8