household_biz.create_accommodation_booking
Overview
- Creates a booking for an accommodation room owned by a household business. The booking reserves the room for the guest list.
Metadata
| Field | Value |
|---|---|
| Display | Create Accommodation Booking |
| Category | household_biz |
| Access | UserCheat |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| accommodation_dt_id | name | yes | — | Accommodation data table row id |
| room_purpose_id | name | yes | — | Room purpose id |
| guest_entity_ids | string | yes | — | Comma-separated guest entity ids |
| stay_days | int | no | 1 | Number of stay days (default: 1) |
| household_biz_id | entityId | no | — | Target HouseholdBiz entity id (default: first guest's located site) |
Usage
await inzoi.cli.execute('household_biz.create_accommodation_booking', {
accommodation_dt_id: '',
room_purpose_id: '',
guest_entity_ids: '',
stay_days: 1, // optional
household_biz_id: 0, // optional
});