/bookings/create
This endpoint allows you to place a booking directly in the carrier’s system.
Header Parameters
Set your API key. To request a demo API key please reach out to us at partner@distribusion.com. Reference value: ZW8FXhnBl53yTkrMvoqLp4Xq7mf9nEBGsxpTWrid.
Body Parameters
Set the carrier code. Use the value retrieved from the selected trip from the /connections/find response. Reference value: AMTR.
Set the departure station code. Use the value retrieved from the selected trip from the /connections/find response. Reference value: FRPARPGB.
Set the arrival station code. Use the value retrieved from the selected trip from the /connections/find response. Reference value: DEBERCBS.
Set the departure date and time. Use the value retrieved from the selected trip from the /connections/find response. Reference value: 2024-04-25T06:58.
Set the arrival date and time. Use the value retrieved from the selected trip from the /connections/find response. Reference value: 2024-04-25T08:30.
Set the departure date and time for the return leg of the trip. Use the value retrieved from the selected trip from the /connections/find response. Reference value: 2024-04-26T06:22.
Set the arrival date and time for the return leg of the trip. Use the value retrieved from the selected trip from the /connections/find response. Reference value: 2024-04-26T10:34.
Set the retailer partner number (RPN). Contact your partnership manager to receive yours. Reference value: 012345.
Set the fare class. Use the value retrieved from the selected trip from the /connections/find response. Default set to FARE-1 if the field is not used. Reference value: FARE-1.
Set the price. Use the value retrieved from the selected trip from the /connections/vacancy response. Reference value: 10000.
Set the original price. Use the value retrieved from the selected trip from the /connections/vacancy response. Reference value: 10000.
Set the number of passengers. Reference value: 1.
Set the language for the content of the response. The field accepts ISO 639 language codes. If the content in the specified language is unavailable, English will be returned. For more details check our Languages guide. Reference value: en.
Set the currency of all monetary results in the response. The field accepts ISO 4217 currency codes. For more details check our Currencies guide. Reference value: EUR.
Activate results for carriers that allow virtual interlining for supported retailer accounts. For more details check our Virtual Interlining guide. Reference value: true.
Set the payment execution method. Standard value should be set to false for all retailers, unless discussed with your Partnership Manager. Reference value: false.
Set the payment method. Standard value should be set to demand_note for all retailers, unless discussed with your Partnership Manager. Reference value: demand_note.
Set the acceptance status of the terms by the passenger. Reference value: true.
Enable the standard Distribusion confirmation and cancellation email to be sent to the passenger. If set to false, retailer must send their own email with the pdf ticket attached. For more details check our Ticket Delivery guide. Reference value: true.
Set the title of the lead passenger. The field accepts mr or mrs. Reference value: mr.
Set the first name of the lead passenger. Reference value: John.
Set the last name of the lead passenger. Reference value: Smith.
Set the email of the lead passenger. Reference value: email@provider.com.
Set the phone number of the lead passenger. Some carriers validate the phone number formatting. Reference value: +493533400275.
Set the city of the lead passenger. Reference value: Berlin.
Set the city of the lead passenger. Reference value: 13355.
Set the street and number of the lead passenger. Reference value: Wattstrasse 10.
Set the ID of the reservation/booking. This value can be created by the retailer and used to make identification easier. Reference value: ABC123.
Set the ID of the payment retrieved from the retailer payment flow. It can be useful when the retailer has to do reconciliation of payments and bookings. Reference value: ABC123.