...
Code Block | ||
---|---|---|
| ||
query getSanityOffers { LoyaltyOffersUI(id: "feature-loyalty-offers-ui-singleton") { # Available for all users. # You can use these to lookup assets from global. sortedSystemwideOffers { _id loyaltyEngineId name { enRaw } rules { # Returns the value of the AuthenticationRequired rule ... on RequiresAuthentication { requiresAuthentication } } } # These are config. offers (templates). # You should use these only to display content (images, names, etc). # You can use these to lookup assets from the actual Personalized offers. liveConfigOffers { _id loyaltyEngineId name { enRaw } } } } |
Example reward query
The
_id
is subject to the dataset you are using. For the most part it will bereward-list-singleton
, however, some markets have drifted from this conventionSample query:
...