Calling post API from Netsuite gives “decoding error” any response.
I am calling post API from NetSuite using the code below gives a “decoding error” in response. Any idea how to fix decoding error?
var headerObj = {"Content-Type":"application/json"};varresponse = https.post({url:'https://site.net/index.php/rest/V1/integration/admin/token',body: {"username":"admin","password":"password"},headers:headerObj});