pocket_market.list_services
Overview
- Lists the home services sold in the PocketMarket app (cleaning, repair, babysitter, ...) with their current price and whether the Zoi (entity_id, default: the possessed Zoi) can buy each one right now. reason is the code pocket_market.purchase_service would fail with (Success when available). Uses the same check as the purchase itself. Fails like the purchase with NotInGame (no game running, loading, or the character studio is open) and InvalidBuyer (entity_id is not a positive integer or not a character).
Metadata
| Field | Value |
|---|---|
| Display | List PocketMarket Services |
| Category | pocket_market |
| Access | Public |
| Scope | B2Authority |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Zoi the availability is checked for (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
count | int | yes | Number of services returned |
services | array<object> | yes | Services in data table order |
services[].category_id | string | yes | Shopping category that sells the service |
services[].service_id | string | yes | Service table row id, the value purchase_service takes |
services[].price | int | yes | Current price with any discount applied |
services[].original_price | int | yes | Price before discount |
services[].discount_percentage | int | yes | Active discount percentage, 0 when not on sale |
services[].available | bool | yes | Whether the Zoi can buy it now |
services[].reason | string | yes | Success, or the reason a purchase would be rejected |
Usage
await inzoi.cli.execute('pocket_market.list_services', {
entity_id: 0, // optional
});