Get voucher
unifi_get_voucherRetrieve a specific UniFi hotspot voucher by site ID and voucher ID to view its details and status in the network.
Instructions
Get a specific hotspot voucher by ID (same fields as the list entry).
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>",
"voucherId": "<voucherId>"
},
"name": "unifi_get_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID | |
| voucherId | Yes | Voucher ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| code | No | ||
| name | No | ||
| expired | No | ||
| createdAt | No | ||
| expiresAt | No | ||
| activatedAt | No | ||
| rxRateLimitKbps | No | ||
| txRateLimitKbps | No | ||
| timeLimitMinutes | No | ||
| authorizedGuestCount | No | ||
| authorizedGuestLimit | No | ||
| dataUsageLimitMBytes | No |