Skip to main content

setGlobalPax

Change the visitor details that some modules use to fetch availability data.

Example

rpt({
widget: "general",
command: "setGlobalPax",
payload: { rooms: 2, children: 0, adults: 4, infants: 0 },
});
note

Payload is automatically merged with existing values. This means that PAX can be partially updated. For example, a payload of { adults: 2 } will update adults and retain previous rooms children and infants

Payload

PropertyTypeDescription
roomsnumberNumber of rooms to book
childrennumberNumber of children visitors
adultsnumberNumber of adult visitors
infantsnumberNumber of infants