web-servicesrestprestashopprestashop-1.6prestashop-1.7

Update Status of an Order on Prestashop using Webservices


I just want to update the current_state of an order,

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <order>
        <id>1</id>
        <current_state>1</current_state>

    </order>
</prestashop>

But the prestashop is asking me for all the mandatory fields of a Post when I use the put,

I tried using the exact same information than the put but it's loosing the total ammounts when I do the put,

Is there something wrong on prestashop architecture?


Solution

  • You must download all order information with get request. Then modify current_state field before make put request to update values. You can not just send only desired fields to update.

    Check examples here: Prestashop Webservices Data Modification