API reference
All operations
REPORTING

Retrieves a Company report filtered by any combination of the supplied criteria.

All filter fields are optional; only the fields present in the request are applied. Filters include company name, account number, state, county, and zip (each matched individually), plus branches, sales reps, categories, and ranks (each matched as an array).

POST/api/v2/reporting/companies

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

application/jsonrequired

Filter and pagination criteria for the report. PageSize is capped at 100 regardless of the value supplied.

CompanyReportFilter
  • companyNamestringnullable
  • accountNostringnullable
  • branchesstring[]nullable
  • salesRepsstring[]nullable
  • categoriesstring[]nullable
  • ranksstring[]nullable
  • statestringnullable
  • countystringnullable
  • zipstringnullable
  • pageNumberinteger · int32
  • pageSizeinteger · int32

Responses

OK

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

Paginated
dataPaginatedResponse<CompanyReportDto[]>
  • totalCountinteger · int32
    • companyIdinteger · int32
    • companyNamestring
    • legalNamestring
    • statusstring
    • address1string
    • address2string
    • citystring
    • statestring
    • zipstring
    • phonestring
    • faxstring
    • accountNostring
    • countystring
    • countrystring
    • recordTypestring
    • branchstring
    • sourcestring
    • assignedRepsstring
    • categorystring
    • equipmentCountinteger · int32
    • rankstring
    • lastTouchstring · date-timenullable
    • lastTouchUserstring
    • erpCompanyCodestring
  • pageCountinteger · int32
  • currentPageCountinteger · int32
  • nextPageNumberinteger · int32nullable
  • hasNextPageboolean