---
title: "List commissions"
method: GET
path: "/v1/commissions"
tags: ["Commissions"]
---

# List commissions

`GET /v1/commissions`

## Request

- Base URL: `https://api.affiliaterail.com`
- URL: `https://api.affiliaterail.com/v1/commissions`
- Auth: HTTP bearer

Every commission says which rule and which branch produced it.

**Scope:** `read`

## Query parameters

- `program_id` string, required: Required on every list
- `limit` string: 1 to 100, default 25
- `starting_after` string: Object id; returns the page after it (older)
- `ending_before` string: Object id; returns the page before it (newer)
- `expand[]` union: Relations to embed: partner, customer, sale, payout, rule
  - string
  - string[]
- `include[]` union: Nothing to include on this resource
  - string
  - string[]
- `partner_id` string
- `status` 'pending' | 'approved' | 'due' | 'paid' | 'rejected' | 'voided'
- `sale_id` string
- `payout_id` string
- `kind` 'referral' | 'reward' | 'clawback'

## Response `200`

Commissions

- CommissionList
  - `data` Commission[], required
    - `id` string, required: Prefixed id (`com_…`)
    - `object` 'commission', required
    - `program_id` string, required: Prefixed id (`prg_…`)
    - `partner_id` string, required: Prefixed id (`part_…`)
    - `sale_id` string, nullable, required: Prefixed id (`sale_…`)
    - `customer_id` string, nullable, required: Prefixed id (`cus_…`)
    - `rule_id` string, nullable, required: Which commission rule produced it
    - `rule_branch_id` string, nullable, required: And which branch
    - `kind` 'referral' | 'reward' | 'clawback', required
    - `amount_minor` integer, required: Integer minor units (cents, pence). Never a float, never a string.
    - `revenue_minor` integer, nullable, required: Integer minor units (cents, pence). Never a float, never a string.
    - `currency` string, required: ISO-4217
    - `status` 'pending' | 'approved' | 'due' | 'paid' | 'rejected' | 'voided', required
    - `mature_at` string, date-time, nullable, required: ISO-8601, UTC
    - `approved_at` string, date-time, nullable, required: ISO-8601, UTC
    - `voided_at` string, date-time, nullable, required: ISO-8601, UTC
    - `void_reason` string, nullable, required
    - `payout_id` string, nullable, required: Prefixed id (`pyt_…`)
    - `metadata` object, nullable, required: Your own key/value data, stored as given
    - `created_at` string, date-time, required: ISO-8601, UTC
    - `updated_at` string, date-time, required: ISO-8601, UTC
  - `has_more` boolean, required: Pass the last object's id as `starting_after` to fetch the next page
  - `total_count` integer, required: Count of every object matching the filters, ignoring the cursor

## Other responses

- `400`: Invalid request
- `401`: Missing or unknown API key
- `403`: Key lacks the required scope
- `404`: No such object in your organization
- `422`: The request was understood and refused
- `429`: Rate limited: see Retry-After

---

[API](https://skmtc.dev/affiliaterail/apis/affiliaterail-api.md) · [All operations](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/revisions/ea41f345c092?raw)
