Skip to main content

Overview

The affiliate tools allow you to manage affiliates in your program through natural language commands. Create and update work on affiliate Accounts and durable program contacts, without creating merchant Users. All tools support both Markdown and JSON response formats.

Available Tools


affonso_list_affiliates

List and search affiliates with powerful filtering options.

Parameters

number
default:"1"
Page number for pagination
number
default:"50"
Number of results per page (max 100)
Search by name, email, or tracking ID
string
Filter by partnership status: APPROVED, PENDING, REJECTED
string
default:"createdAt"
Sort field: createdAt, name, email
string
default:"desc"
Sort order: asc or desc
string
default:"markdown"
Response format: markdown or json. Also accepted as responseFormat.

Example Prompts

Response


affonso_get_affiliate

Retrieve detailed information about a specific affiliate.

Parameters

string
required
The affiliate ID (starts with aff_)
array
Include related data: promoCodes, commissionOverrides, invoiceDetails, payoutMethod, onboardingResponses
string
default:"markdown"
Response format: markdown or json. Also accepted as responseFormat.

Example Prompts

Response


affonso_create_affiliate

Create a new affiliate in your program. Provisions an affiliate Account and durable program contact (no merchant User).

Parameters

string
required
Affiliate’s email address
string
Affiliate’s display name
string
Custom tracking ID (auto-generated if not provided)
string
default:"approved"
Initial partnership status: pending, approved, or rejected. Omit to auto-approve. No second update call is required.
string
default:"markdown"
Response format: markdown or json. Also accepted as responseFormat.

Example Prompts

Response


affonso_update_affiliate

Update an existing affiliate’s information.

Parameters

string
required
The affiliate ID to update
string
New display name
string
New email address
string
New partnership status: APPROVED, PENDING, REJECTED
object
Partial billing and invoice details. Omitted keys keep their current values. null clears optional fields. Creating a first invoice record requires first_name, last_name, address_line_1, city, and country.
string
Payout method (none to remove). Valid values match PUT /v1/affiliates/{id}.If you send payout_method without payout_details, or with empty / method-incomplete details, only the method type is updated. Existing PayPal, bank, and crypto credentials stay in place.
object
Payout details for the selected method. Sending this object replaces credentials and clears fields from other methods. Omit it to keep stored credentials when you only change payout_method.
string
default:"markdown"
Response format: markdown or json. Also accepted as responseFormat.

Example Prompts

Response


affonso_delete_affiliate

This is a destructive operation. The affiliate and all their data will be permanently deleted.

Parameters

string
required
The affiliate ID to delete
string
default:"markdown"
Response format: markdown or json. Also accepted as responseFormat.

Example Prompts

Response


Error Handling

Common errors you may encounter: