GET
/api/v1/commissions/:idReturns detailed information about a single commission, including the associated affiliate, referral code, customer email, and payout linkage.
Path parameters
| Parameter | Type | Description |
|---|---|---|
idrequired | string | The commission ID. |
Example request
bash
curl https://anderro.com/api/v1/commissions/comm_abc123 \
-H "x-api-key: sk_your_secret_key"
Responses
200Commission details
json
{
"data": {
"id": "comm_abc123",
"amount_cents": 980,
"status": "approved",
"hold_until": "2026-05-01T00:00:00.000Z",
"created_at": "2026-04-01T14:30:00.000Z",
"affiliate": {
"id": "ap_xyz789",
"email": "[email protected]",
"name": "Jane Smith"
},
"referral_code": "jane-smith",
"customer_email": "[email protected]",
"payment_amount_cents": 4900,
"payout_id": null
}
}
404Commission not found
json
{
"error": "Commission not found"
}
Payout linkage
The payout_id field is null until the commission is bundled into a payout. Once included, it references the payout ID which you can look up via the Get Payout endpoint.
Refunded commissions
If the underlying payment was refunded, status is refunded and amount_cents is the post-refund value (zero on a full refund, proportionally reduced on a partial refund). See Refund a Commission for the refund flow.