by Mike.Sheen » Wed May 23, 2018 10:27 pm
Hi Hieu,
DELETE operations don't return a DTO - that's sort of a convention with DELETE operations in REST API's.
You know the purchase order line ID, because you would have needed to provide that to perform the delete via our REST API - if you're not storing that ID in iVend, then you can perform a GET before the DELETE to get all relevant information such as line ID, part no. and so on.
I'm a little confused why a POS system such as iVend would want to be placing or modifying purchase orders in the ERP system - we released our API initially for just sales, quotes, products and customers - purchase orders was not part of our target API surface initially, although we did provide some rudimentary routes for this.
Typically purchase orders are created and maintained in the ERP system, not the POS system - so I'm interested why your integration needs this in the REST API.
Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution