cURL
curl --request POST \ --url https://api.lyceum.technology/api/v2/external/voucher/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "jsmith@example.com", "code": "<string>" } '
{ "valid": true, "voucher_id": "<string>", "voucher_amount": 123, "error": "<string>" }
Validate a voucher code.
Pass an API key (prefixed lk_) or a JWT access token as a bearer token. Generate API keys in the dashboard at https://dashboard.lyceum.technology/api-keys.
lk_
Successful Response