Skip to main content

Overview

The referral tools allow you to track and manage the complete referral lifecycle from initial click to conversion. All tools support both Markdown and JSON response formats.

Available Tools

Referral Types


affonso_list_referrals

List and filter referrals across your program.

Parameters

number
default:"1"
Page number for pagination
number
default:"50"
Results per page (max 100)
string
Filter by affiliate ID
string
Filter by type: CLICK, LEAD, CONVERSION, REJECTED, CANCELLED
string
Filter from date (ISO 8601)
string
Filter to date (ISO 8601)
string
default:"markdown"
Response format: markdown or json

Example Prompts

Response


affonso_get_referral

Get detailed information about a specific referral.

Parameters

string
required
The referral ID (starts with ref_)
string
default:"markdown"
Response format: markdown or json

Example Prompts

Response


affonso_create_referral

Create a new referral, typically representing a click or initial tracking event.

Parameters

string
required
The affiliate ID for this referral
string
default:"CLICK"
Referral type: CLICK, LEAD, CONVERSION
string
Customer’s email address
number
Transaction amount in cents (for conversions)
string
Your system’s reference ID
object
Additional custom data
string
default:"markdown"
Response format: markdown or json

Example Prompts

Response


affonso_update_referral

Update an existing referral’s status or information.

Parameters

string
required
The referral ID to update
string
New referral type
number
Updated transaction amount in cents
string
Updated customer email
string
default:"markdown"
Response format: markdown or json

Example Prompts

Response


affonso_delete_referral

This is a destructive operation. The referral and associated data will be permanently deleted.

Parameters

string
required
The referral ID to delete
string
default:"markdown"
Response format: markdown or json

Example Prompts

Response


Common Workflows

Track a Complete Conversion

Analyze Affiliate Performance

Error Handling