household_biz.can_start_day_business
Overview
- Checks whether a household business can start its daily operation, with failure reasons if not.
Metadata
| Field | Value |
|---|---|
| Display | Can Start Day Business |
| Category | household_biz |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| household_biz_id | entityId | no | — | Target HouseholdBiz entity id (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
can_start | bool | yes | Whether the business can start today |
fail_reasons | array<string> | yes | Reasons preventing start (empty if can_start) |
missing_required_object_ids | array<name> | yes | Required business object data ids currently missing from the restaurant site |
Usage
await inzoi.cli.execute('household_biz.can_start_day_business', {
household_biz_id: 0, // optional
});