Parameters
1 query
Query parameters
· 1codestringRequiredVoucher code to analyze.
SUMMER2024Returns a lightweight snapshot of a voucher: whether it exists in the organisation and, if it does, its computed status (active / inactive / expired / not-yet-valid / limit-reached). Unlike /full-detail, this endpoint does NOT throw when the voucher is missing.
1 query
codestringRequiredVoucher code to analyze.
SUMMER20241 status code documented
Voucher analysis result.
Voucher not found.
exists"false"RequiredVoucher with this code does not exist.
Voucher exists — snapshot with computed status.
exists"true"RequiredcodestringRequiredVoucher code (canonical, uppercase).
type"fixed" | "percentage" | "free-credit" | "free-product"RequiredDiscount type.
valuestringRequiredDiscount value.
activebooleanRequiredDatabase active flag (does NOT consider expiration/limit).
effectivelyActivebooleanRequiredTrue if voucher is currently usable (active + within validity + below limit).
isValidbooleanRequiredAlias of effectivelyActive — convenient flag for UI consumers.
status"active" | "inactive" | "expired" | "not-yet-valid" | "limit-reached"RequiredComputed status enum.
usedCountnumberRequiredNumber of times voucher has been used.
usageLimitnumber | nullRequiredMaximum number of uses, or null if unlimited.
remainingUsagenumber | nullRequiredRemaining uses, or null if unlimited.
validFromDate | string | string | number | nullRequiredValidity start date.
validToDate | string | string | number | nullRequiredValidity end date.
daysUntilExpirationnumber | nullRequiredDays remaining until expiration, or null if no expiration or already expired.
lastUsedDateDate | string | string | number | nullRequiredLast usage date.
notestringRequiredInternal note (full content).
{
"exists": false
}GET /bff/voucher/analyze
curl -X GET "https://api.bizkithub.com/bff/voucher/analyze?code=SUMMER2024" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.