Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

328
Views
NetSuite SuiteScript connection via rapidapi

I am having issues using RapidApi within NetSuite. Has anyone done this before?

headersObj = [
    {
        name:"x-rapidapi-host",
        value:"hostishere"
    },
    {
        name:"x-rapidapi-key",
        value:"keyishere"
    }
];

response = https.request({
    method: https.Method.GET,
    url: "MyURLishere",
    headers: headersObj
});

I get the following return:

error 400 message: Invalid API key. Go to https:docs.rapidapi.com/docs/keys for more info.

The API key is correct having tested through postman.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The header was missing "Accept":"application/json".

headersObj = {
    "Content-Type": "application/json",
     "Accept":"application/json",
     "x-rapidapi-host": "Myhost",
     "x-rapidapi-key": "Mykey",
     "Host": "host"
};
about 4 years ago · Juan Pablo Isaza Report

0

If you are making the call from within Netsuite you'd need to use their https library:

define(["N/https"], function(http){
    headersObj = [{ name:"x-rapidapi-host", value:"hostishere" }, { name:"x-rapidapi-key", value:"keyishere" }];
    var resp = http.get({url:'your url', headers:headersObj});
    // do something
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!