Parameters
No parameters required
This endpoint takes no path, query, header or body parameters.
Returns org-wide voucher KPIs powering the dashboard tile bar above the voucher list: total count, active count, expiring-soon count (next 30 days), gift-card count, never-used count, hot codes count (redeemed in the last 7 days), total revenue from paid orders that used a voucher, total committed cost, ROI ratio (revenue/cost), and unique paid customers.
No parameters required
This endpoint takes no path, query, header or body parameters.
1 status code documented
totalCountnumberRequiredTotal number of vouchers in the organisation.
activeCountnumberRequiredVouchers currently usable (active flag + within validity + under limit).
expiringSoonCountnumberRequiredActive vouchers whose validTo falls within the next 30 days.
giftCardCountnumberRequiredVouchers generated from a source order (product-voucher template).
unusedCountnumberRequiredVouchers created at least 30 days ago that have never been redeemed.
hotCountnumberRequiredVouchers redeemed at least once in the last 7 days.
totalRevenuestringRequiredSum of shop__order.price for paid orders that used any voucher in this org. Stringified for precision.
totalCoststringRequiredSum of shop__voucher.cost across all vouchers in this org (org default currency). Stringified for precision.
totalRoinumber | nullRequiredRevenue / cost ratio. Null when totalCost is 0.
uniqueCustomersnumberRequiredDistinct customers across paid orders that used any voucher in this org.
{
"totalCount": 0,
"activeCount": 0,
"expiringSoonCount": 0,
"giftCardCount": 0,
"unusedCount": 0,
"hotCount": 0,
"totalRevenue": "example_totalRevenue",
"totalCost": "example_totalCost",
"uniqueCustomers": 0
}GET /bff/voucher/dashboard-summary
curl -X GET "https://api.bizkithub.com/bff/voucher/dashboard-summary" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.