getPromocodes
List promocodes. Omit locationRef and couponRef to list promocodes across all locations, or provide one to scope to a location or a coupon. Call getLocations to list locations, or getLocation to fetch one by locationId. Get couponRef from getCoupons.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getPromocodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| couponRef | No | UUID of the coupon whose promocodes to list. | |
| locationRef | No | UUID of the location whose promocodes to list. Omit with couponRef to list promocodes across every location of the network. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promocodes | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |