call_affiliate_product
Call a paid API product with automatic affiliate attribution. Handles USDC payment and routes revenue through affiliates when eligible.
Instructions
Call a paid x402 API product with automatic affiliate attribution. Handles full payment (USDC on Base). Pyrimid affiliate routing used when eligible; falls back to direct x402 if affiliate_id is invalid. Costs USDC per call — amount shown in get_opportunity_details.
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": {
"vendor_id": "<vendor_id>",
"product_id": "<product_id>"
},
"name": "call_affiliate_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Query parameters for the endpoint (e.g. {symbol: 'BTC'} for kronos_decision) | |
| vendor_id | Yes | Vendor ID (must be an x402 vendor, e.g. 'coinopai') | |
| product_id | Yes | Product ID to call | |
| affiliate_id | No | Override affiliate ID. If omitted, uses PYRIMID_AFFILIATE_ID env var or no attribution. |