Get Invoice Stats By Filter

Changed on

Same aggregation/response shape as Get Invoice Stats, but selects invoices via the v3 filter_rules engine instead of fixed date/customer params. Team Leaders restricted to invoices created by their reports unless can_tl_access_all_invoices is enabled; Field Executives restricted to their own unless can_fe_access_all_invoices is enabled.

post/analytics/invoice

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/analytics/invoice
  • Auth
    API key in header x-api-key

Request body

filter_rulesobject[]
filter_rule_operator'AND' | 'OR'
preferred_timezonestring

Response

200

typestring

Example response

{
  "type": "success"
}

Changes