Liquid, JavaScript, themes, sales channels
Hello, good morning all.
We have a problem reading the filed "prerequisite_customer_ids" in the API admin/api/2021-07/price_rules/x.json
At Shopify Admin Panel, our discount givex 50% in any item, but it's only for specific customer segment.
Our e-commerce have been changed the default behaviour at basket page. We do not call shopify directly when applying a discount coupoun. First it calls one particular API develeped by our company and then this API call the Shopify price_rule API to filter and validate the prequesisties registered on Shopify price rules database.
However, the field "prerequisite_customer_ids" do not return any customer. The array is empty. So we can not validate correctly.
I have been making some testes and I realized that when the option "specific customers" is marked on shopify admin this filed works properly. But in our case, we need to return all customers that belongs with a specify segment. How we can make this works?
Greetings
User | RANK |
---|---|
22 | |
21 | |
9 | |
7 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023