Skip to main content

Get Voucher Definitions

GET 

/client/users/:correlation_id/voucher-definitions

GET /voucher-definitions — CUX Voucher Definition Discovery

Returns all PUBLISHED voucher definitions available at the CUX channel for the resolved business unit. This is a discovery surface — it answers "what vouchers exist at this channel?" not "what can I buy with my points right now?" (use voucher-exchange/eligible for that).

Query Parameters

ParamRequiredDefault
businessUnitNo (updated 2026-04-26)When omitted, falls back to the client's default enabled BU server-side (consistent with GET /issuances).

Filtering (silent — excluded from results, not a 400)

FilterRule
StatusPUBLISHED only
BusinessUnitMust match the resolved BU (either ?businessUnit when supplied, or the default-enabled BU on fallback)
UsageChannelsMust include "CUX", or be undefined/[]

Response Shape (updated 2026-04-27)

Flat array of voucher-definition summaries — no envelope. Each item carries its own businessUnit field.

[
{
"voucherDefinitionId": "SUMMER_5OFF",
"businessUnit": "wizard",
"definitionName": "$5 Off Summer",
"rewardType": "DOLLAR_OFF",
"rewardValue": 5,
"rewardMetadata": { "amount": 5, "unit": "FLAT" },
"scope": "CART",
"expiryRule": { "type": "ROLLING", "rollingDays": 30 },
"creative": {
"en-CA": {
"shortDescription1": "$5 Off Your Purchase",
"smallImageURI": "https://cdn.esloyalty.com/wizard/vouchers/summer5off-sm.png"
}
},
"pointValue": 500,
"redeemableValue": 5
}
]

Field notes

  • voucherDefinitionId — definition ID (differs from Console's id)
  • businessUnit — echoes the resolved BU regardless of whether the client supplied it
  • rewardValue — resolved top-line number (e.g. 5 for DOLLAR_OFF)
  • scope — read from RewardMetadata.scope.type
  • creative — locale map { "en-CA": {...}, "fr-CA": {...} }; client resolves display locale
  • pointValue — always present; null when the definition is not worth points for reporting/stacking
  • redeemableValue — always present; null when the definition does not participate in points exchange
  • Admin/operational fields (status, systemOfRecord, version, basedOn, features) are omitted on this member-facing surface

Error Responses

HTTPCodeCondition
400INVALID_BUSINESS_UNIT?businessUnit was supplied with a value the client has not enabled
400BUSINESS_UNIT_REQUIREDEdge case?businessUnit omitted AND no default-enabled BU is configured for the client (misconfiguration)
400FEATURE_NOT_ENABLEDVoucher feature flag off for this client
401Invalid/expired session

Request

Responses

200 - Voucher Definitions Found