Skip to main content
Most list endpoints in the Nectar API accept query parameters to filter the results. This guide covers the most commonly used filters.

Usage data filters

The usage data endpoints (/usage/company/{id}, /usage/site/{id}, etc.) support the following filters:

Date type values

Commodity types

Use these values for the datasourceType parameter:

Identifier matching

The identifier filter normalizes both the search value and stored identifiers before comparing. Normalization removes dashes, spaces, underscores, commas, and forward slashes, strips leading zeros, and converts to uppercase. This means:
  • 013-774-6423 matches 0137746423
  • 137746423 matches 0137746423 (leading zeros are ignored)

Document filters

Document endpoints (/document/company/{id}, /document/site/{id}, etc.) support the same date, dateType, datasourceType, and identifier filters as usage data endpoints. Additionally:

Connection filters

Connection endpoints (/connection/company/{id}) support owner, status, and site filters: See Connection statuses for the full list of status values.

Combining filters with pagination

All filters work alongside pagination parameters. The total in the response reflects the filtered count, not the unfiltered total.

Next steps

Pagination

Iterate through large result sets

API Reference

Full parameter documentation for every endpoint