Search Account Records
Searches one account’s records in one call. account rows include the account in account_id. Use include_subaccounts to include its subaccounts. Every other row belongs to one of those accounts.
Each type needs its own read permission on the record’s account, and rows you can’t read are left out without an error: account (biz_, company:basic:read), member (mber_, member:basic:read), membership (mem_, member:basic:read), payment (pay_, payment:basic:read), affiliate (aff_, affiliate:basic:read), review (rev_, company:basic:read), resolution_center_case (reso_, payment:resolution_center_case:read) and promo_code (promo_, promo_code:basic:read). A query containing @ also needs member:email:read, and a phone match member:phone:read. An invoice’s number finds the invoice as its payment.
query must be 2 to 250 characters after trimming. A full card number returns a 400. data lists identifier matches first, such as an ID, email address, card digits or invoice number. Within each identifier match type, the newest records appear first. Queries of 3 or more characters also return ranked results after identifier matches, best match first. Each record appears once. match_reason explains why a record matched. Search lists the query shapes and match reasons.
first limits the response to 20 rows by default and up to 100. Search returns a single page. To filter one resource or page through every match, use its list endpoint, such as GET /payments?query=.
Authorizations
An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.
Scopes
Query Parameters
true also searches the subaccounts of a platform account_id: an ID, an email, card digits or a phone number finds their records, and the subaccounts themselves are found as account rows by name, ID or store link, or by the email of their owner, a team member or a customer. Safe to send for any account: one without subaccounts is searched as if this were false.

