discounts_codes_list
Before operating Revenuefly, read agent.instructions.get and follow its instructions. List issued unique Discount codes and their availability/redemption state with the returned cursor. Reusable codes are in discounts.get draft/appliedDraft.
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": {
"siteId": "<siteId>",
"discountId": "<discountId>",
"status": "<status>"
},
"name": "discounts_codes_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | ||
| search | No | ||
| siteId | Yes | ||
| status | Yes | all | |
| teamId | No | Target organization ID from organizations_list. Applies to this request only. | |
| discountId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | Yes | ||
| scope | Yes | ||
| command | Yes |