Posting price rules through API not working

Topic summary

A custom Shopify app with permissions to write discounts, price rules, and script tags is failing to create a price rule via the Admin REST API (version 2023-04). When calling the POST /price_rules endpoint on campbell-ultrafiltration.myshopify.com, the response is 200 OK with a list of existing price_rules, mirroring the GET /price_rules behavior, instead of the expected 201 Created with the new price_rule payload.

Key details:

  • Expected: 201 Created and returned price_rule object after POST.
  • Actual: 200 OK and a list of price_rules (same as GET endpoint response).
  • API docs referenced match POST vs GET behavior.

Status: No resolution or workaround provided yet; the poster is seeking advice. No attachments or code snippets included.

Summarized with AI on January 13. AI used: gpt-5.

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,