submit_referral_code
Submit your own referral code for a vendor in the AgentDeals index. Requires authentication via API key (from register_agent). Codes are active immediately; trust tier (new/verified/trusted) affects ranking weight, not visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The referral code (max 100 chars) | |
| expiry | No | Expiry date in ISO format (optional) | |
| vendor | Yes | Vendor name (must exist in the AgentDeals index) | |
| api_key | Yes | Your API key from register_agent. | |
| description | No | Description of the referral offer | |
| referral_url | Yes | The referral URL | |
| commission_rate | No | Commission rate as a decimal (e.g. 0.15 for 15%) |