[api/2024-01/price_rules.json] Posting price rules works as a GET instead of POST

Topic summary

Issue: Creating a discount price rule via the Shopify API is behaving like a GET request instead of POST, preventing rule creation.

Context: Price rules define the conditions and values for discounts (e.g., percentage off, eligibility) and are typically created via POST to the price_rules endpoint.

Suggested direction: A participant referenced a similar thread where adjusting the API request resolved the issue. The linked post reportedly details changes needed to the request so that POST/other write operations work correctly.

Status: No confirmed resolution from the original poster. The discussion remains open.

Action items:

  • Review the linked community post and update the API request accordingly.
  • Verify HTTP method, endpoint path, and request configuration (e.g., headers/body) per the guidance in the referenced thread.

Open questions: The exact misconfiguration causing POST to act like GET is not identified here, and whether the suggested fix resolves this specific case is unknown.

Summarized with AI on December 19. AI used: gpt-5.

Hi I am trying to create a price rule but it works as a GET instead of a POST. I ready a lot of post related to this but no answers were found. Kindly help.

Have you looked at this post? I had a similar problem as you’re describing and changing the API request as described in that post fixed it for me.