Page 1 of 1

SalesOrderPROCESSRequest()

PostPosted: Fri Jun 05, 2020 2:54 pm
by tyeatman
Hi

I am trying Process Orders with the Rest API.

The only Call I can see that I can make to process an Order is SalesOrderPROCESSRequest() and can get this to work with an InvoiceID (the only parameter available).

Code: Select all
var salesOrderProcess = new JiwaFinancials.Jiwa.JiwaServiceModel.SalesOrderPROCESSRequest()
            {
                InvoiceID = "*** my Invoice ID ****",
               
            };


There seems to be no option to specify an InvoiceHistoryID (I tried a test InvoiceHistoryID and it returned an error, unable to find InvoiceID).

I would have thought I would need to specify the InvoiceHistoryID of an Order, or at least provide a Parameter for the HistoryNo, in case there is more than 1 HistoryNo UnProcessed for an Order.

Am I missing something? or is there a different Call I need to make?

Thank you for your help.

Tony

Re: SalesOrderPROCESSRequest()

PostPosted: Fri Jun 05, 2020 2:59 pm
by Mike.Sheen
tyeatman wrote:I would have thought I would need to specify the InvoiceHistoryID of an Order, or at least provide a Parameter for the HistoryNo, in case there is more than 1 HistoryNo UnProcessed for an Order.


Hi Tony,

You can only ever have 1 unprocessed snapshot / history for an order - and that is always the most recent one.

So, you only need to provide the InvoiceID when processing a sales order, because it will always be the most recent history that is processed.

Mike

Re: SalesOrderPROCESSRequest()

PostPosted: Fri Jun 05, 2020 3:23 pm
by tyeatman
Thank you for the quick Response, and clarification.