Skip to main content
Price checks are optional. Call POST /v2/price-checks when your workflow needs a cost estimate or approval before booking. The request uses the route, vehicles, and service options. A price check does not need a VIN, but order creation still follows the vehicle identity rules. Price checks do not look up a VIN, even when you supply one. To include the van surcharge and the winter-tire terms, send height_mm and tires on the primary vehicle. Without height_mm, a production order can cost more than its price check, because order creation gets the height from the VIN. Vehicle height and tires gives the rules. For frequent price checks, supply address_line_1, postal_code, city, and country_code together with formatted_address for both stops. Keep the same address text for repeat requests. This lets Bahn reuse coordinates without removing address details needed for accurate pricing. A request with only formatted_address remains valid.
Sandbox prices, distances, and times only demonstrate the API response. They do not predict production results.

Check a route

Send the route and service choices you intend to use for the order. This complete request omits vehicle identifiers and pickup availability, which are not required for a price check:
Call Check a price with orders:write. Indicative pickup and delivery times in the response are planning estimates for the price calculation. They are not order ETAs, agreed windows, or delivery commitments.

Read the result

  • available: The response contains an automatic price. Use the price in your approval or booking flow.
  • custom_quote_required: Automatic pricing is not available for this request. Handle the request manually or contact Bahn.
An available response contains the complete price breakdown.
Money values use integer cents. The currency is EUR. additional_fees_cents is signed. It is negative when agreed discounts or price corrections on the order outweigh its surcharges. total_cents is always the amount to pay, so add the fields rather than assuming each one raises the total. The ordered_for field repeats the business you priced for. It is null when the price is for your own account.

Use the distance

distance_meters is the driving distance that the price calculation uses for the route. Bahn’s per-km prices use this distance rounded up to whole kilometers. Use it when you calculate your own derived prices, so your calculation uses exactly the same distance as Bahn’s. The value is null when no driving distance is available for the route. The order creation response carries distance_meters in the same way. Bahn does not store the value on the order, and later order reads do not contain it, so store it on your side when you need it.

Price for another business

Skip this section unless your credential is an ordering channel. The price depends on which customer the transport belongs to, so an ordering channel must price for the same business it will order for. Send the same ordered_for value in the price check and in the order that follows, or leave the field out of both when the transport is your own. Read Platform ordering for the details.

Create the order

The price check returns a calculation. It has no ID or expiry workflow, and the order request does not refer back to it. Order creation calculates the price again. Always use the accepted price from the created order as the order price. You can create an order without a price check.

Handle a custom quote result

A custom_quote_required response has a null price. It can still contain estimated pickup and delivery times, so do not treat it as an invalid route. Contact support@bahnexpress.com if you want to request a custom quote. Bahn does not guarantee that it can provide one.

High-volume browsing estimates

Use Estimate a price when you need many approximate transport prices, such as during browsing or auctions. This endpoint has higher request limits than price checks and a separate allowance. Each request estimates transport for one vehicle. For each stop, supply its type and an address with the same fields as a price check: address_line_1, optional address_line_2, postal_code, city, and country_code. Estimates require the country and postal code; formatted_address is optional. You can also supply coordinates, country_code, and postal_code directly instead of address. If a street lookup is slow or cannot find a suitable match, the estimate uses the postal-code location. A lookup failure does not make a supported estimate unavailable. Unknown German postal codes are rejected as invalid input. Island estimates do not include ferry charges; confirm those with a price check before booking. Display an estimated result as an approximate price. Before the buyer confirms a booking, call Check a price with full addresses and the selected services. Estimates use the current customer agreement but do not reserve a price. A distance error can put the price in a different tariff band. Order creation calculates the price again. Estimates currently support flexible transport on domestic German routes. An unavailable response means this method cannot estimate the request; transport may still be available. Do not automatically call price checks for failed browsing estimates. Reserve those checks for buyers who proceed to booking. Estimates use OpenStreetMap, GeoNames, and LocationIQ data. Display attribution with the estimate and supply coordinates you have permission to use. Estimates do not confirm road access or ferry requirements. Sandbox uses local postal-code locations and demonstration customer agreements.

Arrival estimates

estimated_pickup_at and estimated_delivery_at predict arrival from vehicle availability and comparable transports. They include the observed wait for pickup. They are not agreed windows or delivery deadlines. Sparse history produces a wider estimate from broader transport history and the route plan. It does not remove the timestamps. A timestamp can be null if essential route information is missing. The optional estimated_pickup_range and estimated_delivery_range contain start_at and end_at. A null end_at means the upper bound is unknown. Show these ranges as estimates, not guarantees. After ordering, read the current ETAs from the order. Driver, carrier, and fresh tracking estimates take precedence over historical predictions.