Change the Status of a Sales Order in ExactOnline

326 views Asked by At

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.

2

There are 2 answers

0
Umar Zahid On BEST ANSWER

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

1
Dan Harper On

Have you tried using the PHP API client? https://github.com/picqer/exact-php-client if your API request is malformed, this might be an easier way to do it.