RE: “Accept” encoding types recognized by Netsuite

Answered

I am making a restlet call to Cybersource to retrieve transaction records.  The get request needs an “Accept” header.
var headers = new Array();
headers[“Accept”] = “application/hal+json;charset=utf-8″;

When I do the call var the response = nlapiRequestURL(url,”, headers,’GET’);  the response is a 406 error. Indicated Netsuite does not recognize the response type. A get request that needs an Accept Header of application/json works fine in another script. the call also works fine outside the Netsuite environment.
Does anyone know if Netsuite recognizes the hal+json  Accept type?
I am using Suitescript 1.0.

 

larryw11980 Rookie Asked on June 16, 2020 in SuiteScript.
Add Comment
3 Answers

Problem is, using Node.js and the accept header of hal+json  I get a 200 response and the hal-json response object. Cyberspurce is saying it’s an issue with Netsuite.

Rookie Answered on June 16, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.