Cancel an Airbnb reservation
TL;DR
About
Give it the confirmation code. The first call shows what you paid and the refund under the cancellation policy, and changes nothing. The second call, with confirm, cancels the stay as you only if the refund terms did not change, and Airbnb tells the host at once. A stay that is already cancelled or that Airbnb no longer lets you cancel fails and nothing changes. It needs a browser signed in to Airbnb.
Inputs
code requiredReservation confirmation code, e.g. HMEZNST29K (Confirm an Airbnb booking returns it).
confirm optionalfalse (default) only reviews: returns what you paid, the refund, and a reviewHash, and cancels nothing. true cancels, and needs the reviewHash from the review.
Default: falsereasonId optionalAirbnb's cancellation reason code: 101 I no longer need accommodations (default), 102 I made the reservation by accident.
Default: "101"reviewHash optionalThe reviewHash a review call returned. Required with confirm: the cancellation goes through only if the refund terms still match it.
Output
code requiredstatus requiredThe reservation's status, as Airbnb names it, e.g. ACCEPTED before or CANCELED_BY_GUEST after.
cancelled requiredtrue only after a confirmed cancellation; false for a review.
reviewHash requiredHash of the reservation, reason, paid and refund shown; pass it back with confirm:true to cancel.
paid optionalrefund optionalThe total refund Airbnb shows on the cancellation screen.
