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
Property | Type | Description |
---|---|---|
rooms | number | Number of rooms to book |
children | number | Number of children visitors |
adults | number | Number of adult visitors |
infants | number | Number of infants |