Verify the complete workflow
Use Sandbox testing to move orders through the transport flow. Test update and cancellation requests on separate test orders. For platform ordering, also test separation between represented businesses. A successful sandbox eligibility check does not prove production eligibility.
Configure production
- Open Customer API in the Bahn portal and create a credential with Production selected.
- Store its client ID and secret in your production secret manager.
- Set both the API and token host to
https://api.bahnexpress.fi. - If you consume webhooks, create a production webhook endpoint and store its signing secret separately from the sandbox secret.
- Request a production token and verify a read request before enabling order creation.
Operate the integration
Store request IDs with write results. Monitor failed requests, exhausted retries, webhook verification failures, and webhook processing delays. The customer portal shows delivery attempts and lets you replay retained events to their original endpoint. Cache file IDs rather than temporary download URLs. Refresh the file list when a URL expires. Poll tracking only while the map is visible. Use the currentallowed_actions to decide whether a production order can change or be cancelled. Confirm the customer’s intent before cancellation.
Contact Bahn support with the environment, order ID, request ID, and observed behavior when you need help. Keep credentials and signing secrets out of support messages.