Does anyone have experience re-opening a Purchase ...
# suitetalkapi
b
Does anyone have experience re-opening a Purchase order using the REST API including setting the
isClosed
value on an item attached the PO? I’m able to manipulate the custom fields on the item but I’m not able to set the
isClosed
flag. In fact when I do a get on the PO and the item, there is no
isClosed
value and the property validation says
isClosed
doesn’t exist on the record instance. There is an
isOpen
value which I cannot change either though I don’t receive the property validation error when just sending
isOpen
Copy code
PATCH /services/rest/record/v1/purchaseOrder/10858245 HTTP/1.1
Authorization: OAuth ***
Accept:*/*
Content-Type: application/json; charset=utf-8
Host: ***.<http://suitetalk.api.netsuite.com|suitetalk.api.netsuite.com>
Connection: close
Content-Length: 90

{"memo":"Test","orderStatus":"B","status":"B","item":{"items":[{"line":1,"isOpen":true}]}}