Is there any documentation around integrating with...
# suitecommerce
r
Is there any documentation around integrating with an external web service? I can only seem to find documentation on single-sign in from an external site and enabling social media integrations.
s
At what level do you want to make the integration? (What sort of integration are we talking about here?)
r
Sorry for not responding sooner, I'm not sure what you mean by level. I would like to add a call to an external web service on the PDP to pull weather information for a certain area for certain products.
s
By level I meant like: are you interested in building an integration into NetSuite's ERP system, or are you just interested in surfacing additional info on the frontend. It seems you have provided an answer.
The simple answer is that if it is a REST endpoint, then you can just use jQuery.ajax(). I would do this asynchronously, after the page has loaded (look up Backbone events or examples in our code for things like afterViewRender) and then go from there. If it returns an object, then you can also use standard Backbone models to handle that data. Just set the url for the model for your external service.