How To Build A Custom App For Shopify in 2022?

How To Build A Custom App For Shopify in 2022?

Different from the last Shopify API blogs, this article will talk about how to build a custom app for Shopify in 2022. It includes creating, updating, uninstalling, and deleting a custom app.

After January 2022, private applications will be deprecated and will no longer be possible to develop. This is the reason for the request to develop a custom app. Custom apps are created specifically for your store and do not require access to your store’s open API or your Shopify admin. Specially, all accounts with app developer permission can create and install custom apps. 

Now, let’s dive into the way to build a custom app for Shopify. 

Create A Custom App

Before creating a custom app, we need to enable custom app development.

Following the steps below to enable a custom app.

  • Go to Apps
  • Click Develop apps for your store
  • Then click Allow custom app development.
  • After reading the warning and information, click Allow custom app development.
enable custom app

Now we will learn how to create a custom app step by step

  • In the Admin dashboard, choose Apps.
  • Then click Develop apps for your store
  • Click create an app
  • Enter the app name and app developer
  • Finally, click create app
create

After creating, you can assign API scopes to it. There are 2 API scopes: Admin API scopes, Storefront API scopes

  • Admin API scopes are store data access scopes, the scopes you choose will allow you to access store data to serve API operations.
  • Storefront API scopes are the data access scopes for the storefront API scopes, the scopes you choose to be seen by any customers visiting the website.

You can assign one or both scopes depending on your requirement. To assign the Admin API scopes, you click on configure admin API scopes, then select the API scopes you want to assign to the app

After that, click save

You can do the same with the storefront API scopes. However, you need to notice that all data you select in Storefront will be seen by any visitors. So, you need to consider choosing the right API scopes.

Assign the API

Finally, click install app.

install

So we have created a custom app.

Now, we will leave the next action to get the API access tokens after installing.

Depending on what API scopes you assigned to the app, you’ll get an Admin API access token, a Storefront API access token, or both. In this case, we have both. To get the API access token, you just go to the Admin API access token section and click reveal token once.

reveal token

Remember, the Admin API access token on this page only displays one time. You must write down or record the token somewhere secure so that you can refer to it again.

Now, we will update the API scopes for a custom app. 

Update A Custom App

Whenever you want to edit the API scopes for a custom app. You just need to click on Configuration, select the Admin API integration or the Storefront API integration.

Click edit, then update the scopes as you want.

update

Uninstall A Custom App

Now we will uninstall a custom app. When you uninstall a custom app, your Admin and Storefront API access tokens are revoked, and your app can’t access store data. If you reinstall the app, you’ll get new access tokens.

Uninstall a custom app by following the steps below:

  • From your Shopify admin, go to Apps.
  • Click Develop apps for your store
  • Choose the name of the app that you want to uninstall.
  • Click Uninstall app.
uninstall

Finally, we will delete a custom app

Delete A Custom App

When you delete a custom app, it can’t be recovered. If you want to temporarily disable an app on your store without deleting it, uninstall the app instead.

Now, Delete a custom app by following the steps below:

  • From your Shopify admin, go to Apps.
  • Click Develop apps for your store
  • Choose App settings.
  • Click the Delete app.
delete

Above are all steps to build a custom app. If you have any questions, please leave a comment below or refer to our Shopify api documentation.

If you still do not understand the tutorial’s content, you can watch the video below for a more overview.

How to build a custom app for Shopify in 2022?

Hopefully, you can do it!

How To Build A Custom App For Shopify in 2022?

How To Build A Custom App For Shopify in 2022?

Join The Ride

Subscribe to our fortnightly newsletter with stories from our latest adventures and the best travel tips

Table of Contents