Hi. We're a newbie Shopify partner running loyalty programmes for multichannel retailers. We have a retailer with Shopify e-commerce and a non-Shopify POS in their physical stores. The loyalty programme they have entitles the customer to a percentage discount on total order value depending on the customer's loyalty status, e.g. "Silver members always get 10% off their order".
We allow the discounts in the non-Shopify POS as follows:
We want to implement something similar for the same customers in Shopify, e.g:
Is this possible? Which Shopify API resource should we be using in step 4 where we would apply the discount to the checkout? How would this be re-rendered in the Shopify UI?
We're trying out various API endpoints but haven't quite worked out which ones to use for this yet. The challenge is that we still need to mix the Shopify store and the non-Shopify POS to apply the same dynamic discounts to customer orders.
Thanks in advance if anyone has any input!