Overview
The commission tools allow you to track and manage commission transactions for your affiliates. All tools support both Markdown and JSON response formats.Available Tools
| Tool | Description | Permission |
|---|---|---|
affonso_list_commissions | List commission transactions | read:commissions |
affonso_get_commission | Get a single commission | read:commissions |
affonso_create_commission | Create a new commission | write:commissions |
affonso_update_commission | Update commission status | write:commissions |
affonso_delete_commission | Delete a commission | delete:commissions |
Commission Statuses
| Status | Description |
|---|---|
PENDING | Commission created, awaiting approval |
APPROVED | Commission approved, ready for payout |
PAID | Commission has been paid out |
REJECTED | Commission was rejected |
REFUNDED | Commission was refunded due to return/chargeback |
affonso_list_commissions
List and filter commission transactions.Parameters
Page number for pagination
Results per page (max 100)
Filter by affiliate ID
Filter by status:
PENDING, APPROVED, PAID, REJECTED, REFUNDEDFilter from date (ISO 8601)
Filter to date (ISO 8601)
Response format:
markdown or jsonExample Prompts
Response
affonso_get_commission
Get detailed information about a specific commission.Parameters
The commission ID (starts with
txn_)Response format:
markdown or jsonExample Prompts
Response
affonso_create_commission
Create a new commission transaction manually.Parameters
The affiliate ID for this commission
Commission amount in cents
Original sale amount in cents
Associated referral ID
Initial status:
PENDING, APPROVEDDescription or notes
Response format:
markdown or jsonExample Prompts
Response
affonso_update_commission
Update an existing commission’s status or information.Parameters
The commission ID to update
New status:
PENDING, APPROVED, REJECTED, REFUNDEDUpdated commission amount in cents
Updated description
Response format:
markdown or jsonExample Prompts
Response
affonso_delete_commission
Parameters
The commission ID to delete
Response format:
markdown or jsonExample Prompts
Response
Bulk Operations
Approve Multiple Commissions
Monthly Commission Report
Error Handling
| Error | Cause | Solution |
|---|---|---|
NOT_FOUND | Commission ID doesn’t exist | Verify the ID is correct |
ALREADY_PAID | Cannot modify paid commission | Commission is locked after payout |
INVALID_TRANSITION | Invalid status change | Check allowed status transitions |
PERMISSION_DENIED | Missing required scope | Check your API key permissions |
