PostmanでShopify Admin APIのクエリを実行・管理する

Run and manage Shopify Admin API queries with Postman

小笠原 京平

This is Ogasawara, CTO of Tsun Inc.!
This time, we have summarized know-how for easily running the Shopify API with Postman.
It is not limited to the Shopify API, but running and checking an API from the console every time is surprisingly time-consuming.
In such cases, you can use an app called Postman to organize environment information and other settings so that you can execute and check requests quickly!

What is Postman?

Postman is a collaboration tool specialized for developing and testing APIs.

Postman is a collaboration platform for developing and testing APIs.
With Postman, you can check the response by setting a token and other details, then sending a request to the API endpoint.
Current Postman includes features such as HTTP, REST, SOAP, and GraphQL request testing, API design, API documentation, API discovery, Mock Server, Monitors, Workspaces, and more.
By using Postman, API development can be simplified and work efficiency can be improved.

Source: To perform API testing using Postman

Prerequisites

Target audience

  • People who have used the Shopify Admin API

Environment

  • Postman for Mac Version 10.11.1

Installing Postman

Follow the instructions at https://www.postman.com/ or https://circleci.com/ja/blog/testing-an-api-with-postman/ to sign up and install Postman.

Query the Shopify Admin API with Postman

Once installed, open Postman and start by running a simple query of the Shopify Admin API.

In order to execute Shopify Admin API queries, you need an API token, so first generate one.

Generate a token for the Shopify Admin API

Open Shopify admin for your store (preferably the development store).
From Settings > Apps and sales channels, click Develop apps.
Click Create an app.
I think the app name should be easy to understand, such as "Postman". (Assuming it is only used with Postman)
Once the app is created, set the access scopes from the settings on the app screen. (Keep access scopes to a minimum)
From API credentials, get the Admin API access token. (You can only obtain it once, so we recommend storing it in a safe place such as 1Password)

Now you're ready to run your query.

Execute GraphQL queries with Postman

Open Postman.
From Collections > Create new collection, create a new collection. (Enter an appropriate name)
You can now add new requests to the collection, so click Add request to add a request.
Change GET to POST.
Set the URL to https://{Your Shopify Domain}.myshopify.com/admin/api/2023-01/graphql.json.
Set Type on the Authorization tab to API Key.
Enter "X-Shopify-Access-Token" for Key, the token obtained above for Value, and set Add to to Header.
Set API Key for Postman Authorization
Write the following query in the Body tab.

query {
  shop {
    name
    currencyCode
    checkoutApiSupported
    taxesIncluded
  }
}

If you execute Send and get the shop data, it is a success!
Get Shop data with Postman

Manage requests using variables

As the number of requests increases in the future, it will become a hassle to configure the above settings every time you create a new request.
Therefore, we will use Postman's variable function to make management easier.

First, create variables for the API version and Shopify domain.
Open the Variables tab from the collection settings.
Add variables called API_VERSION and SHOP. Set any value for each variable.
Set SHOP and API_VERSION in Postman Variables
Change the URL of the previous request to one that uses variables.
It will look like this: https://{{SHOP}}.myshopify.com/admin/api/{{API_VERSION}}/graphql.json

Execute Send and confirm that you can get the same data as before.

Now, when you want to try a different version of the API, you can easily test it by changing variable values ​​without having to rewrite all requests one by one!

Manage multiple stores separately

Updated in July 2023:
Instead of store management using collections, we have changed to switching using Postman's Environments function.
Please refer to this article as it is very easy to understand how to use Environments.
https://qiita.com/yokawasa/items/05913df60aea07395903

If you're a Shopify partner or have a development store and a production store, we recommend managing multiple stores separately.
By making the collection a store unit, you can use the variable mentioned earlier to standardize the URL of requests under the collection.
You can also share Authorization within a collection.

First, open the Authorization tab from the collection settings.
Set Type to API Key, and enter the same Key and Value as before.
Setting Authorization for Postman Collection
Open the Authorization tab for each request.
Set Type to Inherit auth from parent.
Reference collection authorization from Postman request

This will reference the collection's Authorization, eliminating the need to rewrite all requests when changing the API Key.

Manage GraphQL API and REST API separately

There are two types of Shopify Admin API: GraphQL API and REST API.

It's a matter of preference, but you can also create a GraphQL folder and a REST folder under the collection and manage each API request separately.

Summary

This time, we introduced how to manage the Shopify Admin API using Postman.

Postman also has the ability to automatically fetch GraphQL schemas.
When writing GraphQL queries, auto-completion works, making it much easier to write queries.

Everyone, please use Postman and enjoy a comfortable Shopify Admin API workflow!

👆️目次はShopifyアプリ「RuffRuff 目次作成」を利用

👆️Table of contents by the Shopify app RuffRuff Table of Contents

Back to blog
  • Shopifyで領収書を発行する方法|Order Printerの設定手順・サンプルコード・おすすめアプリを解説

    Shopifyで領収書を発行する方法|Order Printerの設定手順・サンプルコード・お...

    Tsun ライターチーム

    Shopifyで日本式の領収書を発行する3つの方法を紹介します。無料のShopify Order Printerで使えるサンプルコード、適格簡易請求書の前提条件、日本向け領収書アプリ5選と運用の注意点を解説します。

    Shopifyで領収書を発行する方法|Order Printerの設定手順・サンプルコード・お...

    Tsun ライターチーム

    Shopifyで日本式の領収書を発行する3つの方法を紹介します。無料のShopify Order Printerで使えるサンプルコード、適格簡易請求書の前提条件、日本向け領収書アプリ5選と運用の注意点を解説します。

  • Shopifyアプリ「日本インボイス領収書」とは|税率別の端数処理と軽減税率の注記に対応

    What is the Shopify app "JP Invoice Receipt"? |...

    Scanoria

    JP Invoice Receipt (日本インボイス領収書) is an app that issues receipts from Shopify orders. It supports rounding per tax rate, notes for the reduced tax rate, and issuance by buyers themselves.

    What is the Shopify app "JP Invoice Receipt"? |...

    Scanoria

    JP Invoice Receipt (日本インボイス領収書) is an app that issues receipts from Shopify orders. It supports rounding per tax rate, notes for the reduced tax rate, and issuance by buyers themselves.

  • 【決定版】Shopifyアプリ おすすめ一覧:売上アップ・効率化・無料アプリまで徹底解説!

    [2026 Latest] Recommended Shopify Apps: A Compl...

    Tsunライターチーム

    A detailed, purpose-by-purpose guide to recommended apps that streamline Shopify operations. Covers customer acquisition, CVR improvement, blog extensions, CRM, workload reduction, and AI-powered apps. Curated information useful for beginners and...

    [2026 Latest] Recommended Shopify Apps: A Compl...

    Tsunライターチーム

    A detailed, purpose-by-purpose guide to recommended apps that streamline Shopify operations. Covers customer acquisition, CVR improvement, blog extensions, CRM, workload reduction, and AI-powered apps. Curated information useful for beginners and...

  • Shopify Canvasとは?できること・使い方・注意点を解説

    What is Shopify Canvas? Capabilities, how to us...

    Tsun ライターチーム

    Shopify Canvas, announced on October 1, 2026, is a design screen where you can edit your theme together with Sidekick while viewing every page of your store side by side....

    What is Shopify Canvas? Capabilities, how to us...

    Tsun ライターチーム

    Shopify Canvas, announced on October 1, 2026, is a design screen where you can edit your theme together with Sidekick while viewing every page of your store side by side....

  • STORESからShopifyへのデータ移行手順|注意点も紹介

    [2026 Edition] How to Migrate Data from STORES ...

    Tsunライターチーム

    For merchants considering a move from STORES to Shopify, this guide explains the differences in pricing and features between the two services, which data can and cannot be migrated, the...

    [2026 Edition] How to Migrate Data from STORES ...

    Tsunライターチーム

    For merchants considering a move from STORES to Shopify, this guide explains the differences in pricing and features between the two services, which data can and cannot be migrated, the...

  • 【2026年最新】Shopifyの手数料一覧!プラン別の料率と費用を抑えるポイント

    [Latest for 2026] List of Shopify fees! Rates b...

    Tsun ライターチーム

    Explains the types of fees charged on Shopify and lists the rates for the Basic, Grow, Advanced, and Plus plans. Also introduces cost simulations by monthly sales and four points...

    [Latest for 2026] List of Shopify fees! Rates b...

    Tsun ライターチーム

    Explains the types of fees charged on Shopify and lists the rates for the Basic, Grow, Advanced, and Plus plans. Also introduces cost simulations by monthly sales and four points...

1 of 6
  • 【ストアインタビュー後編】やりながら育てるShopify。「野菜をMOTTO」の試行錯誤:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

  • 【ストアインタビュー前編】 ECが主戦場でも、ECが目的ではない。「野菜をMOTTO」が貫くEC戦略:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

  • 【ストアインタビュー後編】取り返しのつかない失敗さえしなければ、全部学びになる。EC戦略と経営哲学:Beverich株式会社 代表取締役 木下慶さん

    [Store Interview, Part 2] As Long as You Don't ...

    テキサス・アユミ

    Kei Kinoshita, President of Beverich, discusses his strategy for splitting roles between Shopify and Amazon, how he uses the RuffRuff apps, and a management philosophy that turns failure into learning....

    [Store Interview, Part 2] As Long as You Don't ...

    テキサス・アユミ

    Kei Kinoshita, President of Beverich, discusses his strategy for splitting roles between Shopify and Amazon, how he uses the RuffRuff apps, and a management philosophy that turns failure into learning....

1 of 3
  • Our Editorial Process

    For readers new to e-commerce and Shopify, we write our articles with care to explain difficult commerce and marketing terms, along with how everything works from building a store through to selling, as “gently,” “clearly,” and “accurately” as we can.

    Learn more 
  • About the information on this site

    The information published here is based on Tsun Inc.’s own experience and research. While we make every effort to publish information that is as “current” and “accurate” as possible, we cannot fully guarantee its contents. Tsun Inc. accepts no liability whatsoever for any damages arising from this site. If you find an error in the information published here, we would be grateful if you would contact Tsun Inc.