call_affiliate_product
Call paid x402 API products with automatic affiliate attribution and USDC payment on Base. Routes via pyramidal affiliate network or direct payment if affiliate ID invalid.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor_id | Yes | Vendor ID (must be an x402 vendor, e.g. 'coinopai') | |
| product_id | Yes | Product ID to call | |
| params | No | Query parameters for the endpoint (e.g. {symbol: 'BTC'} for kronos_decision) | |
| affiliate_id | No | Override affiliate ID. If omitted, uses PYRIMID_AFFILIATE_ID env var or no attribution. |