Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Im trying to make a PUT request from Flow to the PriceRule resource. The objective is to add a customer to a discount. I have tried the request in Postman and it works perfectly.
But when I input the request into Flow and the action gets triggered, I get this error:
400 Bad Request {“errors”:{price_rule”:”Required parameter missing or invalid”}}
This is what I'm inputing into Flow:
HTTP Method: PUT URL: https://{API key}:{API password}@{my_store}.myshopify.com/admin/api/2019-07/price_rules/{price_rule_id}.json Headers: Key: X-Shopify-Access-Token Value: {API password} Body: { "price_rule": { "customer_selection": "prerequisite", "prerequisite_customer_ids": [ 5678765*** ] } }
What parameter am I missing and where can I find examples or more detailed docs for the future?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024