Denominations
List Denominations
Returns all available voucher denominations and their values.
Endpoint: GET /denominations
Request
No request body required. Just the Authorization header.
bash
curl -X GET https://api.academia.ly/api/v1/reseller/denominations \
-H "Authorization: Bearer {token}"Response
Success (200):
json
{
"data": [
{ "id": 1, "name": "30 LYD", "value": 30 },
{ "id": 2, "name": "50 LYD", "value": 50 },
{ "id": 3, "name": "100 LYD", "value": 100 }
]
}| Field | Type | Description |
|---|---|---|
data[].id | integer | Denomination ID --- use this when generating vouchers |
data[].name | string | Human-readable denomination name |
data[].value | number | Value in LYD |
Errors
| Status | Meaning |
|---|---|
| 401 | Invalid or expired token |
| 403 | IP not whitelisted |
TIP
Cache the denominations list on your side and refresh periodically. Denominations rarely change.