Skip to main content

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

FieldValue
DisplayList PocketMarket Services
Categorypocket_market
AccessPublic
ScopeB2Authority
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdno—Zoi the availability is checked for (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
countintyesNumber of services returned
servicesarray<object>yesServices in data table order
services[].category_idstringyesShopping category that sells the service
services[].service_idstringyesService table row id, the value purchase_service takes
services[].priceintyesCurrent price with any discount applied
services[].original_priceintyesPrice before discount
services[].discount_percentageintyesActive discount percentage, 0 when not on sale
services[].availableboolyesWhether the Zoi can buy it now
services[].reasonstringyesSuccess, or the reason a purchase would be rejected

Usage

await inzoi.cli.execute('pocket_market.list_services', {
entity_id: 0, // optional
});