Global Search

View as Markdown
Unified search across customers, payments, invoices, etc.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

account_idstringRequired

Query parameters

qstringOptional<=100 charactersDefaults to

Free-text query. < 2 chars returns mode='empty'. When the query looks like an entity ID (cus_prod_…, in_dev_…, etc.), the response switches to mode='id_lookup' and returns at most one entity from the matching section.

Response

Successful Response
querystring
The trimmed query that was searched.
modeenum
Which search mode produced the results.
sectionslist of objects

Result sections in display order. Empty list when no entity matched (the frontend renders the ‘No results’ empty state). Order: customers, payments, invoices, subscriptions, products, coupons, packages, meters, upgrade paths, then pages.

Errors

422
Unprocessable Entity Error