NetSuite and Shopify Integration - shopify

Hi I am trying to integrate NetSuite and Shopify, I am facing an issue in Shopify webhook, I have given Suitelet's external url in Shopify webhook but this link is not working, I tried with requestbin its working fine.
Is there any issue with Suitelets external url.
Please help.

What you are likely running into is that Suitelets are set up to be used from a client side script. This behaviour existed for years and then disappeared for a while then it showed up again in 2017.1. The behaviour is that if the inbound suitelet call doesn't have a recognized user-agent header Netsuite drops the call.
I do a lot of Netsuite and developed a proxy for suitelet calls that handles this but that is something I apply sparingly and on a client-by-client basis.
The other issue you'll run into is request throttling back to Shopify. This is difficult to deal with from Netsuite since their server side http methods are all synchronous so you'd have to get clever (first thing I'd investigate if you are intent on this is with scheduled scripts that send updates to Shopify until you are about to run out of api calls and then re-schedule themselves)
FWIW I have a Netsuite-to-Shopify connector already in production. If you are trying to connect your Netsuite account to Shopify I'd recommend looking at that.
FarApp and Celigo also offer Netsuite to Shopify though I believe theirs are more expensive than mine.

Related

Storefront event webhooks in Shopware 6 app development

I developing an app and basicly if an user loaded a product in the storefront it should send a request to my server. So i thought thats possible with webhooks. But unfortunately there is no webhook for this case.
The closest thing i could find is the product.written webhook but that seems useless for my case.
Anyone has an idea how i could realize my request?
I use Shopware 6.4.11.1 as development enviroment.
Although I have not found any appropriate webhook in the webhook events reference, this may be doable in a slightly different way, without using the Shopware App Webhook mechanic.
In the Shopware documentation there are shown ways to add Storefront scripts to an app. There is even an example for product-page-loaded. You would be able to execute some of your own code in there, but honestly I have not tried to ping external servers like this and I can't tell you that this will surely work.
You could also potentially add some custom JS code that pings your server with the appropriate info.
Unfortunately I don't think you can compel Shopware to send a request from its backend on a ProductPageLoadedEvent

Registering a carrier service shipping rate with shopify carrier shipping API

I am trying to register a carrier shipping service with Shopify's API but not exactly sure where to place the API call to register the shipping service. So far I have an APP and able to athenticate and install the app into a test store successfully but how does Shopify store make the call to initialize and register the service after installation?
The API documentation states making a curl call:
curl -X POST -d #carrier_service.json -H"Accept:application/json" -H"Content-Type:application/json" -H"X-Shopify-Access-Token:TOEKN" https://aztest-3.myshopify.com/admin/carrier_services
Where should I make this call from?
you can make this call from any terminal window that's connected to the internet.
most people would use their own computer's.. I ran mine from heroku.
I faced the same dilemma when attempting the same thing.
It makes sense that when the App is installed, it saves the access token provided in the response from Shopify in the App's persistence layer. When that save is completed the App can then initiate a session with the shop. With a session a call can be made to setup the Carrier Shipping callback and the App is then ready to go. A rate request will hit the designated end point and it is then (at least partially) responsible for providing shipping rates.
Ideally, you should have some kind of framework that handles the OAuth flow, storing authentication data for later use (like the Ruby or Python implementations, or your own). In this case, you would want to use the framework's method for sending requests to Shopify, and not send requests manually through curl. The curl requests in the documentation are for quick-example's sake, allowing you to try out the requests yourself easily.
If you insist on triggering these requests manually, I would highly suggest using Postman- It's much more human-friendly than curl and has some great time-saving features.

Shopify webhook application

I was thinking of implementing a shopify application.the purpose of application is that when it is installed on any store.Application would set the HTTP POST request URL itself and when there is any order placed on that store,App will send us the information via POST.
Is that possible using webhooks?
beacuse i cant find any way to programattically using the webhooks.
Have you read the API docs for webhooks? All it talks about is using them programmatically.
http://docs.shopify.com/api/webhooks/using-webhooks
Are you running into some specific issue?

do I have to register as a shopify partner?

(I am reposting this question here because I tried on the google news group and got no responses.)
I need to build a shop for my client, and the client already has a domain and a web site. I need to integrate e-commerce functionality in to the site. This is going to be done by sending AJAX requests to the API.
my question is whether I need to get a partner account for this? I am not yet going to write an app that people would install, I am just building a store for my client. how is it done?
You do not need a Shopify Partner account for this. You can instead create a "Private application" within the normal shopify admin, which will give you the api credentials you need to make stuff happen.
This article on the shopify wiki gives a good overview of the process for getting started (the first sections are most relevant in your case):
http://wiki.shopify.com/Using_the_shopify_api_gem_with_the_credentials_of_a_private_app

Google Plus API - Retrieve code programmatically

I'm using Java with Google Plus API. I'm using OAuth 2.0. When a user is authenticated, an access code is returned in a browser. Now, given that the code must accompany a call to the Google Plus API, I currently have to manually copy the code and use it in making calls to the Google Plus API. What I wish to do, however, is to programmatically retrieve this code; eliminate the manual copying.
Any assistance will be highly appreciated. Thanks in advance.
It sounds like you're writing a command line or some other non-web application that uses the Google+ API. This throws a little bit of a wrench into the token delivery via HTTP redirect. Without the redirect there's no way for the OAuth web pages to communicate with your code and hence you must copy and paste it.
There is one work around that seems to work pretty well. You can set up a local web server, such as an embedded Jetty, and complete the OAuth flow by redirecting the user back to their locally running web server.
You can see an example of this implemented in oacurl which is hosted here: http://code.google.com/p/oacurl/