Riaxe Systems | Blog
Riaxe.com

Jun
1st
ALL YOU NEED TO KNOW ABOUT THE SHOPIFY PRIVATE APP
Author :Alex Parker

Shopify has become the hassle free and Ready to go e-commerce platform for the new generation of e-tailers. It’s merchandise volume is being raised with a tremendous pace since last few years. The reason behind the success of this e-commerce platform is the simplicity and availability of basic features in a beautifully organized manner. It […]

follow Date : June 1, 2017
No Comments

ALL YOU NEED TO KNOW ABOUT THE SHOPIFY PRIVATE APP

Shopify has become the hassle free and Ready to go e-commerce platform for the new generation of e-tailers. It’s merchandise volume is being raised with a tremendous pace since last few years. The reason behind the success of this e-commerce platform is the simplicity and availability of basic features in a beautifully organized manner. It takes a lot of headache from the online retailers with affordable service prices. With less technical knowledge or without having a wing of technical staffs one can start up with his dream e-commerce site. Shopify is a cloud hosted e-commerce platform but it allows the developers to access the theme files and store details of a shopify store through REST API. Shopify is also providing a well organized theme editor interface through their admin. Shopify POS, Shopify App Sdk are the few more recipes by Shopify developed for creating apps for shopify merchants. Someone can have their requirement fulfilled through an application provided in the app store on shopify.(https://apps.shopify.com/)

Then What is Private App?

Dissertation For Msc Biotechnology Day by day almost all business is being transferred to e-commerce hence different store owner would like to implement different business logic in their store and as per their need. But how would a Shopify developer would fulfill the requirements of Shopify clients, as it is cloud hosted and does not allow to access the data and code base directly? Private app is the gateway for the above problem’s solution. Shopify private app provides the related store’s details through the power of REST API. Through shopify API one can do the CRUD(create, retrieve, update, delete) operation upon the store information. Visit shopify API for detailed information.(https://help.shopify.com/api/reference)

Is it Secure?

In e-commerce platform before making use of any feature or functionality the first thing that comes in to mind that “IS IT SECURE?”. The question is pretty obvious as some unauthorized entity can access someone’s store information using the private apps. No, there is no such matter of second thought as private apps created through a Shopify store comes up with API information for OAUTH authentication process. This means each API call from an entity must have to go through the oauth2 authentication process. For that while creating a private app Shopify provides unique API key, API password and shared secret which are required in the authentication process. Private apps cannot be used for the embedded SDK APIs, which means you can’t embed a private app into the Shopify admin area or can not make a shopify app for the app store.

Can I manipulate access for a Private App?

Yes, Shopify allows to certain section of information for each private APP. Admin has the ability to control over the section of data to be available for a private app. Suppose the customization in the Shopify store needs to be operated through the order section of the store. Then Admin can set access for entities like Orders, transactions and fulfillment to Read, only/Read and write allowance. The read only access setup can work with the GET data APIS. Other operation like POST, UPDATE, DELETE will not work for that particular section.

How To create a Private App?

Creating a Private App is as simple as the following steps.

  • Login through the Shopify admin and go to Apps section.
  • Click the link “Manage Private Apps” to get the list of existing private apps.
  • Click on follow link Generate API Credential button at the top right corner of the page. Provide a name for your private app, email ID (optional, admin email will be taken by default) and set up access for the different sections (order, customers, products, payments etc.) of your store and hit the save button. Shopify will provide API credentials for the private app after creation.

shopify-private-app1

shopify private app development

You can also choose an existing private app from the list to manipulate the access through the store.

How API works with Private App?

After creating a private app, you will get 2 parameters such as API Key, API Password.

To create an API request, you need the following parameters:
– API key (generated from Private App)
– password (Generated from Private App)
– Your store name

The Sample URL format:

https://apikey:[email protected]/admin/resource.json

Let’s say you wanted to fetch the product details from your Shopify store using Shopify API.
So to fetch the products form your Shopify store the API URL will be something like this:

https://API_KEY:[email protected]/admin/products.json

You can use CURL to fetch the product data from your Shopify Store using the above URL.

The sampple output will be in json format like:

{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"It's the small iPod with one very big idea: Video.","vendor":"Apple","product_type":"Cult Products","created_at":"2017-03-16T13:03:15-04:00","handle":"ipod-nano","tags":"Emotive, Flash Memory, MP3, Music","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","sku":"IPOD2008PINK"}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"product_id":632910392,"position":1,"created_at":"2017-03-16T13:03:15-04:00","updated_at":"2017-03-16T13:03:15-04:00","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0006\/9093\/3842\/products\/ipod-nano.png?v=1489683795"}]}}

Article by: watch Debashis Dash
Sr. Shopify Developer

Linkedin | Stackoverflow

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *


*