Overview
Inspect affiliate profiles and attribution, review referrals, and settle affiliate payouts safely.
The affiliate APIs expose store-scoped affiliate memberships, approved global profile details, referral sessions, attributed orders, balances, and affiliate payout administration.
Affiliate payouts are separate from seller platform balance payouts. Amounts and balances are integer USD cents. Referral attribution points to the mutable Order and its InvoiceV2 product line; it does not use the deprecated legacy invoice resource.
Use these token abilities:
affiliatefor reads.affiliate:writein addition toaffiliatefor affiliate approval/rejection and referral review decisions.affiliate:payoutin addition toaffiliatefor payout creation and settlement.affiliate:sensitivein addition toaffiliatefor full referral session identifiers.
Payout creation requires an Idempotency-Key. The first request atomically reserves every eligible accepted referral for that affiliate. Replaying the same key returns the same payout instead of creating a duplicate. Payout status changes update the payout and every linked referral in one transaction; identical retries are no-ops.
Payout destinations are masked in API responses. Referral session identifiers are sensitive and should not be logged or exposed to buyers.
Affiliate program configuration and invitations use the separate affiliate configuration surface.