Hotels
Collect a hotel booking result
Changed onPoll every ~20s. status is in_progress, succeeded, failed or attention; the last three are final.
succeeded: confirmation, booking_id, hotel, room, total_price + currency (what the guest is charged), supplier_paid + supplier_currency, payment_status, refundable, free_cancellation_until, cancellation_ladder and terms.
failed: error, written for the guest. The hold has been released and nothing was charged.
attention: error (and confirmation when known). The outcome could not be settled automatically and a person at LetsFG is confirming it with the supplier. The hold is kept and nothing is charged — do not book again.
The guest is e-mailed however the booking ends.
get/api/v1/hotels/booking/{booking_job_id}
Request
- Base URL: https://letsfg.co/developers/api/v1
- URL: https://letsfg.co/developers/api/v1/api/v1/hotels/booking/{booking_job_id}
- Auth: API key in header X-API-Key
Path parameters
booking_job_idstring required
Response
Booking status, and the booking itself once it settles
Changes
- info
endpoint added
- info