cancel
Showing results for 
Search instead for 
Did you mean: 

Changing sales order status via REST API, and Invoicing differently to the order ?

Changing sales order status via REST API, and Invoicing differently to the order ?

Hi,

 

a) I'm using the REST api from a C# application to retrieve sales orders filtered by status and load to backoffice stock system, this is working fine. Once retrieved, I'd like to change the status so they are not retrieved next time my program runs - is this possible via the REST API? I can see that for the SOAP API this can be done by the add comment method http://www.magentocommerce.com/api/soap/sales/salesOrder/sales_order.addComment.html but there doesn't appear to be an equivalent for REST as that appears to offer retrieve only, not post http://www.magentocommerce.com/api/rest/Resources/Orders/sales_orders.html - am I missing something ?

 

b) Once I've dealt with the order in the backoffice system, I need to raise an invoice. Again I can't see anything for this in the REST API - again is this possible / is there documentation elsewhere on how to achieve? 

 

c) If I switch to the SOAP API to raise the invoice - at times, I may need to invoice different items to those ordered. E.g. If a customer orders an item which turns out to be out of stock, I may call them and offer a different colour which is a different SKU... The only way I can see to handle this is to edit the order, add the new SKU, delete the original sku, then invoice the new item code on the order since the invoice method only accepts order line ID's and quantity... is there any other way to achieve this result ?

 

thanks

2 REPLIES 2

Re: Changing sales order status via REST API, and Invoicing differently to the order ?

Sorry should probably have mentioned I'm on CE  ver. 1.9.1.0

Re: Changing sales order status via REST API, and Invoicing differently to the order ?

Did you figure this out? I am attempting to accomplish the same thing.