A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I have a problem with Setting graduated prices by Rest API.
I can create them with prices rules. For instance with curl:
curl -d '{"price_rule":{"title":"1USDoffSKU1234fromQty5","target_type":"line_item","target_selection":"entitled","allocation_method":"across","value_type":"percentage","value":"-1.0","customer_selection":"all","entitled_variant_ids":[440639390016],"starts_at":"2023-04-06T17:59:10Z"}}' \
-X POST "https://xxxxx.myshopify.com/admin/api/2023-04/price_rules.json" \
-H "X-Shopify-Access-Token: sxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json"
That works fine. Bus in Admin it is not declared as Method: "automatic" but with
Method: (discount codes) "0".
So users have to enter a discount code to see graduted prices in Shopify.
But: every user has to be shown the graduated prices.
Is there a possibility. Otherwise that doesn't make sense...