ブログ記事 Shopifyの必須Webhooks (Mandatory Webhooks)とは? GDPRや対応例など

What are Shopify's Mandatory Webhooks? GDPR and response examples, etc.

小笠原 京平

This article explains "Mandatory Webhooks," one of the points that can trip you up when you start developing a Shopify app.
I'm sure many of you have experienced an app review not passing because these webhooks were not implemented, or because the implementation was insufficient.
Please check this so you do not get stuck during review!

What are webhooks?

Before explaining Shopify's Mandatory Webhooks, let's understand what webhooks are.
Webhooks are an event notification mechanism used to integrate with web applications.
By using webhooks, you can receive data or perform some action when a specific event occurs in a web application.

As an example familiar to engineers, webhooks are used to automatically run builds and tests when code is pushed to GitHub.

Shopify Webhooks

These webhooks can also be used with Shopify.
In Shopify app development, you can use webhooks from the Shopify Admin API.
You can also create webhooks from the Shopify admin outside of an app.

In addition to HTTPS endpoints, Shopify webhooks can also use messaging services such as Amazon EventBridge and Google Cloud Pub/Sub.
Depending on the events you subscribe to and the merchants using your app, you may need to process a large number of webhooks in a short period of time, so we recommend processing webhooks with a messaging service that can scale easily.

What are Mandatory Webhooks?

Mandatory Webhooks are the three webhooks that must be implemented when developing a Shopify app.
These three webhooks are required for GDPR compliance, and all Shopify apps must comply with GDPR regardless of whether they are in EU member countries.
If Mandatory Webhooks are not implemented, your app will be rejected during app review. (Webhooks other than the three Mandatory Webhooks can be implemented as needed.)

Also, the three Mandatory Webhooks can only be created with HTTPS endpoints. The EventBridge and Pub/Sub mentioned above cannot be used.

What is GDPR?

GDPR (General Data Protection Regulation) is a European Union (EU) personal data protection regulation that came into effect on May 25, 2018.
It is designed to protect the privacy of personal information across the EU and give individuals more control over how their data is handled.

GDPR applies to all organizations that process the personal data of EU citizens or residents. This includes organizations both inside and outside the EU, and requires them to comply with GDPR when processing data from EU citizens or residents, no matter where in the world the organization is located.

The main purpose of GDPR is to strengthen and unify the idea that individuals should have the right to know and control how their personal data is collected, stored, and used. It grants individuals several important rights, including transparency around personal information, the right of access, the right to rectification, the right to be forgotten (the right to data erasure), and the right to data portability.

Reference: ChatGPT

Examples of how to handle Mandatory Webhooks

As explained above, Mandatory Webhooks are webhooks for complying with GDPR, so how you respond differs depending on whether you store customer information or store information in a database or similar system.

If you do not store the data in a database

If you do not store customer information or store information in a database, there is nothing special you need to do. It is enough to return a success response indicating that the webhook was properly received.

Please refer to the templates for each language for implementation methods.

If you store the data in a database

If you store customer information or store information in a database, you need to be able to delete the data for the webhook target or provide the requested data to the merchant.

Because handling data deletion requests manually each time is difficult, we recommend automating data deletion when a webhook is received.

Summary

We explained Shopify webhooks, especially Mandatory Webhooks.
To avoid various risks, I think choosing not to store customer information as a basic policy is a good option.
If you need to store customer information, be especially careful to support Mandatory Webhooks.

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

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

Back to blog
  • Shopifyで使える決済方法一覧|手数料・導入サービス・選び方

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

  • GMOイプシロンの手数料・決済方法・入金サイクル|Shopifyの条件も解説

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

  • Shopify向けSBペイメントサービス|対応決済・手数料・導入時の注意点

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

  • KOMOJUとShopifyの連携|決済方法・手数料・オーソリ期限

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

  • Shopifyのセキュリティ対策|決済・アプリ要件・バグバウンティ

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

  • Shopifyサーバーの費用・稼働率・障害時の対処法

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

1 of 6
  • AI仮想顧客の改善ツール「SimGym」を使ったら売上はどうなった?実行から3か月後までの記録

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

  • 【ストアインタビュー後編】やりながら育てる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...

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.