Prepare an Airbnb booking
TL;DR
About
Use it to check the full price before you commit. You get the price lines and total, what is due today, the payment plans, the payment method Airbnb would charge, the cancellation policy and whether the host wants a message. It books nothing and charges nothing. If the listing is not free for those dates, it gives Airbnb's reason. It needs a browser signed in to Airbnb.
Inputs
id requiredAirbnb room id (search_listings returns it).
checkin requiredcheckout requiredpets optionaladults optionalinfants optionalchildren optionalcurrency optionalpayment_plan optionalThe payment plan to select: FULL_PAYMENT pays all now, DEPOSITS pays part now (often $0) and the rest on a later date. Omit to keep the plan Airbnb selects. A plan Airbnb does not offer for the stay fails with the plans it offers.
Output
id requiredcheckin requiredcheckout requiredavailable requiredFalse when Airbnb will not book these dates and guests; then only unavailableReason is filled and no confirm page is opened.
priceItems requiredreview_hash requiredA hash of what this booking commits to (stay, total, amount due today and plan, card, cancellation policy). Confirm an Airbnb booking takes it and books only if the checkout still matches. Null when the dates cannot be booked.
paymentPlans requiredtotal optionalguests optionaldueToday optionalWhat the selected payment plan charges when you confirm.
checkoutUrl optionalThe confirm-and-pay page Airbnb opened for this booking.
hostMessage optionalThe host's own note shown above the message box.
paymentMethod optionalmessageRequired optionalTrue when Airbnb will not confirm without a message to the host.
unavailableReason optionalAirbnb's code, e.g. DATE. Null when Airbnb gives none.
cancellationPolicy optionalAirbnb's policy code, e.g. CANCEL_FLEXIBLE. Get Airbnb listing with these dates gives its refund milestones.
