Get reward information
Returns reward information.
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program ID
rid
Reward ID
Query parameters
version
Version
Allowed values:
Response
Successful retrieval of reward data
attributionPerConsumer
Maximum number of times a consumer can be attributed this reward
balanceDefinitionId
Unique identifier for the balance definition
code
Unique code for the reward
codeCount
Total number of codes generated
codeGeneratorId
Unique identifier for the code generator
codePoolId
Unique identifier for the code pool
config
Configuration settings for the reward
createdAt
Timestamp when the reward was created
disabledAt
Disabled date of the reward
endDate
End date of the reward validity
expirationDate
Expiration date of the reward
expirationModifier
Select startOfPeriod to configure rewards expiry on start of day/week/month/year. Select endOfPeriod to configure reward expiry on end of day/week/month/year, else select noModification
Allowed values:
expirationUnit
Unit of time for the rewards’s availability (e.g., day/week/month/year).
expirationValue
Number of days/weeks/month/year for reward expiry
generator
object
id
Unique identifier for the reward
limits
Attribution / Redeem Limits for the reward
loyaltyProgramId
Id of the loyalty program to which the current reward belongs to
meta
Additional data for reward definition
name
Name of the reward
products
Selected products for reward definition
publicDescription
Public description for the reward
publicImage
Public Image for the reward
publicName
Public name for the reward
redeemPerConsumer
Defines the redeem limit for the consumer
redeemRules
Rules defined to redeem a reward
rewardConfigs
object
rule
Rule to define the reward
startDate
Start date of attribution of the reward
subtractBalanceDefinitionId
Id of the selected balance while redeeming / attributing a reward
subtractBalanceStrategy
Strategy of the Balance while redeeming / attributing a reward
subtractBalanceValue
Amount of balance to be selected while redeeming / attributing a reward
subtractTotalBalance
Value to indicate to subtract full balance or not
totalAttribution
Defines the limit to which a consumer can attribute a reward
totalRedeem
Defines the limit to which a consumer can redeem a reward
triggerId
Id of the Rule to be updated for that reward
unit
Selected unit of the balance
updatedAt
Timestamp for when this reward was last updated.
value
Value of metric in selected config for reward definition
valueType
Type of config selected for reward definition