Difference between Shopify Private app and Public app

Now a days, the most common question comes in mind of any beginner developer, “What is the difference between Private apps and Public apps in Shopify ?”.

We have explained the difference between both type of apps and also explained all steps to clear all queries regarding the same. After complete reading of this article, You will be able to create apps for your own store via any method as per requirement.

Private AppPublic App
We need to create app on store manually by Apps section on Store.We need to create app installation url, by which any Store admin can install app on their own store.
API Key and API Password will be created once we will create app in Store.Access token will be generated dynamically for store on which app will be installed.
Store admin can delete app by going store’s app section.Store admin can uninstall app from their store by visiting App list.
Private app can be created by any person even who don’t know coding. After app creation, API credentials will be generated and admin can send these API credentials to any developer.Public app can be created by developers and needs coding. Only Access token will be generated for store once app will be installed on store.
No need of Shopify Partner account to create Private app.Developers needs Shopify Partner account to create Public app.

Steps to create Private apps:

  1. From your Shopify admin, go to Apps.
  2. Click Manage private apps.
  3. Click Create a new private app.
  4. In the App details section, enter a name for your private app and a contact email address.Shopify uses the email address to contact the developer if there is an issue with the private app, such as when an API change might break it.
  5. In the Admin API section, select the areas of your store that you want the app to be able to access.
  6. If you want to use the Storefront API, then select Allow this app to access your storefront data using the Storefront API.
    1. In the Storefront API permissions section, select which store data you want to expose to the app.
    Four permissions are selected by default: Read products and collectionsRead and modify customersRead and modify checkouts, and Read blogs and articles.CautionThe Storefront API is an unauthenticated public API, which means that all data you expose to the app could be seen by any visitors to your store. You should use the Storefront API only if you are comfortable with this risk, and you should give permissions for only the types of data that the private app needs.
  7. When you’re done, click Save.

The API key and password for your app are now displayed on screen.

Caution

Treat the API key and password like you would any other password, because whoever has access to these credentials has full API access to the store.

After you have the required credentials, the private app can access your store’s data.

Delete a private app

You can delete private apps that you no longer want to use from the Apps page in your Shopify admin.

Steps:

  1. From your Shopify admin, go to Apps.
  2. Click Manage private apps.
  3. Click the delete icon beside the app that you want to delete.

Creating Public Apps

Generate credentials from your Partner Dashboard

You can create a public application from your Partner Dashboard.

To create an app:

  1. From your Partner Dashboard, click Apps > Create app.
  2. Provide an app name and URL.
  3. Select the areas of Shopify that you want to extend your app into. By default all apps are set up to extend into the Shopify admin. You can change these selections later.
App extensions
  1. Click Create app. You are directed to your app’s overview page, where you can view the API key and API secret that you will need for OAuth.

Orders permissions

By default, you’ll have access to the last 60 days’ worth of orders for a store. To access all the orders, you’ll need to request access to read_all_orders. If access is granted, then you can add the read_all_orders scope to your app along with read_orders or write_orders.

Note

Private apps that have permission to access a store’s orders are not limited to the last 60 days. Private apps don’t need additional permission to access all a store’s orders.

To request read_all_orders access:

  1. From your app’s overview page, click App setup.
  2. In the Orders section, click Request access to all orders.
  3. Provide a description about why you are applying for access.
  4. Click Request access.

The Orders section shows that your request is pending approval. If your request is approved, then you’ll see a Read All Orders banner. If your request is denied, then you’ll see a Request denied banner with options to get further details or appeal the decision.

Make authenticated requests

Public apps authenticate to Shopify by providing the X-Shopify-Access-Token header field in each HTTP request to the Shopify API. This access token is obtained through an OAuth handshake. To learn more about how OAuth works, see OAuth.

Leave a Reply

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

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top