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?
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023