Commissions
What matures between two dates
Commissions whose mature_at falls inside the inclusive range, oldest first, straight off the maturity index. This answers the most common partner question, when am I paid: approved commissions become payable at mature_at; pending ones still need approval first, so filter by status when you only want the certain money. Amounts are integer minor units with their currency, as everywhere.
Scope: read
get/v1/commissions/maturing
Request
- Base URL: https://api.affiliaterail.com
- URL: https://api.affiliaterail.com/v1/commissions/maturing
- Auth: HTTP bearer
Query parameters
program_idstring required
Required on every list
Example:prg_7uSyy9FqVLCFWrdPeZaK
limitstring
1 to 100, default 25
Example:25
starting_afterstring
Object id; returns the page after it (older)
ending_beforestring
Object id; returns the page before it (newer)
fromstring required
ISO-8601, inclusive. Required.
tostring required
ISO-8601, inclusive. Required.
partner_idstring
status'approved' | 'pending'
Default: both
Response
Commissions in maturity order
Example response
{
"data": [
{
"id": "com_7uSyy9FqVLCFWrdPeZaK",
"program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
"partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
"sale_id": "sale_7uSyy9FqVLCFWrdPeZaK",
"customer_id": "cus_7uSyy9FqVLCFWrdPeZaK",
"rule_id": "flw_7uSyy9FqVLCFWrdPeZaK",
"rule_branch_id": "flb_7uSyy9FqVLCFWrdPeZaK",
"amount_minor": 2500,
"revenue_minor": 2500,
"currency": "USD",
"mature_at": "2026-08-21T10:15:30.000Z",
"approved_at": "2026-08-21T10:15:30.000Z",
"voided_at": "2026-08-21T10:15:30.000Z",
"payout_id": "pyt_7uSyy9FqVLCFWrdPeZaK",
"created_at": "2026-08-21T10:15:30.000Z",
"updated_at": "2026-08-21T10:15:30.000Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.