> 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/fdbdf84bb4ba463a258cf0cac32e82b7ea8d713b" alt=""><figcaption><p>バックエンドの Click to Pay オプトアウトのシーケンス図。</p></figcaption></figure>

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

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


---

# 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.
