...
Mapping loyalty offers between Sanity and the Loyalty Engine
Mapping Loyalty Offers Between Sanity and the Loyalty Engine After retrieving all the available offers from both sources, you need to map this data to get a complete list of offers available to the user. Below there is a simple example in JavaScript demonstrating how to perform this mapping:
...