Affonso - Affiliate Marketing Software

Manage affiliate marketing programs via the Affonso CLI — create affiliates, track referrals, handle commissions, process payouts, and configure program settings. Use when the user asks about affiliate management, referral tracking, commission handling, or payout processing.

Audits

Pending

Install

openclaw skills install affonso

Affonso CLI Skill

Manage affiliate marketing programs from the command line.

Authentication

Use the AFFONSO_API_KEY environment variable. Verify with:

affonso whoami --json

Never use affonso login — it requires a browser and won't work in headless environments.

Rules

  • Always use --json on every command — without it, the CLI outputs ANSI tables that can't be parsed.
  • Never delete without user confirmation — all delete operations are destructive and irreversible.
  • Pagination — referrals use cursor-based pagination (--starting-after, --ending-before); all other resources use page-based (--page, --limit).

Commands

CommandDescription
affiliatesList, get, create, update, delete affiliates
referralsList, get, create, update, delete referrals (cursor-based pagination)
commissionsList, get, create, update, delete commissions
payoutsList, get, update payouts (no create/delete)
couponsList, get, create, delete coupons (no update)
clicksCreate click events with UTM and sub-tracking
embed-tokensCreate embed tokens for partner portals
programGet/update program settings + 8 sub-resources
marketplaceBrowse/search public programs (no auth required)
configGet/set CLI config (api-key, base-url)
whoamiShow authentication status

For full command details and options, see references/COMMAND_REFERENCE.md. For program sub-resources (payment-terms, tracking, restrictions, fraud-rules, portal, notifications, groups, creatives), see references/PROGRAM_SETTINGS_GUIDE.md.

Quick Start

  1. Verify auth: affonso whoami --json
  2. List resources: affonso affiliates list --json --limit 5
  3. Take action: approve, create, update, or configure as needed

For multi-step workflow recipes, see references/WORKFLOWS.md.