magento2 – Magento 2.2.2 Error setting the order status with the API


I'm trying to set the order status of orders through the API to Completed. I am using Magento Enterprise 2.2.2. Do I miss something in the data?

This is the URL I call

https: // localhost / rest / V1 / orders

This is the data I send

{"entity": {"entity_id": 10000001, "status": "Complete"}}

This is the mistake I receive

"Fatal Error:" Unrecognized Error: Calling a member function
getMethodInstance () to zero in
/vendor/magento/module-payment/Observer/SalesOrderBeforeSaveObserver.php:24

Stack trace:

Object (Magento Framework Event Observer))

Object (Magento Framework Event Observer))

in line 24 "