Skip to main content

Enum Definitions

Reference for all enumeration values used across the Hubble API.


Product Status

Status field in get brand APIs

ValueDescription
ACTIVEBrand is active, vouchers can be generated for the brand
INACTIVEVouchers cannot be generated for the brand

Denomination Type

Present in brand APIs

ValueDescription
FIXEDVouchers can only be generated for the denominations provided in amountRestrictions.denominations
FLEXIBLEVoucher of any amount between the specified min-max can be generated

Card Type

Credentials needed by customer to redeem the voucher

ValueDescriptionWhat to Display
CARD_NUMBER_SECUREDUser can just use the card number while redeemingShow cardNumber only
PIN_NO_SECUREDUser can just use the card PIN while redeemingShow cardPin only
CARD_AND_PIN_NO_SECUREDUser needs to use both card number and PIN to redeemShow both cardNumber and cardPin

Redemption Type

Mode of redemption

ValueDescriptionDisplay Suggestion
OFFLINEVoucher can be used only at offline stores"In-Store Only"
ONLINEVoucher can only be used online"Online Only"
ONLINE_AND_OFFLINEVoucher can be redeemed at both online and offline stores"Online & In-Store"

Order Status

Status returned on get order and place order APIs

ValueDescriptionYour Action
SUCCESSVoucher generation is successful, voucher data will be present in the vouchers listDisplay vouchers to user
FAILEDVoucher generation failedShow error message, retry with new referenceId
PROCESSINGVoucher is being generated, status can be polled or listen to webhookPoll or wait for webhook
CANCELLEDVoucher is cancelled as per client requestConfirm cancellation
REVERSEDVoucher is reversed as per client requestProcess refund if applicable

Recipient Type

Used in delivery details

ValueDescription
SELFRecipient is the same as the customer
OTHERRecipient is different from the customer

Delivery Channel

Communication channels for voucher delivery

ValueDescriptionRequirement
EMAILSend voucher via emailRequires valid customerDetails.email
SMSSend voucher via SMSRequires valid phone number
WHATSAPPSend voucher via WhatsAppRequires valid phone number