Calculate minimum price for freight transport
GET/company/minimal
Calculate the minimum viable price for transporting goods between two points, incorporating all operational costs, platform commissions, and profit margins. This is the main pricing endpoint used on the platform.
Objective
Provide an accurate minimum price that covers all operational costs while maintaining competitive rates for freight transport services.
Use Cases
- Set minimum bid amounts when creating auctions
- Validate if a bid price is economically viable
- Calculate floor prices for transport contracts
- Support for dynamic pricing algorithms
- Generate price estimates for customers
- Prevent below-cost prices in competitive bidding
Pricing Algorithm
The minimum price calculation follows this formula:
- Base Cost: Gross cost from the external routing API (fuel, maintenance, time)
- Random Factor:
settings.pricing.today_random% variation on the base cost - Profit Margin:
settings.pricing.general_gain% added to the cost - Platform Commission:
settings.pricing.fee% (typically 3%) - Safety Margin: Additional 5% on the total
- Volume Price:
(volume / 30) * totalCost— proportional to load volume - Weight Price:
(weight / 44000) * totalCost— only applied when weight >= 22,000 kg (50%)
Final price = max(volumePrice, weightPrice, totalCost/2) with a minimum of €100
Average fuel consumption used: 32L/100km
Validation Rules
- Maximum volume: 30 m³ (capped if exceeded)
- Maximum weight: 44,000 kg (capped if exceeded)
- Minimum price: €100 (prevents zero or negative prices)
- Same origin and destination returns minimum values (1 km, €0)
Parameter Priority
Location identifier priority:
- idEtl/idEtd: Database address IDs (highest priority)
- zipcodeStart/zipcodeEnd: Search by postal code
- coordsStart/coordsEnd: GPS coordinates
- Coordinate search finds the nearest address within a 100 km radius
Error Responses
- 400: Invalid parameters or missing location identifiers
- 404: Addresses not found
- 500: External service error or pricing configuration not found
Request
Responses
- 200
- 400
- 404
- 500
Minimum price calculated correctly
Invalid request parameters
Addresses not found
External service error or price configuration not found