curl, jq, and a sandbox credential from the Bahn customer portal.
1
Set your sandbox credentials
Set the client ID and client secret from the portal.
2
Get an access token
Request a token and save it. The token is valid for 15 minutes.
3
Create an order
Create one transport from a dealership to an end customer. Set A successful response has the
available_from to a future time before you run the command.accepted status. Save the returned id for later requests.4
Read the current order
Read the order with its Bahn order ID.The response should contain your order ID, the
accepted status, and the current allowed_actions.5
Advance the test order
Confirm pickup readiness with the first sandbox scenario. This gives you a real state change to read and later test through webhooks.The response should show
pickup_readiness_confirmed and the confirmed readiness value.