Choose booking guest types through the API
Read operational guest-type choices using the booking's own permissions and work branch.
Use the authenticated organization context to read guest-type choices for a scheduled booking. Copy the opaque UIDs returned by these endpoints when recording counts.
Choose types for new work
Call GET /v1/offerings/{offering_uid}/party-options?limit=50&offset=0. The acting credential needs the actual booking kind's create or update permission. Service offerings use their appointment or work-order workflow. Those permissions remain separate.
The response contains data, total, limit, offset, guest_types_enabled, counts_required and show_guest_type_labels. Limits are 1–200. Each choice supplies its UID, name, active/default flags and optional age guidance. Eligibility and current plan access determine the available choices.
Use counts_required to decide whether a count may remain unrecorded. When show_guest_type_labels is true, display each type's name even when the offering admits only one of the organization's types. Age ranges guide the person entering counts; keep type selection explicit.
Connected apps use bookings:read and bookings:write for this operation. The acting person's or API key's actual permissions, branch access and approval policy still apply.
Read choices on a public booking page
Call GET /v1/public/booking/surfaces/{surface_uid}/offerings/{offering_uid}/party-options with the same limit and offset. Supply surface=hosted, embedded or api for the delivery channel being used. This endpoint uses the published page's current access rules, allowed services and branch; it does not need a staff credential. Embedded origins and the API channel retain their own access and plan requirements.
The response uses the same operational choice shape above. It contains active types accepted by this offering, age guidance and display flags, without prices, capacity rules or named guests. When advanced guest types are unavailable, new choices use the active default type. Missing, numeric, wrong-type and foreign offering references return not found. A disabled page or a service removed from that page grants no access to its choices.
These choices prepare count entry. Availability, quotation and booking creation must still run their own checks; reading the list neither reserves space nor agrees a price. Responses are not cacheable. Reload the choices if the page's access or offering changes.
Check public availability
Send POST /v1/public/booking/surfaces/{surface_uid}/offerings/{offering_uid}/availability. Both path references are canonical opaque UIDs. The delivery channel and its origin rules remain the same as for the public page. Send dates, the timezone and the complete typed party in the JSON body:
{
"date": "2030-07-02",
"timezone": "America/Toronto",
"party_counts": [
{"guest_type_uid": "gtyp_0123456789abcdef", "count": 2},
{"guest_type_uid": "gtyp_fedcba9876543210", "count": 1}
]
}
null or an omitted party means unrecorded counts; the server refuses it when this offering needs people counts. [] explicitly records zero people. A guest type may consume no person-capacity units and still count as a person. The server applies its configured rules; clients must not compare total people with a slot's candidate count. Zero person demand still respects rooms, equipment and other resource requirements.
Date-range offerings use end_date for a lodging check-out, or timezone-aware range_start and range_end for rental handovers. Use provider_key for a selected provider and address_eligibility_token when the public flow requires address eligibility. The response contains operational availability, without private price or guest details. A preview makes no booking or hold. The former scalar GET request and party_size body are not accepted.
Carry the party through quotation and booking
Send the same complete party_counts vector to the page's POST /pricing-preview, POST /soft-holds and POST /bookings operations under /v1/public/booking/surfaces/{surface_uid}. Keep the selected offering, channel, site, provider and dates consistent. These operations reject the former party_size input. A changed party needs current availability and, when required, a matching hold before creation.
Pricing preview creates neither a booking nor saved pricing history. The actual booking stores its agreed original inputs through the existing financial services. A discount code applies once to the complete set of native price lines, including separate guest or date rates. Clients must not apply the code separately to each displayed line.
Date-only requests use the effective public booking window's timezone after resolving the selected site. That same timezone determines the booking's service date and frozen rate policy. If the configuration changes during creation, review the current options and retry the refused request. Zero guests do not remove room nights, rental hours or physical resource requirements.
Read an existing party
Call GET /v1/bookings/{booking_uid}/party-options. This uses the actual booking's read permission and work branch. Current recorded types remain available after archival or feature switch-off. An unrecorded party can use its default type. Existing choices keep their type labels where needed.
Prices and named guest details require their own permissions. Use the ordinary native booking amendment for count changes, keeping recorded zero separate from unrecorded counts. Creation and amendment recheck current access.
A native count change can return 409 meal_choices_conflict when it would
invalidate recorded seating-option quantities or an active guest/group review.
The refused request leaves party counts, physical allocation, selections and
financial records unchanged. Zero-price-difference options still constrain
participants. Reconcile the recorded choices explicitly; clients must not
reduce quantities, infer a guest's option or clear a review automatically.