Accounts
Fetch a list of accounts
Retrieves a list of accounts with optional filters for companyId, ids, name, code and archived status. Results are paginated.
post/v1-beta/accounts:search
Request
- Base URLhttps://external.pleo.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
beforestring
Lower bound of the page of data to return (cannot be used together with [after] or [offset])
afterstring
Upper bound of the page of data to return (cannot be used together with [before] or [offset])
offsetinteger
Offset of the page of data to return (cannot be used together with [before] or [after])
limitinteger
The maximum amount of items to return
sorting_keysstring[]
The keys to sort the results by
sorting_orderPage Order[]
The order to sort the results by. Must be the same length as [sortingKeys]; one order per key
Request body
Example request
{
"code": "2001",
"companyId": "123e4567-e89b-12d3-a456-426614174011",
"externalId": "123e4567-e89b-12d3-a456-426614174011",
"name": "Bank Charges"
}Response
Fetch of accounts successful.
Changes
No recorded changes to this operation across all 1 revision of this API.