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 |
---|---|
37 | |
24 | |
13 | |
13 | |
9 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023