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?
User | RANK |
---|---|
3 | |
2 | |
2 | |
2 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023