Hi! Hoping I can find some help here or confirmati...
# suitetalkapi
t
Hi! Hoping I can find some help here or confirmation at least. I posted a question here:  https://netsuiteprofessionals.com/question/is-it-possible-to-close-a-po-and-its-items-via-the-rest-api/ Does anyone know if this is possible?
b
are you sure you are working with the REST web services?
t
ah, it's WSDL SuiteTalk 2019_2 API.
b
either way this is the right place to ask, but you generally need to correctly specify which
b
This is not going to be much help as far as the REST API is concerned but theoretically setting the isClosed value to true for each item should do the trick. Being that the purchaseOrder endpoint seems to be buggy ( hey it’s beta) it wouldn’t surprise me if it doesn’t. I was able to use SOAP to reopen the PO which isn’t ideal but I’ve got a time sensitive task so that’s what I’m going with for now.
t
What's the item type that you call
isClosed
to?
It seems that a PO's "itemList" is more of an embedded schema object
or are you saying "update" the PO but set that property on each line
b
Yes update the PO and set the isClosed for each item in the itemList.
t
gotcha!