Hi all,
I'm very much a beginner on understanding how to build integrations and need some help understanding which route I need to persue here.
I'm using a piece of software called Elogii that uses webhooks to post information.
I want to build a Suitelet or a Restlet to be able to catch that information to update my Sales Orders with the information that Elogii posts.
Elogii offers a number of webhook types to choose from, but I don't know which is most suited to linking up to NetSuite. Here they are
Basic HTTP Auth
Header / API Key
HMAC
OAuth 2.0
Restlets don't work without login, so any auth type that would require a restlet doesn't work, is that right? What Authentication types are those? I think for Elogii it's just OAuth 2.0 but that requires login. So, none?
Which means I likely need to build a Suitelet as those can be used without login and that would be HMAC or OAuth 2.0?
From what I've tried to learn of OAuth I think it needs a certificate for Machine to Machine type integration? So that it can be 'available without login'.
I managed to make this certificate using OpenSSL but on top of this I believe Elogii needs to support JWT but doesn't. So OAuth 2.0 is a dead end?
I'm currently trying to test getting a POST request to a basic Suitelet but don't even know what URL I should be using. The deployment record says the URL is https://XXXXXXXX-sb1.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=3197&deploy=1&compid=5752341_SB1&ns-at=AAEJ7tMQLdmvPWqhxHkWOvCWRcPS7ltOXSx5Wp1E11WRx1okTBY which gives me "Method Not Allowed" and https://XXXXXXXX-sb1.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=3197&deploy=1 gives me "Invalid page parameter. Unable to view page."
———————
I managed to get a Suitelet to recieve a POST request from Postmate, but it requires an additional header and value of User-Agent, Mozilla/5.0. But since Elogii doesn't have field for additional headers that means this authentication method is also scrapped? Without the additional header I get 'Method Not Allowed'
———————-
Sorry, this all may be TMI but there are so many different directions to chase and no clear answers.
A little bit of guidance or a clearer bit of documentation on how I can get a Webhook from another bit of software to be picked up by NetSuite is all I'm looking for.
Thanks!