list_rental_companies
List car rental companies
Car rental companies that use Bota and rent directly through it. Returns id, name, website, active channels, whether bookings can be completed here (booking_via_agents) and whether it is the demo company.
無需輸入參數。
list_offices
List rental offices
Rental offices (pickup/return locations) of a company: name, city, address, opening hours, timezone, coordinates.
輸入參數languagecompany_id必填
search_availability
Search available cars and prices
Search available vehicles with real prices for a company, office and dates. Prices are identical to the company's own web chat (mandatory charges, one-way and time rules included). Returns numbered offers and the session_id of this booking session.
輸入參數languagecompany_id必填driver_age必填promo_codesession_idpickup_date必填pickup_timereturn_date必填return_timepickup_office必填return_office
ask_company
Ask the rental company
Ask the company a free-text question (requirements, deposit, insurance, documents, opening hours, pickup instructions…). Bota answers in the customer's language with the company's approved information. Read-only: it never starts, changes or completes a booking.
輸入參數languagequestion必填company_id必填
select_offer
Select an offer
Selects one of the numbered offers of the booking session. Returns the extras available for it, or the driver details the company needs. Only for companies with booking_via_agents=true.
輸入參數languagecompany_id必填session_id必填offer_number必填
provide_customer_details
Provide driver details
Submits the driver's details for the booking in progress and returns the booking summary with its confirmation_token. terms_accepted records that the customer accepted the company's terms and must be true.
輸入參數email必填notesphonelanguagelast_name必填company_id必填first_name必填session_id必填flight_numberterms_accepted必填
confirm_booking
Confirm the booking
Confirms the summarised booking with its confirmation_token, which proves the customer saw that exact summary. Creates the reservation in the company's reservation system and returns the confirmation code (and a payment link when the company requires prepayment). An on-request booking comes back pending the company's confirmation and without a code yet.
輸入參數languagecompany_id必填session_id必填confirmation_token必填
get_booking_status
Check a booking
Look up a booking made through Bota: status (confirmed, cancelled…), vehicle, office, dates and total. Needs the booking reference and the email it was made with.
輸入參數email必填languagecompany_id必填booking_reference必填
cancel_booking
Cancel a booking
Cancels a booking made through Bota. Without confirm it only returns the booking and whether it can be cancelled; with confirm=true it cancels it. Cancellation fees, if any, follow the company's terms.
輸入參數email必填confirmlanguagecompany_id必填booking_reference必填