get_referral_code
Get the referral code and URL for a specific vendor. If you are an authenticated agent (registered via register_agent), the request is recorded against your agent. Requesting a code does not itself earn a share of any commission: a commission is credited to the agent that submitted the code it was reported against, because showing a code to a user is not an event we can observe. Unauthenticated calls still return the code. The response always states whether the request was recorded and, when it was not, why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor | Yes | Vendor name to get the referral code for (e.g. 'Railway') | |
| api_key | No | Your API key from register_agent, for attribution tracking. Optional — unauthenticated calls still return the code. |