Skip to main content

Get Customer Rewards

This endpoint allows to get customer's rewards.

Request

GET <API base url>/customers/{customerId}/rewards

URL query parameters

NameTypeRequiredDescription
languagestringyesTwo letter language code according to ISO 639-1
dateFromdatenoFilter by reward's date to get the newest rewards
isSpentboolnoIf specified, only spent rewards are shown
isOpenedboolnoIf specified, only opened rewards are shown
rewardTypestringnoFilter by reward's type: discount, gift, certificate, plusX, etc.
skipuint32noPaging support: number of records to skip
takeuint32noPaging support: number of records to return
showArchivedbooleannoIf specified, expired rewards are included

Response

On success:

{
"value": {
"totalCount": required number,
"data": required array of {
"id": required number,
"createdAt": required date,
"offer": required {
"id": required number,
"merchant": required {
"id": required number,
"marketName": required string,
"logo": optional string (as URL)
},
"ad": required {
"name": required string
}
},
"merchant": required {
"id": required number,
"marketName": required string,
"logo": optional string (as URL)
},
"type" required string (one of - discount, gift, certificate, plusX, etc.)
"text": optional string,
"expiresAt": optional date,
"isSpent": required boolean,
"isOpened": required boolean,
"offerId": required number, // deprecated
"category": optional string,
"customData": optional any
}
}
}