Get affiliateCode
codecks_get_affiliate_codeRetrieve a single affiliate code by ID, optionally selecting fields and expanding related stats, account, or creator data for targeted lookups.
Instructions
Get a single affiliateCode by ID with optional field selection.
Available fields: code, createdAt, isDeleted, isDisabled, label, message, remainingRedemptions, reward, ... Relations: stats, account, creator
Example selection: ["code", "createdAt", "isDeleted"]
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": {
"id": "<id>"
},
"name": "codecks_get_affiliate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Model ID | |
| selection | No | Selection array (fields/relations) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |
| include_relations | No | Attempt safe first-level relation expansion with guarded fallback |