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
});
Rookie Asked on June 27, 2022 in Other.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor