cannot create price rule

Topic summary

Issue: Creating a price rule via API returns existing rules instead of creating a new one. No error message is reported.

Details:

  • User sends a JSON payload to create a price rule (title, target_type=line_item, target_selection=all, allocation_method=across, value_type=“fixed_amo unt”, value=“-10.0”, customer_selection=all, starts_at timestamp).
  • The API response contains previously created price rules; the new rule is not created.
  • User states permissions are correctly configured.

Artifacts:

  • A JSON request payload is central to understanding the issue.

Current status:

  • No troubleshooting steps, explanations, or resolutions provided yet.
  • User requests help; thread remains open with unanswered questions (e.g., why creation fails, whether the payload/params are valid).
Summarized with AI on December 18. AI used: gpt-5.

Hi,

I try to create a price rule from api with this example

{
“price_rule”: {
“title”: “SUMMERSALE10OFF”,
“target_type”: “line_item”,
“target_selection”: “all”,
“allocation_method”: “across”,
“value_type”: “fixed_amount”,
“value”: “-10.0”,
“customer_selection”: “all”,
“starts_at”: “2021-12-10T13:00:10Z”
}
}

but rule does not created and in response I have all price rules already created in past.
Permission are ok.
thanks for help