We’re trying to call an external API from NetSuite...
# integrations
s
We’re trying to call an external API from NetSuite that only supports the
PATCH
method (for updating orders). But NetSuite’s SuiteScript
https
module doesn’t support
PATCH
— it only allows
GET
,
POST
,
PUT
, and
DELETE
. So I’m not able to make the call directly from NetSuite. Could you please guide me on how to handle this situation? Is there a workaround you'd recommend?
s
Hi, I haven't done this myself, but I found this thread from last year: Hey everyone I need to make a `PATCH` call from NetSuite I v NetSuite Professionals #suitescript
t
This usually doesn’t work. It only works if the API server supports the X-HTTP-Method-Override header and converts your POST or PUT request into a PATCH request. In my experience, most API servers don’t handle this. Fortunately, one of the vendors I worked with was able to update their system to support it, but that’s not common.
s
ok let me try
i
You can always use a Google cloud function as middleman solution.