Create your first order
Get a sandbox token, book one transport, and read the result.
Connect your system
Link a Bahn order to your own record and keep it current.
Start with one working order
The Quickstart takes you through these steps:- Get an OAuth access token with your sandbox credential.
- Create an order with the pickup, delivery, vehicle, and service choices.
- Save the returned Bahn order ID and read the order back.
customer_reference to include your own reference. Read Integration lifecycle for storage, updates, and recovery.
The order contains its accepted price, current status, vehicles, timing, and available actions. Use webhooks to refresh your records when relevant changes occur.
Add what your workflow needs
The API Reference contains complete field definitions, named request examples, and interactive requests. Use the guides to understand a workflow and the reference to check its exact fields.
Order for businesses on a platform
If your product offers Bahn transport to other businesses, follow Platform ordering. An ordering-channel credential can create orders for represented businesses throughordered_for. Bahn support configures this account capability. Selected platforms can also arrange End-customer invoicing while retaining order ownership.
Test before going live
- Sandbox:
https://sandbox.api.bahnexpress.fi. Test orders and the features your integration uses. - Production:
https://api.bahnexpress.fi. Real transport orders.
If-Match. Read Errors and retries and Go live before production use.
Read the Changelog for changes to the API.
Building with a coding agent? Give it Build with an agent and the integration skill.
For credentials or integration support, contact support@bahnexpress.com.