Skip to main content
POST
Check a price
Required scope: orders:write. The check does not create an order and needs no idempotency key. Repeat it after a timeout or a server error. The response contains the current automatic price, or custom_quote_required when automatic pricing does not support the route. The price is not reserved. Bahn does not guarantee a custom quote. The addresses must identify real places. A trade-in route must stay inside Finland, and a private pickup cannot include a trade-in vehicle. Sandbox prices, distances, and times are demonstration data. Send height_mm and tires on the primary vehicle to include the van surcharge and the winter-tire terms. The check never looks up a VIN. See Vehicle height and tires. Read Price checks for examples and the rules for showing a price.

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials.

Scopes

orders:write

Check prices, upload files, and change customer orders.

Headers

X-Request-Id
string

A caller-supplied request identifier for support.

Required string length: 1 - 255

Body

application/json

Route, vehicles, and service choices used to calculate a price.

pickup
object
required

Proposed pickup details. A price check does not require pickup availability.

delivery
object
required

Proposed delivery details.

items
(Primary vehicle · object | Trade-in vehicle · object)[]
required

One primary vehicle and, optionally, one reverse-route trade-in vehicle.

Required array length: 1 - 2 elements

One vehicle included in a price calculation.

service_options
object
required

Proposed transport and inspection service.

ordered_for
object

Optional. Send it only when an ordering-channel credential orders for another business. Omit it to order for your own account.

Response

The price check is complete.

Automatic price result or a clear custom-quote result.

status
enum<string>
required

available means the response contains an automatic price.

Available options:
available
ordered_for
object | null
required

Business the price was calculated for, or null when it is for your own account.

price
object
required

Automatic price for this request.

distance_meters
integer | null
required

The driving distance in meters that the price calculation uses for this route. Bahn's per-km prices use this distance rounded up to whole kilometers. Use it to calculate your own derived prices from exactly the same distance. The value is null when no driving distance is available for the route.

Required range: x >= 0
estimated_pickup_at
string<date-time> | null
required

Predicted pickup time, or null when essential route information is missing. It is not an agreed window.

estimated_delivery_at
string<date-time> | null
required

Predicted delivery time, or null when essential route information is missing. It is not a deadline.

estimated_pickup_range
object | null

Arrival prediction range. Sparse history widens the range using broader history and the route plan. This is not an agreed window or a guarantee. A null end means the upper bound is unknown. The whole value is null for live ETAs or missing essential route information.

estimated_delivery_range
object | null

Arrival prediction range. Sparse history widens the range using broader history and the route plan. This is not an agreed window or a guarantee. A null end means the upper bound is unknown. The whole value is null for live ETAs or missing essential route information.