tomcom Posted April 5, 2012 Share Posted April 5, 2012 Hi, It should be possible to use the RESTful Webservice of Prestashop to update an order's status (ie: from "payment accepted" to "shipped"). But does this also implicate that an email is sent to the customer? I did some research but didn't found a good documentation about details of the the RESTful interface like which resources there are and how to use them. Is there a good documentation or reference besides the very basic one? http://doc.prestasho...REST+webservice Ie: I would be interested in how to add the order_status "shipped" to an existing order and have an email sent to the customer like it is done when you set the status to the order in the backend of Prestashop. I appreciate your hints. BR Tom Link to comment Share on other sites More sharing options...
tomcom Posted April 8, 2012 Author Share Posted April 8, 2012 Has anyone dealt with the WebServices API of Prestashop? Link to comment Share on other sites More sharing options...
tomcom Posted April 25, 2012 Author Share Posted April 25, 2012 No one? Link to comment Share on other sites More sharing options...
Dh42 Posted April 26, 2012 Share Posted April 26, 2012 Make a test shop, order a product and then try updating the order with the restful api.. see if it sends an email. Link to comment Share on other sites More sharing options...
symphonyx Posted May 16, 2012 Share Posted May 16, 2012 Hello, I have to do this and don't know yest if it works. If you test it ? Does the order change sent an email to the customer ? Regards Link to comment Share on other sites More sharing options...
tomcom Posted May 16, 2012 Author Share Posted May 16, 2012 No, at least I didn't get it to work. So I decided to do it the dirty way and emulate the user behavior by posting to the actual Web backend :-( Not nice but there is no support here anyways. Link to comment Share on other sites More sharing options...
symphonyx Posted May 18, 2012 Share Posted May 18, 2012 Ok, thanks for your feedback. If I found a way to, I will reply on your post. Regards Link to comment Share on other sites More sharing options...
tomcom Posted May 18, 2012 Author Share Posted May 18, 2012 I would appreciate it! Link to comment Share on other sites More sharing options...
petrus-v Posted November 8, 2012 Share Posted November 8, 2012 Hi, Is there any news ? I would like to do some steps like the back office but from the webservice. However there are ressources which do not implement update, create and delette (as stock_movements). Why are they unimplemented ? What should I do ? Any advice ? Regards Link to comment Share on other sites More sharing options...
nomah82 Posted December 10, 2012 Share Posted December 10, 2012 Hi, It should be possible to use the RESTful Webservice of Prestashop to update an order's status (ie: from "payment accepted" to "shipped"). But does this also implicate that an email is sent to the customer? I did some research but didn't found a good documentation about details of the the RESTful interface like which resources there are and how to use them. Is there a good documentation or reference besides the very basic one? http://doc.prestasho...REST+webservice Ie: I would be interested in how to add the order_status "shipped" to an existing order and have an email sent to the customer like it is done when you set the status to the order in the backend of Prestashop. I appreciate your hints. BR Tom Hi, Is there any news ? I would like to do some steps like the back office but from the webservice. However there are ressources which do not implement update, create and delette (as stock_movements). Why are they unimplemented ? What should I do ? Any advice ? Regards Hello, I am in this point. I create order since Webservice and the status is "Payment remotely accepted". I see that the stock not decrease. For this reason, i try change the status to "Shipped" by Webservice but i can`t do it. ¿Some idea? Regards and thanks Link to comment Share on other sites More sharing options...
tomcom Posted December 10, 2012 Author Share Posted December 10, 2012 I think the Restful API of Prestashop is at a very simple stage and not very comprehensive yet. At least the API in 1.4.x Prestashop. I didn't have a look at the 1.5 API yet. Link to comment Share on other sites More sharing options...
Mohit Chandra Posted March 13, 2013 Share Posted March 13, 2013 Hello, I am trying to change the order status to 'shipped' or 'paid' using web-service. have success in creating product,customer and their addresses, but now stucked with this problem. Any hints regarding this will be appreciable. Link to comment Share on other sites More sharing options...
Nils-H Posted March 18, 2013 Share Posted March 18, 2013 I'm also trying to use the webservice to update the order_status. Am I correct assuming that the PUT operation needs the complete order xml, as received by GET, to update the order? Preferrably I would only send the id of the order and the new order status, but that doesn't seem to work. I'm not using the sample prestashop webservice client. Link to comment Share on other sites More sharing options...
LeGastronome Posted August 30, 2013 Share Posted August 30, 2013 Hi, Any news ? I would like to update to 1.5.5 from 1.5.2 and I use dirty solution as well by trigerring by php side... Link to comment Share on other sites More sharing options...
Eder Posted April 17, 2015 Share Posted April 17, 2015 Hi, just in case someone still looking for it, the order state can be changed using order_histories resource. If you wan't to do in php, this answer can help you: https://www.prestashop.com/forums/topic/221403-changing-order-status-vith-php/ Just to add some important note, when using webservices, your first order_state will always be PS_OS_WS_PAYMENT, or "remote payment accepted". As this didn't fit my needs, I changed the description and options, removing all options. This mark the order as not validated, which I can make the payment in another phase. Then I created another order_state to mark order as validated. To finish, I called order_payments with payment and transactions info, and changed state with order_histories and worked great, decreasing stock at the right time. Hope this can help someone. I spent some time discovering how it works. Eder Link to comment Share on other sites More sharing options...
pradcena Posted March 10, 2016 Share Posted March 10, 2016 Hi, Anyone found the solution for this Link to comment Share on other sites More sharing options...
Recommended Posts