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