Get rewards for user

This API gives all the details for the reward purchased such as Reward ID, Metadata, Intouch points, Programs/tiers, Reward restrictions/limits, and Catalog promotions applied.

👍

Note

  • For detailed information about our APIs and for hands-on testing. Refer to the documentation in API Overview. Follow the step-by-step guide on making your first API call in Make Your First API Call.

  • When Dual Eligibility is enabled, a reward can be issued to multiple users registered with the same secondary identifiers, as long as they have unique primary identifiers.

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

Resource information

URI/api_gateway/rewards/core/v1/user/reward/brand{BrandName}?userId={userID}
HTTP MethodGET
PaginationYes
Batch supportNo
Rate limit informationNone

API endpoint example

https:/eu.api.capillarytech.com/api_gateway/rewards/core/v1/user/reward/brand/BUKL?userId=555567088&redemptionType=VENDOR_ONLY_REWARD,MILES&activationStatus=ENABLED&minPoints=750&maxPoints=1000&minCash=100&maxCash=500&status=UPCOMING&sortBy=endDate&createdOnDaysAgo=4

Request path parameters

ParametersData TypeDescription
Brand Name*StringName of the brand. Ex: BUKL

Request query parameters

ParametersData TypeDescription
userIdLongRetrieves rewards for a perticular user. Enter the userid customerid. Example: 98662653.
includeExpiredBooleanIncludes details of expired rewards in the response. Pass includeExpired as true.
pageIntegerTo retrieve details of a specific page. Pass 0 not to apply pagination. For example, page=2&size=10 shows 10 results on page 2.
sizeLongResults to show per page.
groupNameListRetrieves rewards associated with a specific group name. Multiple group names are supported by a comma (","). Example: groupName= groupname1,groupname2.
labelStringRetrieves rewards linked to a specific label. Provide label ID to retrieve all rewards linked to the label. Example: 3.
categoryListRetrieves rewards linked to a specific category. Provide the category name to retrieve all rewards linked to that specific category. Example: fuel.
redemptionTypeListRetrieves rewards based on their redemption type. Supported values: GAMES, AUCTION, CART_PROMOTION, CASH_WALLET, VENDOR_ONLY_REWARD, VOUCHER, CASH_BACK, INTOUCH_REWARD, PHYSICAL_REWARD, CHARITY, MILES, GIFT_CARD, SWEEPSTAKES, VENDOR_INTOUCH_REWARD, CARD_DISC. Multiple redemptionType values can be filtered using comma (,).
activationStatusStringRetrieves the reward details based on their activation status. Supported Values: ENABLED, DISABLED, ALL. Supported values are case sensitive.
minPointsIntegerSpecifies the minimum points threshold for filtering rewards based on the points used for their purchase. For example: If the minimum points are set to 100, only rewards purchased with points greater than or equal to 100 will be included. This parameter is case-sensitive.
maxPointsIntegerSpecifies the maximum points threshold for filtering rewards based on the points used for their purchase. For example: If the maximum points are set to 100, rewards with points exceeding this value will not be included. This parameter is case-sensitive.
minCashIntegerSpecifies the minimum cash threshold for filtering rewards based on the cash used for their purchase. For example: If the minimum cash is set to 100, rewards purchased using cash below this amount will not be included. This parameter is case-sensitive.
maxCashIntegerSpecifies the maximum cash threshold for filtering rewards based on the cash used for their purchase. For example: If the maximum cash is set to 100, rewards with cash exceeding this amount will not be included. This parameter is case-sensitive.
statusString​​Retrieves the reward details based on their status. Supported Values: LIVE, UPCOMING, ENDED. Multiple status can be filtered via a comma (e.g., LIVE,ENDED). Supported values are case sensitive.
vendorIdListRetrieves the rewards associated with a specific vendor, based on the vendor ID. Multiple vendor IDs are supported by a comma (","). Example: vendor = 36,32. There is no specific limit on the number of vendorIds.
createdOnDaysAgoIntegerRetrieves a list of rewards created before a specific number of days. For example:- If today is January 20 and createdOnDaysAgo=5 is passed, rewards created on or before January 15 will be retrieved, while those created after January 15 will be excluded.
sortByStringSorts the reward based on points, cash, startDate and endDate. NOTE: If sortBy param is not passed, sorting will happen on reward creation date in DESC order.
orderByStringSpecifies the order in which results should be sorted. Supported values: "ASC" for ascending, "DESC" for descending.

https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/user/reward/brand/BUKL?userId=555567088&redemptionType=VENDOR_ONLY_REWARD,MILES&activationStatus=ENABLED&minPoints=750&maxPoints=1000&minCash=100&maxCash=500&status=UPCOMING&sortBy=endDate&createdOnDaysAgo=4

Response parameters

ParameterTypeDescription
successbooleanIndicates if the request was successful.
codeintThe HTTP status code returned by the server.
messageStringA descriptive message providing additional details about the status of the request.
rewardListList<RewardDto>A list containing details about the rewards available for the user, including information.
rewardList.idlongThe unique identifier assigned to each reward for reference in the system.
rewardList.nameStringThe name of the reward, which can be displayed to the user.
rewardList.descriptionStringA short description of the reward, providing more context about its benefits.
rewardList.imageIdlongA unique identifier for the image associated with the reward, useful for retrieving image data from a storage system.
rewardList.imageUrlStringThe URL link to the full-size image representing the reward, providing visual context for the user.
rewardList.thumbnailIdlongA unique identifier for a smaller version of the reward's image, often used as a thumbnail.
rewardList.thumbnailUrlStringThe URL to access the thumbnail image of the reward, typically used in lists or previews.
rewardList.termAndConditionsIdlongThe identifier for the terms and conditions associated with the reward, pointing to a specific document.
rewardList.termAndConditionsUrlStringThe URL where users can view the terms and conditions that apply to the reward, ensuring transparency.
rewardList.tierStringThe reward tier that indicates the level or category of the reward.
rewardList.labelStringA tag or category that helps classify the rewards.
rewardList.priorityintIndicates the priority of the reward. Higher values indicate higher priority for the reward's visibility or redemption.
rewardList.intouchPointsintThe number of points required to redeem the reward.
rewardList.groupStringA grouping label or category that this reward may belong to.
rewardList.startTimeStringThe start date and time when the reward becomes available for redemption by users. Timestamp in the ISO 8601 standard format YYYY-MM-DDTHH:MM:SS.SSSZ. (Start time and end time are in UTC time zone)
rewardList.endTimeStringThe end date and time when the reward will no longer be available for redemption. Timestamp in the ISO 8601 standard format YYYY-MM-DDTHH:MM:SS.SSSZ. (Start time and end time are in UTC time zone)
rewardList.expiredbooleanA flag indicating whether the reward has expired. true means expired, and false means the reward is still available.
rewardList.startedbooleanIndicates whether the reward has begun and is currently available for redemption.
rewardList.programIdlongAn identifier for the loyalty program tied to the reward.
rewardList.categoryListList<CategoryDto>A list of categories associated with the reward.
rewardList.categoryList.idlongUnique identifier of the category.
rewardList.categoryList.nameStringName of category associated with the reward.
rewardList.categoryList.enabledbooleanSpecifies if the category is enabled or not.
rewardList.customFieldsMap<String, String>A set of custom fields used to store additional metadata about the reward, allowing flexibility in reward configuration.
rewardList.loyaltyProgramCriteriaList<CriteriaDto>A list of criteria or conditions that must be met for the reward to be eligible under a loyalty program.
rewardList.groupsList<GroupDto>A list of groups associated with the reward. This can be used to target specific user groups or demographics.
rewardList.rewardRestrictionsRewardConstraintDtoDefines the limitations or conditions that apply to the reward’s use, including validity and redemption conditions.
rewardList.rewardRestrictions.isValidbooleanIndicates whether the reward restrictions are currently valid.
rewardList.rewardRankintThe rank of the reward, which could represent its priority or level within a program.
rewardList.imagesList<ImageDto>A list of image details related to the reward.
rewardList.images.nameStringName of the image.
rewardList.images.altTextStringAlternative text or description of the image.
rewardList.images.idlongIdentifier for internally stored images, generated when uploaded to the file service. Not applicable for external images.
rewardList.images.urlStringURL of the image.
rewardList.images.isExternalbooleanIndicates if the image is hosted on an external server.
rewardList.videosList<VideoDto>A list of video details related to the reward.
rewardList.videos.nameStringName of the video.
rewardList.videos.altTextStringAlternative text or description of the video.
rewardList.videos.idlongIdentifier for internally stored videos, generated when uploaded to the file service. Not applicable for external videos.
rewardList.videos.urlStringURL of the video.
rewardList.videos.isExternalbooleanIndicates if the video is hosted on an external server.
rewardList.paymentConfigsList<PaymentConfigDto>Configuration details for how users can redeem the reward, including the payment mode and associated ratios or values.
pagingDtoPagingDtoContains information about the pagination of the results, allowing the user to navigate between multiple pages of rewards.
pagingDto.lastbooleanIndicates if the current page is the last page of available results.
pagingDto.totalElementsintThe total number of rewards available across all pages, helping to gauge the size of the dataset.
pagingDto.totalPagesintThe total number of pages required to display all available rewards.
pagingDto.numberOfElementsintThe number of rewards present on the current page, which is a subset of the total rewards.
pagingDto.firstbooleanIndicates if the current page is the first page in the paginated result set.
pagingDto.sizeintThe number of rewards shown per page, used to manage the size of each page in pagination.
pagingDto.numberintThe index of the current page, starting from 0 for the first page.
orgLevelRestrictionsOrgLevelRestrictionsDtoRestrictions applied at the organizational level, specifically regarding the redemption type and limits.
orgLevelRestrictions.isValidbooleanIndicates if the organizational restrictions are currently valid and enforceable.
orgLevelRestrictions.customerRedemptionTypeLevelCustomerRedemptionTypeLevelDtoDefines the restrictions for different customer redemption types.
orgLevelRestrictions.customerRedemptionTypeLevel.rewardConstraintIdlongThe unique identifier for the specific reward constraint being applied.
orgLevelRestrictions.customerRedemptionTypeLevel.orgIdlongThe organization ID associated with the redemption constraints.
orgLevelRestrictions.customerRedemptionTypeLevel.kpiStringThe key performance indicator associated with the redemption type.
orgLevelRestrictions.customerRedemptionTypeLevel.constraintLevelStringSpecifies the level at which the constraint is applied.
orgLevelRestrictions.customerRedemptionTypeLevel.frequencyTypeStringDefines how often the constraint applies, such as monthly, yearly, etc.
orgLevelRestrictions.customerRedemptionTypeLevel.constraintLimitValuedoubleThe maximum value or limit that can be redeemed within the specified frequency.
orgLevelRestrictions.customerRedemptionTypeLevel.consumeddoubleTracks how much of the constraint limit has already been consumed.
orgLevelRestrictions.customerRedemptionTypeLevel.isActivebooleanIndicates whether the constraint is currently active and can be enforced.
orgLevelRestrictions.customerRedemptionTypeLevel.isValidbooleanConfirms whether the constraint is valid and enforceable at the time.
cardSeriesList<CardSeriesDto>List of card series codes associated with the reward.
cardSeries.idlongUnique identifier of the card associated with the reward.
cardSeries.codeStringSeries code of the card associated with the reward.
labelsList<Long>List of label IDs associated with the reward.
startDateTimeStringStart date and time of the reward in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
endDateTimeStringEnd date and time of the reward in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
languageSpecificInfoarrayContains language-specific details for the reward.
languageSpecificInfo.richContentRORichContentROThe rich content object for the reward.
languageSpecificInfo.richContentRO.contentStringThe HTML-formatted rich text content.
languageSpecificInfo.richContentRO.isEnabledbooleanIndicates whether the rich text content is enabled. Supported Values: true or false.
languageSpecificInfo.defaultValueStringDefault value if rich text content is not mapped to the reward. Required if isMandatory is set to true.
vendorIdStringRetrieves the rewards associated with a specific vendor.
redemptionTypeStringRetrieves rewards based on their redemption type. Possible values: GAMES, AUCTION, CART_PROMOTION, CASH_WALLET, VENDOR_ONLY_REWARD, VOUCHER, CASH_BACK, INTOUCH_REWARD, PHYSICAL_REWARD, CHARITY, MILES, GIFT_CARD, SWEEPSTAKES, VENDOR_INTOUCH_REWARD, CARD_DISC. Multiple redemptionType values can be filtered using comma (,).






Error CodeDescription
15006The request is missing the primary identifier.
1014The provided identifier does not match any existing customer.
404The specified customer was not found in the organization.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!