Skip to main content
POST
/
api
/
v2
/
external
/
voucher
/
validate
Validate Voucher
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>"
}

Authorizations

Authorization
string
header
required

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.

Body

application/json
email
string<email>
required
code
string
required

Response

Successful Response

valid
boolean
required
voucher_id
string | null
voucher_amount
number | null
error
string | null