search_flights
Search flights
Search flights between two airports or cities. Returns offers with the price in grosze, schedule, fare family and a link to the offer page. Use suggest_places first when you only know a city name.
ParameterslimitadultstoCitytoCoderequiredinfantschildrenfromCityfromCoderequiredcabinClassreturnDatechildrenAgesdepartureDaterequired+1 more
search_hotels
Search hotels
Search hotels in a city or area for given check-in and check-out dates. Returns offers with the total price of the stay, rating, board type and a link to the offer page.
ParameterslimitplacerequiredroomsadultscheckInrequiredcheckOutrequired
Search package holidays and tours to a destination, departing from a given city within a date window.
ParameterslimitadultsendDaterequiredfromCityrequiredstartDaterequireddestinationrequired
search_cars
Search car rentals
Search car rentals for a pickup place, date and time. Prices cover the whole rental; the drop-off place defaults to the pickup place.
ParameterslimitdriverAgepickupDaterequiredpickupTimedropoffDaterequireddropoffTimepickupLocationrequireddropoffLocation
search_parking
Search parking
Search airport and city parking for an entry and exit date. Prices cover every calendar day from entry to exit inclusive.
ParameterslimitendDaterequiredendTimelocationstartDaterequiredstartTime
search_insurance
Get travel insurance quotes
Get travel insurance quotes for a trip: destination, dates and the age of every insured person. Premiums are calculated by the server.
ParameterstypelimitendDaterequiredstartDaterequireddestinationrequiredtravellerAgesrequired
get_offer
Get offer details
Refresh one offer by its externalId before booking. Returns the current price, availability, cancellation policy and details, or not_found when the offer has expired.
ParametersverticalrequiredexternalIdrequired
get_flight_fare_rules
Get flight fare rules
Get the fare rules of a flight offer: baggage, changes and refunds. The offer is re-priced with the airline on the first call.
ParametersexternalIdrequired
suggest_places
Suggest places
Resolve a city, airport or region name to place suggestions with IATA codes that the search tools accept.
Parametersqueryrequired
list_destinations
List destination guides
List travel destination guides published on Airsockfly, with hints for searching each destination.
Parameterslimit
get_destination
Read destination guide
Read one destination guide by slug: highlights, airports, attractions and the best time to go.
Parametersslugrequired
Read Airsockfly frequently asked questions about booking, payments and cancellations.
Parametersaudience
Read the signed-in user's profile and travel preferences such as language, currency and home airport.
Takes no parameters.
list_travellers
List saved travellers
List travellers saved by the user with names and birth dates. Document numbers are never returned. Use them to fill create_booking.
Takes no parameters.
list_bookings
List bookings
List the user's orders, newest first, with status and totals.
Parameterslimitstatus
Read one order with its bookings, insurance policies, vouchers and invoice reference.
ParametersorderIdrequired
create_booking
Create booking
Reserve an offer for the user: re-prices the offer, holds availability and creates an order awaiting payment. Ask the user to confirm the offer, travellers and contact details first. When the result is price_changed, show the new price and call accept_price_change only if the user agrees.
ParameterscontactrequiredendDatecurrencyverticalrequiredstartDatecouponCodeexternalIdrequiredtravellersrequiredvehiclePlateidempotencyKeyrequiredinsuranceAddondriverLicenseYears
accept_price_change
Accept price change
Accept the changed price of an order after create_booking returned price_changed, and continue to payment.
ParametersorderIdidempotencyKey
start_payment
Start payment
Start payment for an order and get a secure Stripe checkout URL. The user must open the URL and pay personally. The agent never pays and must not claim that a payment was made.
ParametersmethodrequiredorderIdrequired
get_payment_status
Check payment status
Check whether an order has been paid and confirmed.
ParametersorderIdrequired
preview_cancellation
Preview cancellation
Show what cancelling a booking would cost: penalty, refund and the deadline for free cancellation.
ParametersverticalrequiredbookingIdrequired
cancel_booking
Cancel booking
Cancel a booking. This is irreversible: call preview_cancellation, tell the user the penalty and refund, and set confirm to true only after the user explicitly agreed.
ParametersreasonconfirmrequiredverticalrequiredbookingIdrequired
request_date_change
Request date change
Ask to move the dates of a hotel, tour or car rental booking. Creates a change request that the provider handles.
ParametersnoteverticalrequiredbookingIdrequirednewEndDaterequirednewStartDaterequired
list_saved_offers
List saved offers
List offers and collections the user saved.
Takes no parameters.
toggle_saved_offer
Save or unsave offer
Save an offer to the user's favourites, or remove it when it is already saved.
ParametersverticalrequiredexternalIdrequired
list_price_alerts
List price alerts
List the user's price alerts.
Takes no parameters.
create_price_alert
Create price alert
Create a price alert for an offer. The user is notified when the price drops to the threshold.
ParameterstitlerequiredsubtitleverticalrequiredexternalIdrequiredthresholdGroszerequired
delete_price_alert
Delete price alert
Delete one of the user's price alerts.
Parametersidrequired
get_loyalty
Read loyalty points
Read the user's loyalty points balance and recent point history.
Takes no parameters.
List rewards the user can get for loyalty points, with their cost in points and remaining stock.
Takes no parameters.
redeem_reward
Redeem reward
Exchange loyalty points for a reward. This spends points: confirm the reward and its cost with the user and set confirm to true only after explicit agreement. Physical rewards need a shipping address.
ParameterscityslugrequiredphonestreetconfirmrequiredfullNamepostalCodecountryCodeidempotencyKeyrequired
list_notifications
Read notifications
Read the user's in-app notifications, newest first.
Parameterslimit
list_support_cases
List support cases
List the user's support cases and their status.
Takes no parameters.
create_support_case
Open support case
Open a support case with Airsockfly customer service about a booking or another issue.
ParametersmessagerequiredsubjectrequiredcategoryrequiredverticalrequiredbookingRef