Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

330
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda