Configure seating choice groups and options
Maintain scoped seating definitions through the existing offering writer, with sparse changes and separate price access.
Choice groups belong to meal seating offerings. Maintain them in the existing
POST /v1/offerings or PATCH /v1/offerings/{offering_uid} request using
meal_choice_changes. New configuration requires the meal choices entitlement
and an enabled meal category. Authorized deactivation remains safe after the
feature is switched off. A definition change does not amend a booking or bill.
Each sparse group change can contain its uid, name, minimum, maximum,
sort_order, is_active and sparse options. Omit uid for a new group and
provide its name and both limits. A group minimum cannot exceed its maximum
or the number of its active options. Each guest can select an option once.
These limits describe selections, not stock or physical seating capacity.
Each option change can contain its uid, name, unit_difference_cents,
sort_order, is_active and dietary_need_uids. New options need a name.
An omitted new option price difference is zero; omitting an existing option's
amount preserves it. Explicit price edits use the existing pricing-management
permissions. Signed integer amounts are inputs in the offering's currency;
the ordinary charge engine resolves any resulting booking amounts later.
Omit fields to preserve them. Explicit null is refused for editable values.
An empty changes collection performs no child changes; it does not delete
definitions. Archive groups or options with is_active=false. Surviving
selected terms and their history retain their original descriptions and
prices. Dietary labels are definition references and never authorize access
to a guest's requirements. Omitted labels are preserved without hydration.
All supplied UIDs are resolved in typed tenant batches. Existing options must belong to the named group and offering; references are never moved or aliased. The original offering writer owns the transaction, complete approval cohort, definition fence, financial field checks, current branch scope and audit. A refusal saves no partial group, option or offering change.
Read definitions
Use these paged reads with limit from 1 to 100, offset, and optional
include_inactive=true:
GET /v1/offerings/{offering_uid}/meal-choice-groupsGET /v1/offerings/{offering_uid}/meal-choice-groups/{group_uid}/options
Both require offering read and the offering's current branch access. Groups
contain no financial fields and do not request an optional financial approval.
Options also omit amounts by default. include_prices=true requests their
unit_difference_cents and currency; the existing pricing-read permission
still decides visibility, with any approval joined to the original cohort.
An ungranted request returns the operational projection with money omitted.
No cost, named guest or clinical read is acquired by these endpoints.
Oversized definition changes receive an explicit detail-budget refusal before large reference queries. No truncated definition change is applied. Existing booking selections use their own saved source values, not these live pages.
Recorded selections and charges
The staff booking request (POST /v1/bookings) accepts meal_choice_counts:
one group_uid, option_uid, guest_type_uid and nonnegative whole count
per entry. Omission leaves optional choices unrecorded; an explicit empty
array records zero choices when the group limits allow it. Guest counts and
selection limits validate together before the booking can save.
To prepare that request with meal-create or meal-update permission, page through
GET /v1/offerings/{offering_uid}/booking-meal-choice-groups and
GET /v1/offerings/{offering_uid}/booking-meal-choice-groups/{group_uid}/options.
These operational pages contain active choices and labels, with money omitted.
They do not grant offering configuration access. A recorded create request is
one complete selection; omitted option quantities in that selection are zero.
Read saved quantities at GET /v1/bookings/{booking_uid}/meal-choices with meal-read
permission. Unrecorded fields are null; recorded empty counts are an empty array.
The response retains saved labels after archival or switch-off and omits money.
A definition's signed amount is a nominal input, not an invoice total. A selected positive difference uses an ordinary fee; a negative difference uses the existing source discount rules. The same Commerce engine resolves pricing, allocated discounts and tax. A zero difference keeps the operational selection without creating a charge. Proven option fees add to the seating's native meal base and retain their own source identity.
Option charges use the seating's original payment policy. A fixed deposit is calculated once for the meal's policy group; each charge keeps its own funding attribution. Grouping never transfers money between charges. Gratuity uses the meal and proven option charges' resolved net after allocated discounts and before tax, with the original percentage and any staff waiver or reduction.
Changing a definition does not reprice a recorded selection. Guest names and named choice reviews annotate the recorded quantities independently; they cannot create or change fees. Clients submit operational choices through the booking workflow, never frozen financial snapshots or internal source bindings. Issued charges require the existing adjustment or credit workflow.
Review an assigned guest's saved choices
Read or update one guest and group through
GET /v1/schedule/reservations/{reservation_uid}/items/{item_uid}/guests/{guest_uid}/meal-choice-groups/{group_uid}
and the same path with PUT. The guest must be active and assigned to that
actual seating item. The group and options come from its frozen selections,
not a current offering catalogue.
Both actions require reservation read, meal read and guest-list read in one
current request. Updating also requires guest-list update. Connected apps
need both bookings:read and reservations:read to read this projection,
or both bookings:write and reservations:write to update it. The credential
still needs the listed permission keys and current access. Pricing and
personal dietary-requirement permissions are separate and are never granted
by these endpoints. Current customer, work-branch and membership checks apply.
An update contains only expected_economic_revision, expected_review_uid
and option_uids. Take the comparison values from the current read. A null
option list clears the review; an empty list explicitly records no choice
when the saved group permits it. A nonempty list contains saved option UIDs.
An unreviewed response has null review_uid and option_uids; a reviewed
empty list remains an empty list. Matching retries return the current review
without creating another history row.
Stale comparisons or incompatible named quantities return a conflict and save nothing. Old reviews remain retained after a replacement or clear. Only the annotation revision advances: aggregate quantities, fee identities, source agreements, original prices, tax, funding and physical allocation stay unchanged. Existing-work reads and reviews remain available under ordinary permissions after the choices or guest-roster feature is switched off.
The staff interface opens one group for one assigned guest, retains unsaved edits through recoverable reads, and hides detail after a current access denial. A successful review closes that editor; a further edit starts from the current comparison values. Audit details require the same meal and guest-list read permissions as the direct operational read.
To amend aggregate quantities explicitly, use the booking-owned command in Record seating choices through the API. Ordinary booking updates do not accept a choice vector. Named reviews above annotate the saved vector and cannot replace it.