phpjsonapiexact-online

Change the Status of a Sales Order in ExactOnline


We currently need to set the status of orders to CANCEL in ExactOnline through the API when they are cancelled in our shop.

I got through the ExactOnline API documentation and in the PUT request of salesOrders, I did not find any Status field that I can update but this field exists when this is a GET request. https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=SalesOrderSalesOrders

My PUT request would have this body as status 45 = Cancelled.

{
    "Status": 45
}

Which currently returns "204 No Content" (which is normal) BUT the status is not updated.

What would be the workaround then?

Thanks.


Solution

  • After some inquiry and discussions with ExactOnline team, updating the status of sales related things through API is not feasible.