Create Affiliate Program
create_affiliate_programCreate a new affiliate program. You become the merchant and can approve partners who join. Requires Builder tier or higher. Supports CPC (cost-per-click), CPA return-visit tracking, or both. Partners promote your links and earn commissions you define; awsys.co handles tracking only — payments are made directly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"commission_type": "<commission_type>"
},
"name": "create_affiliate_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Program name (3–100 characters) | |
| cpa_rate | No | Cost-per-acquisition rate in USD (0.01–1000.00). Required when commission_type is "cpa_return" or "both". | |
| cpc_rate | No | Cost-per-click rate in USD (0.01–10.00). Required when commission_type is "cpc" or "both". | |
| is_public | No | Whether the program appears in the public discovery listing (default true) | |
| description | No | Public description of the program (max 500 characters) | |
| commission_type | Yes | Commission model: cpc (per unique click), cpa_return (per return visit/conversion), or both | |
| cookie_duration_days | No | How many days the affiliate tracking cookie lasts (1–365, default 30) |