I'm trying to send a POST request via Postman to the action CreateOpportunitySalesOrder in the Default Opportunity endpoint in acumatica. But no Sales Order is created. The body of the request is:
{
"entity":{
"OpportunityID": {"value":"OP000376"}
},
"parameters":{
"OrderType":{"value":"SO"},
"RecalculatePricesandDiscounts":{"value":false}
}
}
And I receive the 202 in the response and in the GET after the request, the 204 response code. But no sales order is created.
I tried with Acumatica 20 R1 and 20 R2 but is the same result.
In UI, I can create the Sales Order and redirects to the SO301000 screen but the order is created until press save.
What I'm I missing on the request? Is it possible to invoke CreateOpportunitySalesOrder through the endpoint via REST api?