Commissions
Create a manual commission
A commission the engine did not produce: a bonus, or a missed referral attached to a sale. Approved on creation, held for the program's holding period, audited with your reason.
Scope: commissions:write (or write)
post/v1/commissions
Request
- Base URL: https://api.affiliaterail.com
- URL: https://api.affiliaterail.com/v1/commissions
- Auth: HTTP bearer
Request body
Example request
{
"program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
"partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
"amount_minor": 2500,
"currency": "USD",
"customer_id": "cus_7uSyy9FqVLCFWrdPeZaK",
"sale_id": "sale_7uSyy9FqVLCFWrdPeZaK"
}Response
The new commission
Example response
{
"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.