Posting price rules through API not working

Posting price rules through API not working

MarcosDelgadoUp
Visitor
1 0 0

I created a custom app for a service that I have and it has permissions for writing discounts, price rules and script tags, we are running into a API issue where we are calling the following API: https://shopify.dev/docs/api/admin-rest/2023-04/resources/pricerule#post-price-rules ( on the shop campbell-ultrafiltration.myshopify.com )

but instead of receiving a 201 status code with a price_rule payload we are receiving a 200 OK and a payload with a list of price_rules, similar to https://shopify.dev/docs/api/admin-rest/2023-04/resources/pricerule#get-price-rules.

Please advise,

Replies 0 (0)