I want to make a new price rule but I can't.
Can someone give me some advise please?
Below is the code.
Solved! Go to the solution
This is an accepted solution.
You are missing a tonne of required fields for a price rule.
I suggest you read the API docs. And if the Ruby SDK isn't returning the 422 response with errors, then try your requests in any regular HTTP REST client such as Postman, Insomnia or even good ol' cURL will give you a heads up.