Skip to main content

Get Offer List

This endpoint allows to get offers available to a customer.

Request

GET <API base url>/customers/{id}/offers

URL query parameters

NameTypeRequiredDescription
iduint64yesCustomer identifier
languagestringyesTwo letter language code according to ISO 639-1
querystringnoSearch query
categoriesstring[]noFilter by one or multiple categories: grocery, automotive, electronics, shopping, kids, pets, wineAndDine, travel, entertainmentAndSport, education, taxi, repair, utilities, visa, banks, others, health, beauty, entertainment, sport, hobby, gifts
averageChecksstring[]noFilter by one or multiple average check categories: cheap, average, expensive
isOnlinebooleannoFilter by possibility to fulfill the conditions online
isLikedbooleannoIf specified, only offers are liked by customer are shown
isFavoritebooleannoIf specified, only offers are added to favorite by customer are shown
activationStatusstringnoFilter by offer activation status (one of - undefined, activated, viewed)
isCompletedbooleannoIf specified, only offers are completed are shown
conditionTypesstring[]noFilter by one or multiple condition types: none, offersAccumulation, transactionsAccumulation
merchantsuint64[]noIf specified, only offers from merchants with specified identifiers are shown
fromDatedatenoFilter by offer's announce date to get the newest offers
toDatedatenoFilter by offer's end date to get the hottest offers
cardTypesstring[]noFilter by one or multiple card types
skipuint32noPaging support: number of records to skip
takeuint32noPaging support: number of records to return
sortstringnoType and field of sorting:
  • date -- sort by date ascending
  • -date -- sort by date descending
  • averageCheck -- sort by average check ascending
  • -averageCheck -- sort by average check descending
  • recommended -- sort by relevance
  • popular -- sort by popularity
* Promoted offers will always be shown first
settlementsstring[]noIf specified, only offers from merchants with locations in specified settlements are shown // deprecated
regionIdsuint64[]noIf specified, only offers in the specified regions are shown
showArchivedbooleannoIf specified, ended offers are included

Response

On success:

{
"value": {
"totalCount": required uint32,
"promotedCount": required uint32,
"data": required array of {
"id": required uint64,
"merchant": {
"id": required uint64,
"marketName": required string,
"logo": optional string (as URL)
},
"category": optional string,
"averageCheck": optional string,
"isOnline": optional boolean,
"likesCount": optional number,
"isLiked": optional boolean,
"activationStatus": optional string (one of - undefined, activated, viewed),
"isFavorite": optional boolean,
"isCompleted": optional boolean,
"startDate": optional string (date in format YYYY-MM-DD),
"endDate": optional string (date in format YYYY-MM-DD),
"announcedFrom": required date,
"receivedAt": required date,
"stats": required {
"likeCount": required number,
"offerRewardLimit": optional number,
"customerRewardLimit": optional number,
"offerRewardCount": required number,
"customerRewardCount": required number,
"customerSpentRewardCount": required number,
"hasAvailablePromoCodes": optional boolean
},
"ad": optional {
"languageCode": required string,
"name": required string,
"description": optional string,
"rewardText": optional string,
"buttonText": optional string,
"buttonUrl": optional string,
"image": optional string (as URL)
},
"reward": optional {
"merchant": {
"id": required uint64,
"marketName": required string,
"logo": optional string (as URL)
},
"type": required string (one of - discount, gift, certificate, plusX, etc.),
"certificate": optional {
"provider": required string,
"id": optional string, // Deprecated
"ids": optional array of string,
"value": optional number
},
"limit": optional {
"used": required number,
"max": required number
}
},
"conditions": optional {
"type": required string (one of - none, offersAccumulation, transactionsAccumulation, referral, registrationBonus),
"targetCount": optional number,
"targetAmount": optional number,
},
"requiresActivation": required boolean,
"progress": optional {
"currentCount": optional number,
"currentAmount": optional number,
},
"customFields": optional { [key:string]: any },
"regions": optional array {
"id": required number,
"name": required string,
"geometry": optional string
},
"marketWide": required boolean,
"locations": optional array of {
"name": optional string,
"address": optional string,
"lon": required double - longitude,
"lat": required double - latitude
}
}
}
}