Integrating Shopify Private App with Netsuite

Integrating Shopify Private App with Netsuite

I couldn’t find this in the shopify documentation so I thought it would be helpful to share it.

Backstory:
I was trying to get the JSON from Shopify Private App and I was getting this error:

[API] Invalid API key or access token (unrecognized login or wrong password)

After much research all I needed to do was add header “X-Shopify-Access-Token”.

Here’s the code, just make sure to replace HTTPSMODULE or load with the Netsuite https Module.

  • Esau Grover Ocrospoma Callupe

    Hi Adolfo, do you have tried to intregate Netsuite with mailchimp? I have some error in Script 1.0, i try to replicated in 2.0 but i have problems whith this function “http” or “https”. I need to do the similar like this code https://gist.github.com/vgelani/801b6f146dd4da05c4ae666480bd9ede this is PHP and i want to replicated in Netsuite, I need that when I save a customer, get the email, the name and the lastname, then i save a new member in a list in Mailchimp. In 1.0 use this headers var headers = [{“Authorization”:”Basic “+apiKey, “Content-Type” :”application/json}]; but I could not save creating a new member in Mailchimp. Please Help me.

  • Sachin

    Hi Adolfo,
    I am trying to integrate NetSuite with Lazada. I need your suggestion do we need a connector to build this integration?

    • It seems that you should be able to integrate to it without any connector needed. You would need to code the integration though. I don’t know if there’s any connectors already built for this but it would be worth checking out if you are not a developer.

  • shop07024

    Hi Adolfo,
    Thanks for this tips. We are trying to access REST AWS API gateway within a suitelet, can I do the same way as you do in this exercise? the AWS admin gives me the AccessKey, SecretKey, x-api-key for the API call.