---
title: "Get Commissions By Filter"
method: POST
path: "/commissions/filter"
---

# Get Commissions By Filter

`POST /commissions/filter`

## Request

- Base URL: `https://dc-region.zuperpro.com/api`
- URL: `https://dc-region.zuperpro.com/api/commissions/filter`
- Auth: API key in header `x-api-key`

Rule-engine-based list endpoint — an alternative to the simple `filter.*` query params on the plain list endpoint, for building complex AND/OR filter conditions. Unlike other modules, invalid `sort_by`/`sort` values are not rejected — they silently fall back to the defaults (`created_at` / `DESC`) instead of returning a 400. `filter_rules` is only honored when the request opts into the rule-engine listing mode; without `filter_rules`, the endpoint falls back to legacy `filter.job_uid` / `filter.project_uid` / `filter.user_uid` query-style params on the same body.

## Request body

- object
  - `page` integer
  - `limit` integer
  - `sort` 'ASC' | 'DESC'
  - `filter_rules` object[]: Rule-engine filter conditions, ANDed/ORed per filter_rule_operator. Get the exact field key enum from this module's Meta Filter endpoint.
    - `key` 'commission_date' | 'commission_amount' | 'payout_status' | 'commission_assigned_to.user_uid' | 'job_uid' | 'project_uid'
    - `operator` 'EQUAL_TO' | 'NOT_EQUAL_TO' | 'CONTAINS' | 'NOT_CONTAINS' | 'GREATER_THAN' | 'LESS_THAN' | 'BETWEEN' | 'IS_EMPTY' | 'IS_NOT_EMPTY'
    - `value` unknown
    - `type` 'default_field' | 'nested_field' | 'custom_field'
  - `filter_rule_operator` 'AND' | 'OR'
  - `sort_by` 'paid_payout' | 'commission_date' | 'commission_amount' | 'created_at'
  - `filter.job_uid` string
  - `filter.project_uid` string
  - `filter.user_uid` string

## Response `200`

200

- object
  - `type` 'success'
  - `data` object[]: Commission documents — same shape as GET /commissions.
  - `total_records` integer

## Changes

- **2026-11-03** `3c21bc232e16`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuper/apis/zuper-pro-api/changes/commissions/filter/post.md)

---

[API](https://skmtc.dev/zuper/apis/zuper-pro-api.md) - [All operations](https://skmtc.dev/zuper/apis/zuper-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zuper/apis/zuper-pro-api/revisions/3c21bc232e16?raw)
