Skip to main content

household_biz.get_customer_diagnostics

Overview

  • Returns why a business customer is or is not eligible for restaurant service: visit ticks, entry/payment flags, pending party and waiting queue membership, table assignment, and the gate that emptied the resolved party.

Metadata

FieldValue
DisplayGet Customer Diagnostics
Categoryhousehold_biz
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
customer_entity_identityIdyes—Customer entity id to diagnose
household_biz_identityIdno—Target HouseholdBiz entity id (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
is_customer_in_siteboolyesWhether the customer is currently registered as being in the site
has_entered_siteboolyesWhether an enter tick was recorded for the last visit
has_leaved_siteboolyesWhether a leave tick was recorded for the last visit
enter_ticksintyesEnter ticks of the last visit (-1 when unset)
leave_ticksintyesLeave ticks of the last visit (-1 when unset)
visit_countintyesNumber of recorded visits today
is_manual_entry_customerboolyesWhether the customer entered the site directly instead of through the customer spawn flow
is_restaurant_service_completedboolyesWhether a ResidenceFamily customer already completed a restaurant payment this visit
has_paid_entrance_feeboolyesWhether the one-time entrance fee was paid
is_in_pending_partyboolyesWhether the customer belongs to a pending party that has not fully arrived
pending_party_member_idsarray<entityId>yesAll members of the pending party
pending_party_absent_member_idsarray<entityId>yesPending party members that have not arrived at the site
is_in_waiting_queueboolyesWhether the customer is enqueued for table assignment
waiting_party_member_idsarray<entityId>yesMembers of the waiting queue entry
has_assigned_tableboolyesWhether a table is currently assigned to the customer
assigned_table_entity_identityIdyesAssigned table entity id (-1 when none)
party_sizeintyesSize of the party resolved by GetCustomerPartyForMember
party_customer_idsarray<entityId>yesResolved party customer entity ids
party_block_reasonstringyesNone, NotInSite, RestaurantServiceCompleted, PendingPartyNotAllArrived, or ZoiGroupMemberNotArrived

Usage

await inzoi.cli.execute('household_biz.get_customer_diagnostics', {
customer_entity_id: 0,
household_biz_id: 0, // optional
});