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
ID of the referral this commission belongs to.
Total sale/transaction amount (not the commission amount). Must be a positive number. Will be automatically converted to your team’s currency if different.
Commission amount earned. Must be a non-negative number (can be 0).
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.Currency code (3 letters). Defaults to
USD.Whether this commission is from a subscription.
Commission status. Valid values:
pending, pending_manual_approval, ready_for_payment, paid, declined. Defaults to pending.Status of the customer’s purchase. Valid values:
open, complete, trialing, failed, refunded, partial_refunded. Defaults to complete.Payment provider’s intent ID. If provided, must be unique across all commissions. Used to prevent duplicate commissions for the same payment.
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.Always
true for successful responsesThe created commission object.
