Improvement
today
API v2: a request that would not work gets an error that says how to fix it
API v2 now refuses a request that would save something that does not work, and tells you why and what to send instead. Before, many of these requests got a 200, and the record then did not work or could not be edited in Simplero.
This applies to every resource. Some examples of what now gets a 422 error:
- Automation and step conditions that the conditions editor cannot make, such as a "not" form it does not have or a value of the wrong kind. The error lists the rule ids and operators you can use.
- A value Simplero would save as something else: "abc" for a number, "no" for true or false, a date it cannot read, text longer than the field.
- Combinations that cannot run: a wait on a text field, a Go to into another automation, a price of another product, a coupon that ends before it starts.
- A field the API returns but does not let you change. The error says it is read-only.
- A list request with a filter or query parameter the list does not read. Before, the API ignored it and sent back every record. The error lists the filters you can use.
If you use an integration or AI agent that writes to Simplero, it now gets a clear error instead of a quiet failure. Records you already have keep saving as before.