Commissions
Create Commission
Create a new commission transaction manually
POST
This endpoint is for manual commission creation. If you want Affonso to
resolve the referral, match the incentive, calculate the commission, and
deduplicate retries automatically, use
POST /conversions
instead.
Body 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. Will be automatically converted to your team’s currency if different.
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
USD. If different from your team currency, automatic conversion will occur and original values will be preserved in separate fields.string
default:"USD"
Currency code (3 letters). Defaults to
USD.boolean
default:"false"
Whether this commission is from a subscription.
string
default:"pending"
Commission status. Valid values:
pending, pending_manual_approval, ready_for_payment, paid, declined. Defaults to pending.string
default:"complete"
Status of the customer’s purchase. Valid values:
open, complete, trialing, failed, refunded, partial_refunded. Defaults to complete.string
Payment provider’s intent ID. If provided, must be unique across all commissions. Used to prevent duplicate commissions for the same payment.
integer
Number of days to hold commission before it’s ready for payment. Must be a non-negative integer. If not provided, uses the program’s default hold period.
Response
The response includes the created commission object.boolean
Always
true for successful responsesobject
The created commission object.
