> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/click-to-pay/ja/implement-click-to-pay-issuers/opt-out-cards-from-click-to-pay/opt-out-by-d1-api.md).

# D1 API でオプトアウトする

## 概要

このページでは、イシュアのバックエンドが D1 API を呼び出してカードを Click to Pay からオプトアウトする方法を説明します [Click to Pay のオプトアウト](/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md).

次のような場合にこのバックエンドフローを使用します:

* イシュアアプリケーションでエンドユーザーの操作なしにカードを Click to Pay から削除したい場合（たとえば、カード解約、不正、または規制上の理由）。
* イシュアのバックエンドまたはカスタマーケアインターフェースからオプトアウト操作を実行する場合。

オプトアウト操作が成功すると:

* カードは Click to Pay ディレクトリから削除されます。
* 決済ネットワークは関連付けられたデジタルカードを削除します。
* カードは Click to Pay のチェックアウト時に利用可能な支払い方法として表示されなくなります。

オプトアウトは最終的です。必要に応じて、API を呼び出してカードを再登録できます [Click to Pay 登録](/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md).

{% hint style="info" %}
**Click to Pay 消費者オプトアウト**

以下のフローは、次の例外を除き、消費者オプトアウトにも適用されます:

* 専用 API では次を使用します `consumerId` の代わりに `cardId`.
* 操作の最後に送信される通知は次のとおりです **消費者オペレーションへ通知** の代わりに **カードオペレーションへ通知**.
  {% endhint %}

## ユーザー体験

<figure><img src="/files/8af56179ff82fda392057b2f3cadd684b6769b81" alt=""><figcaption><p>イシュアのバックエンドからカードを Click to Pay からオプトアウトします。</p></figcaption></figure>

## フロー

下の図は、バックエンドのオプトアウト全体フローを示しています:

<figure><img src="/files/3aa0848e10410fa246e2dd573c6dace286a7c300" alt=""><figcaption><p>バックエンドの Click to Pay オプトアウトフロー。</p></figcaption></figure>

### シーケンス図

下のシーケンス図は、〜によるオプトアウトを示しています `cardId` イシュアのバックエンドから開始されるフロー:

<figure><img src="/files/51c79e5748871014f726f990fa5e7dac3d776c6b" alt=""><figcaption><p>バックエンドの Click to Pay オプトアウトのシーケンス図。</p></figcaption></figure>

下のシーケンス図は、〜によるオプトアウトを示しています `consumerId` イシュアのバックエンドから開始されるフロー:

<figure><img src="/files/e0cfaba94558a5a15bb63f4ede4ab947919593b3" alt=""><figcaption><p>バックエンドの Click to Pay 消費者オプトアウトのシーケンス図。</p></figcaption></figure>

### オプトアウトの影響

選択したオプトアウト種別に応じて、この操作はカード、または消費者プロファイル全体とすべてのカードを Click to Pay から削除します。

その結果、決済ネットワークは関連するすべての詳細を削除します。

エンドユーザーが加盟店サイトで Click to Pay を使用してチェックアウトすると、削除されたカードは支払い方法として表示されなくなります。

{% hint style="info" %}
D1 を通じて、 [カードを削除](/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md) リクエストはリンクされたすべてのサービスに伝播します。その結果、削除リクエストによってカードの Click to Pay からのオプトアウトもトリガーされます。イシュアによる追加の操作は不要です。
{% endhint %}

{% hint style="info" %}
**推奨事項**

* 複数のカードを持つ消費者には、〜を使用したきめ細かなオプトアウトを使用してください **Click to Pay オプトアウトカード** API。少なくとも 1 枚のカードが存在する限り、カード所有者の詳細は Click to Pay ディレクトリに残ります。最後のカードがオプトアウトされると、D1 は自動的にカード所有者の詳細を Click to Pay から削除します。これにより、関連付けられたカードのないカード所有者の詳細が Click to Pay ディレクトリに残ることはありません。
* 1 枚のカードを持つ消費者には、次を使用してください **Click to Pay オプトアウト消費者** 1 回の呼び出しで完全に削除されるようにします。
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/click-to-pay/ja/implement-click-to-pay-issuers/opt-out-cards-from-click-to-pay/opt-out-by-d1-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
