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
Commission Statuses
affonso_list_commissions
List and filter commission transactions.Parameters
number
default:"1"
Page number for pagination
number
default:"50"
Results per page (max 100)
string
Filter by affiliate ID
string
Filter by status:
PENDING, APPROVED, PAID, REJECTED, REFUNDEDstring
Filter from date (ISO 8601)
string
Filter to date (ISO 8601)
string
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.Example Prompts
Response
affonso_get_commission
Get detailed information about a specific commission.Parameters
string
required
The commission ID (starts with
txn_)string
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.Example Prompts
Response
affonso_create_commission
Create a new commission record for a referral. Same required fields asPOST /v1/commissions: a referral, a positive sale amount, and a commission amount. For a non-sale cash bonus with no referral, use affonso_create_bonus.
Parameters
string
required
ID of the referral this commission belongs to
number
required
Total sale/transaction amount (not the commission amount). Must be a positive number
number
required
Commission amount earned. Must be a non-negative number (can be
0)string
default:"USD"
Currency code for the sale (3 letters, e.g.
USD, EUR). Defaults to USDstring
default:"USD"
Currency code for the commission (3 letters). Defaults to
USDboolean
default:"false"
Whether this is a recurring subscription commission
string
default:"pending"
Initial status:
pending, pending_manual_approval, ready_for_payment, paid, declinedstring
default:"complete"
Purchase status:
open, complete, trialing, failed, refunded, partial_refundedstring
Payment provider intent ID. If set, must be unique across commissions
integer
Days to hold the commission before payout. Non-negative integer. Uses program default if omitted
string
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.Example Prompts
Response
affonso_create_bonus
Create a first-class Bonus earning for an affiliate. This is not a sale commission: do not send a referral or sale amount. The result isbonus and ready_for_payment, and it is payout-eligible like other ready earnings.
Parameters
string
required
Affiliate to credit. Must belong to the authenticated team. Example:
cm3abc123def456number
required
Bonus amount in the team’s currency. Must be between
0.0001 and 999999.9999 with at most 4 decimal places. Zero, negative, overflow, and extra-precision values are rejected. Example: 50string
Optional note shown to the brand and affiliate (stored as the earning description). Maximum 2000 characters. Example:
Q3 partner bonusstring
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.Example Prompts
Response
The created earning is a Bonus with statusready_for_payment. There is no sale and no referral.
affonso_update_commission
Update an existing commission’s status or information.Parameters
string
required
The commission ID to update
string
New status:
PENDING, APPROVED, REJECTED, REFUNDEDnumber
Updated commission amount in cents
string
Updated description
string
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.Example Prompts
Response
affonso_delete_commission
Parameters
string
required
The commission ID to delete
string
default:"markdown"
Response format:
markdown or json. Also accepted as responseFormat.