Add a stay to the booking cart
bk_cart_addAdd a product to the Bookeasy booking cart, OR answer a booking question. This is SERVER-DRIVEN and stateful:
First add: omit session_key to start a new cart; pass operator_id, product_id, check_in, check_out, adults/children, and quoted_price (the price from bk_operator_availability).
The response status is 'added' (item is in the cart) OR 'question_pending' — in which case it returns ONE question and a pending_token. Ask the user EXACTLY that one question, then call bk_cart_add again with the same session_key, the pending_token, and answer={field_id, value}. Repeat until status is 'added'. Always reuse the session_key returned by the previous cart call — never invent one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Adults (default 2) | |
| answer | No | Answer to the pending booking question | |
| check_in | No | Check-in date YYYY-MM-DD | |
| children | No | Children (default 0) | |
| check_out | No | Check-out date YYYY-MM-DD | |
| product_id | No | Product id from bk_operator_availability | |
| operator_id | No | Bookeasy operator id (for a new product add) | |
| session_key | No | Cart session key from a prior cart call. Omit on the very first add to open a new cart. | |
| quoted_price | No | The price quoted by bk_operator_availability for this product | |
| pending_token | No | Token from a prior 'question_pending' response (when answering a booking question) |