Get user rewards

This API is used to get the user reward details based on mobile number/email ID/external ID.

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

Prerequisites

  • Basic Authentication
  • Default access group

Resource information

URI/api_gateway/rewards/core/v1/user/vouchers/brand/{brand name}?mobile={mobile}&username={store}
HTTP MethodGET
PaginationYes. Limit=10, Page= 0
Batch supportNo
Rate limit informationNone

API endpoint example

https://eucrm.cc.capillarytech.com/api_gateway/rewards/core/v1/user/vouchers/brand/BUKL?mobile=919456430850&username=swati

Request path parameters

Parameter NameData TypeDescription
BrandName*StringName of the brand.

Request query parameters

Parameter NameData TypeDescription
MobileStringThe mobile number of the customer. Ex: 919456430850
Username*StringUsername of the customer. Ex: swati
sortByStringSupported values: REWARD_ID, INTOUCH_VOUCHER,INTOUCH_VOUCHER_EXPIRY,PURCHASE_DATE. Default values: IntouchPoints
orderByStringSupported values: ASC,DESC. Default values: ASC.
statusStringThe status of the reward. Ex: active
intouchBooleanAllows you to fetch rewards from InTouch if enabled. Ex: true
https://eucrm.cc.capillarytech.com/api_gateway/rewards/core/v1/user/vouchers/brand/BUKL?mobile=919456430850&username=swati

Response parameters

Parameter NameData TypeDescription
successBooleanIndicates the success of the fetch operation.
codeIntegerHTTP status code indicating the result of the operation.
messageStringDescriptive message about the operation outcome.
idIntegerUnique identifier of the reward.
nameStringName of the reward.
descriptionStringDescription of the reward.
imageIdStringIdentifier for the main image of the reward.
imageUrlStringURL for the main image of the reward.
thumbnailIdStringIdentifier for the thumbnail image of the reward.
thumbnailUrlStringURL for the thumbnail image of the reward.
termAndConditionsIdStringIdentifier for the terms and conditions document of the reward.
termAndConditionsUrlStringURL for the terms and conditions document of the reward.
tierStringTier level associated with the reward.
labelStringLabel associated with the reward.
priorityIntegerPriority level of the reward.
intouchPointsIntegerNumber of points needed to redeem the reward.
groupStringGroup associated with the reward.
startTimeDateTimeStart time for the reward's availability.
endTimeDateTimeEnd time for the reward's availability.
expiredBooleanIndicates whether the reward is expired.
startedBooleanIndicates whether the reward has started.
programIdIntegerIdentifier for the program associated with the reward.
categoryListObjectList of categories associated with the reward.
customFieldsObjectKey-value pairs for custom fields associated with the reward.
loyaltyProgramCriteriaArrayCriteria for loyalty programs associated with the reward.
restrictionsObjectRestrictions associated with the reward.
appliedPromotionsArrayList of applied promotions associated with the reward.
groupNameStringName of the group associated with the reward.
groupRankIntegerRank of the group associated with the reward.
rewardRankIntegerRank of the reward within its category or program.
imagesArrayList of additional images associated with the reward.
videosArrayList of videos associated with the reward.
{
    "status": {
        "success": true,
        "code": 200,
        "message": "User Reward fetched successfully"
    },
    "reward": {
        "id": 121879,
        "name": "Flat 100 off on protein powder",
        "description": "Burn 100 points and get a Flat 100 off on protein powder coupon",
        "imageId": "0f1aee40-3e4d-474d-8070-546eb2ac777e",
        "imageUrl": "https://eucrm-solutions.s3.amazonaws.com/rewards/5bea603b-6ff2-4e00-88fb-8610012b.jpg",
        "thumbnailId": "2f6fc242-58c1-4a41-9e2f-66bc9acac52e",
        "thumbnailUrl": "https://eucrm-solutions.s3.amazonaws.com/rewards/ae890c7e-9c8f-47d9-b5e2-1c62265e.jpg",
        "termAndConditionsId": "9303b31a-6042-475e-bb46-3129bc22baa1",
        "termAndConditionsUrl": "https://eucrm-solutions.s3.amazonaws.com/rewards/b7bb1e12-8b1e-4089-888d-3f13723.html",
        "tier": "4",
        "label": "4",
        "priority": 1,
        "intouchPoints": 100,
        "group": "Protein",
        "startTime": "2024-01-24 08:28:16",
        "endTime": "2028-07-31 02:58:16",
        "expired": false,
        "started": true,
        "programId": null,
        "categoryList": [
            {
                "id": 2,
                "name": "accessories",
                "enabled": true
            }
        ],
        "customFields": {
            "CF2": "value"
        },
        "loyaltyProgramCriteria": [],
        "restrictions": {
            "isValid": true
        },
        "appliedPromotions": [],
        "groupName": TOP,
        "groupRank": 1,
        "rewardRank": 5,
        "images": [],
        "videos": []
    }
}

API-specific error codes

CodeDescription
1014Cannot find customer for provided mobile/external-id/e-mail/id
Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!