Demo Environment
Demo Credentials
For API testing and carrier onboarding purposes, Distribusion provides a dedicated demo environment, accessible through unique credentials. The demo environment provides full access to production schedules and meta data for marketing carriers and stations.
Content Differences
The overall functionality in the demo environment matches the production environment, however the content is not always the exact same. Distribusion’s demo environment is not connected to external carrier demo environments to ensure a higher level of stability. As such, all other endpoints (though they can still be used and resemble behaviour on production) return dummy values for the parameters that would otherwise be returned by the carrier’s API on production.
The main resulting divergences include:
- /connections/vacancy - A dummy price will be returned for the requested trip, which will not match the result from the corresponding /connections/find request (which comes from the Distribusion production schedules database). When you use EUR as your currency for the request the price returned will always show the value of 2500. This price is in cents, so when decimals are added the final price equals to €25.00. For other currencies it will be the equivalent amount e.g. 2768 USD, 2106 GBP etc. This rule applies for all carriers and all fares in the demo environment.
- /bookings/{booking_id}/tickets - Distribusion’s ticket template will always be returned on demo, while on production some carriers may provide their own ticket.
- /connections/seats - A dummy seat layout is returned which will not be specific to the bus and trip you have requested.
These mismatches will of course not be encountered in the production environment. Should you have additional testing requirements, please reach out to your account manager who will be able to support in facilitating.
Test Carriers
For general testing purposes, Distribusion will give you access to a few carriers that match your requirements, ensuring that we cover all functionality needed for your use case and for a proper integration.
Environment Access
We can control the access of specific carriers by environment, meaning we can limit the access of a carrier content to demo environment only or keep it available to demo and production environment at the same time.
What made this section unhelpful for you?
On this page
- Demo Environment