business_get_records
The business's own records: details, team, assistant connections, calendar feed, how assistants see it, tax periods, a change's outcome, support requests, guides, weather cancellations, condition records, team notes, rooms and goodwill refunds.
kind:
- details: Read the business's legal entity, base location and contact details. provisioned=false if not yet set. street_address, phone and contact_email are null until the operator gives them. Needs nothing else.
- team: List the people who work in this business and what each can do, owners first. Needs nothing else.
- connections: List every assistant connected to this business, newest first, revoked ones included. Needs nothing else.
- calendar_feed: Read whether the operator's private calendar feed is on (never returns its URL). Needs nothing else.
- assistant_visibility: How AI assistants see this business: Zestli's listing, Zestli's search, and what ChatGPT, Claude and Gemini answer when asked about it with web search on. kind is what the business offers in a few words (e.g. 'kayak rental'); omit it to use 'tour and activity'. Needs nothing else.
- tax_period: Prepare scoped Zestli-only period facts for the operator/accountant; never file/pay. Needs period.
- operation: Recover the original committed result by the request UUID after timeout or lost delivery. Needs request_id.
- support_request: Read one support request this business sent: its status, Zestli's answer, and any later update. support_ref comes from business_respond (kind support_request). Needs support_ref.
- guide: Read Zestli's guides on running this business with Zestli and its tools. Needs nothing else.
- weather_cancellations: Read current guest choices and refund outcomes for issued weather cancellations. Needs nothing else.
- condition_record: Read one booking's condition record: its photos (photo_id, stage handover, return or receipt, item, added_by operator or traveler, received_at), its damage terms as sold (cap_minor, covered; null: sold without damage terms, so no claim can be charged) and its damage claims with their state and history. Needs booking_id.
- team_notes: Read the team-only notes on one booking, departure or room, newest first. These are the team's own notes: never share them with a guest or a partner as if they were booking facts. Needs subject, subject_id.
- rooms: List the business's rooms (each named unit of its stay offerings) with what the people who clean them need today. A stay shows reference, guest_name, party_size, arrival_date, departure_date, nights, arrives_from and leaves_by (the offering's check-in and check-out times), checked_in_at and checked_out_at; never money, guest email or phone. to_get_ready lists the room_ids with an arrival today that aren't inspected, earliest arrival first; out_of_order the rooms out of order. mine=true keeps only the rooms the person you work for is cleaning. offer_id keeps one stay offering. Needs nothing else.
- room_history: Read one room's housekeeping status changes, newest first: who changed it, from what, to what, when and the note given. room_id from business_get_records (kind rooms). Needs room_id.
- goodwill_refunds: List this business's goodwill refund proposals in one state (default pending), newest first, at most 50: booking, amount, reason, who proposed it and when, and once decided who decided, why and the refund's state (refund_state: refunded, pending, unknown, failed...). can_decide is true when you may approve or reject; then each pending one also says what the payout can bear (payout_can_bear_minor). A proposal not decided within 7 days (stale_after) can no longer be approved. Needs nothing else.
business_update_booking
Day-to-day work on a booking: assign it, record check-in or check-out, set access, answer an add-on, record delivery, add a team note, set a room's status, add condition photos, file a damage claim or propose a goodwill refund.
kind:
- assign_request: Say who on the team handles one booking request (status "request" in business_list_bookings). Needs booking_id, account_id.
- assign_stay: Say who on the team handles one stay (its arrival, the guest's needs, check-in and check-out); only when the person you work for asks. booking_id is the stay's booking_id from business_list_bookings (a package's booking_id for the package's stay part your business runs), or an offline stay's hold_id (its booking_id is null). Needs booking_id, account_id.
- assign_departure: Say who on the team handles (guides) one departure; only when the person you work for asks. Needs occurrence_id, account_id.
- assign_room: Say who on the team is cleaning one room; only when the person you work for asks. "me" takes the room for the person you work for; with housekeeping access that, or null to let go of their own room, is all they may do (housekeeping_takes_own_rooms). Needs room_id, account_id.
- check_in: Record that a stay's guest has checked in, from what the operator's person saw. Only when the person you work for says the guest arrived; never from the clock or the booking dates. booking_id is the stay's booking_id from business_list_bookings, or an offline stay's hold_id. occurred_at is when they actually arrived (omit for now). Needs booking_id, command.
- check_out: Record that a stay's guest has checked out, from what the operator's person saw. This records the departure only: it never refunds, charges or ends nights early. Needs booking_id, command.
- correct_check: Correct the time of a stay's check-in or check-out that was recorded wrongly (say, the desk pressed Checked in late); only when the person you work for gives the right time. booking_id as for business_update_booking (kind check_in). kind is "check_in" or "check_out"; occurred_at the time it actually happened. It never moves nights, money or the rooms' housekeeping status. Needs booking_id, command.
- booking_access: Set the access code for one booking (a door, gate or lockbox code), only with the code the person you work for gives you. booking_id is from business_list_bookings (an offline booking's hold_id). The code is for this booking only; it is stored encrypted and shown to the booking's own guest on their booking page and to their assistant (get_booking_status) from the release time in the offering's arrival terms (release_hours_before the start) until the booking ends, never in an email. The result says code_set and code_set_at, never the code. business_list_bookings shows each booking's arrival.code_needed and arrival.code_set: an unset code near its release time gets you a reminder email, and the guest sees your fallback contact instead. Needs booking_id, command.
- add_on: Confirm or decline one add-on a guest bought (for example early check-in or late check-out), only with the answer the person you work for gives you. business_list_bookings shows each booking's add_ons with their confirmation rule (automatic, ask_me or confirm_on_day) and state; readiness.add_ons_pending lists those waiting on you. confirm: you will provide it. decline: you can't, and the guest is refunded for that add-on automatically, to the card they paid with: its share of what they paid goes back, and your payout is cut by the same share of your earnings plus that share of the card fee (Zestli's commission on it is returned). Needs booking_id, command.
- delivery: Record evidence that one booked departure or package component started or completed. Needs offer_id, booking_id, command.
- team_note: Leave a team-only note on a booking, a departure or a room for the rest of the team. Team notes never reach guests, travelers, their assistants or partner businesses, and are not in any booking email; to tell a guest something, the operator contacts them directly. Needs subject, subject_id, command.
- room_status: Record a room's housekeeping status, from what the person you work for says (they cleaned it, inspected it, found something broken); never from the clock. expected_revision is the room's revision from business_get_records (kind rooms): if someone changed the room since, this is refused as room_status_changed and the message says its current status; read business_get_records (kind rooms) again and ask before retrying. Every change is kept in the room's history with who made it. "out_of_order" with block_from and block_nights also stops selling the room for those nights through the unit block: only with edit access (block_needs_edit_access), only after the person confirms (confirm_block=true; block_needs_confirmation), never for a booked night (unit_booked, naming the booking) or nights already off sale (unit_already_off_sale). Needs room_id, command.
- condition_photos: Add photos of what the guest gets (handover) or brings back (return) to one booking's private condition record, only photos the person you work for gives you. booking_id is from business_list_bookings. Needs booking_id, stage, images.
- damage_claim: File a damage claim on a booking sold with damage terms, only when the person you work for asks and with the facts and amount they give. Never estimate an amount. Needs booking_id, command.
- propose_goodwill_refund: Propose refunding a guest more than their booking's terms give, for someone with money access to approve. Nothing is sent to the guest and no money moves: the business's owners, managers and money members are emailed and see it on their Today, and one of them (never the proposer) approves or rejects it. If approved, the refund goes to the guest's own payment and comes out of this business's payout for the booking. amount_minor is in minor units (cents) of the booking's currency; more than the payout can bear is refused as goodwill_exceeds_payout (with the most it can be only when the caller has money access; otherwise ask the person you work for to check with someone who has). Needs command.