Fetches a paged list of companies with search, filter and sort options.
At least one of `searchTerm`, `filter` or `advancedSearch` is required. Deleted companies are not returned.
/api/v2/companies/listAuthentication
Choose one supported method for this request.
Parameters
pageNumberqueryinteger · int32The page number, starting at 1. Defaults to 1.
pageSizequeryinteger · int32Companies per page, 1–200. Defaults to 100; values outside the range also fall back to 100.
orderByquerystringNot currently used; use `sortOrders` instead.
searchTermquerystringMatches companies whose name or account number contains this text. Characters other than letters and digits are ignored.
fieldsquerystringOptional JSON array of field filters. Only applied when `searchTerm` is not sent.
filterquerystring`MyFavorites` for the current user's favorite companies or `MyAssigned` for companies the current user is assigned to.
sortOrdersquerystringSort order of the results. The words `Ascending` and `Descending` are accepted in place of `ASC` and `DESC`.
colsquerystringComma-separated list of columns to include in each row.
advancedSearchquerystringURL-encoded JSON array of `{"Field": ..., "Value": ...}` objects (property names are case-sensitive). Supported fields: `State`, `City`, `County`, `Zip`, `Status`. Each value is a "contains" match; all conditions must match. Unsupported fields are ignored.
Responses
Request successful with company data.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
totalCountinteger · int32dataobject[]nullablepageCountinteger · int32currentPageCountinteger · int32nextPageNumberinteger · int32nullablehasNextPageboolean