Hi, when we create our Sales Order using the API, we encountered this issue
Response 422 Unprocessable Entity
We rarely encountered this issue, and we don’t know why it happens. In our request body, we are sure that we have the Status field.
For additional record, I have used the same request body a moment ago and the Sales Order is created but after trying now, the error shows up.
Any help would be helpful. Thanks a lot
Best answer by cyrus91View original
@cyrus91 By default Acumatica will set the Status as “Open”, do we really pass the Status in JSON request?
Have you removed this status object from JSON and verified?
@Naveen B , yes, I also tried remove the status Object from the JSON and the error still occurs.
The thing that also concerns me is that my JSON body is the same when it was working and now it is not.
Can you please share the JSON request here.
@Naveen B Here is the sample json request.
@cyrus91 I just tried in my local machine with this JSON and it is working as expected.
There is no issue with the JSON request.
@Naveen B thanks for this. It shows that there is nothing wrong with the JSON request. Do you have any other Ideas that may cause this one?
@Naveen B, sorry for the late reply. I have checked and we don’t any customization projects right now. Though I tried this morning if it will work and surprisingly it goes through. The Sales Order was created. I am thinking the possibility that the API usage causes this one?
According me, that should not be case, it might be issues with caches but NOT sure.