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.
输入参数limitadultstoCitytoCode必填infantschildrenfromCityfromCode必填cabinClassreturnDatechildrenAgesdepartureDate必填另有 1 个
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.
输入参数limitplace必填roomsadultscheckIn必填checkOut必填
Search package holidays and tours to a destination, departing from a given city within a date window.
输入参数limitadultsendDate必填fromCity必填startDate必填destination必填
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.
输入参数limitdriverAgepickupDate必填pickupTimedropoffDate必填dropoffTimepickupLocation必填dropoffLocation
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.
输入参数limitendDate必填endTimelocationstartDate必填startTime
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.
输入参数typelimitendDate必填startDate必填destination必填travellerAges必填
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.
输入参数vertical必填externalId必填
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.
输入参数externalId必填
suggest_places
Suggest places
Resolve a city, airport or region name to place suggestions with IATA codes that the search tools accept.
输入参数query必填
list_destinations
List destination guides
List travel destination guides published on Airsockfly, with hints for searching each destination.
输入参数limit
get_destination
Read destination guide
Read one destination guide by slug: highlights, airports, attractions and the best time to go.
输入参数slug必填
Read Airsockfly frequently asked questions about booking, payments and cancellations.
输入参数audience
Read the signed-in user's profile and travel preferences such as language, currency and home airport.
无需输入参数。
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.
无需输入参数。
list_bookings
List bookings
List the user's orders, newest first, with status and totals.
输入参数limitstatus
Read one order with its bookings, insurance policies, vouchers and invoice reference.
输入参数orderId必填
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.
输入参数contact必填endDatecurrencyvertical必填startDatecouponCodeexternalId必填travellers必填vehiclePlateidempotencyKey必填insuranceAddondriverLicenseYears
accept_price_change
Accept price change
Accept the changed price of an order after create_booking returned price_changed, and continue to payment.
输入参数orderIdidempotencyKey
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.
输入参数method必填orderId必填
get_payment_status
Check payment status
Check whether an order has been paid and confirmed.
输入参数orderId必填
preview_cancellation
Preview cancellation
Show what cancelling a booking would cost: penalty, refund and the deadline for free cancellation.
输入参数vertical必填bookingId必填
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.
输入参数reasonconfirm必填vertical必填bookingId必填
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.
输入参数notevertical必填bookingId必填newEndDate必填newStartDate必填
list_saved_offers
List saved offers
List offers and collections the user saved.
无需输入参数。
toggle_saved_offer
Save or unsave offer
Save an offer to the user's favourites, or remove it when it is already saved.
输入参数vertical必填externalId必填
list_price_alerts
List price alerts
List the user's price alerts.
无需输入参数。
create_price_alert
Create price alert
Create a price alert for an offer. The user is notified when the price drops to the threshold.
输入参数title必填subtitlevertical必填externalId必填thresholdGrosze必填
delete_price_alert
Delete price alert
Delete one of the user's price alerts.
输入参数id必填
get_loyalty
Read loyalty points
Read the user's loyalty points balance and recent point history.
无需输入参数。
List rewards the user can get for loyalty points, with their cost in points and remaining stock.
无需输入参数。
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.
输入参数cityslug必填phonestreetconfirm必填fullNamepostalCodecountryCodeidempotencyKey必填
list_notifications
Read notifications
Read the user's in-app notifications, newest first.
输入参数limit
list_support_cases
List support cases
List the user's support cases and their status.
无需输入参数。
create_support_case
Open support case
Open a support case with Airsockfly customer service about a booking or another issue.
输入参数message必填subject必填category必填vertical必填bookingRef