> 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/retrieve-click-to-pay-profiles.md).

# Click to Pay のプロファイルを取得する

### 概要

イシュアのバックエンドでは、エンドユーザー向けに以前登録された Click to Pay データを取得する必要がある場合があります。代表的なユースケースは次のとおりです:

* イシュアのアプリケーションで、エンドユーザーに Click to Pay の詳細を表示する。
* エンドユーザーが更新を行う前に、Click to Pay に保存されている情報を検証する。

D1 は [Click to Pay の消費者プロファイル取得 API](/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md)を公開しており、イシュアが Click to Pay ディレクトリに登録したすべての Click to Pay プロファイルを取得します。

複数の Click to Pay ディレクトリが設定されている場合、D1 はデータを集約し、ディレクトリごとに最大 1 件のプロファイルを返します。応答には `clickToPayProfiles[]` 配列が含まれ、各エントリは特定のディレクトリに保存されている消費者プロファイルを表します。

{% hint style="info" %}
**クイックリンク**

* [Click to Pay にカードを登録する](/click-to-pay/ja/implement-click-to-pay-issuers/enroll-cards-in-click-to-pay.md)
* [Click to Pay プロファイルを更新する](/click-to-pay/ja/implement-click-to-pay-issuers/update-click-to-pay-profiles.md)
* [Click to Pay からカードをオプトアウトする](/click-to-pay/ja/implement-click-to-pay-issuers/opt-out-cards-from-click-to-pay.md)
  {% endhint %}

#### この API を使用するタイミング

使用する **Click to Pay の消費者プロファイル取得** イシュアのバックエンドが、Click to Pay ディレクトリに保存されている消費者情報の最新スナップショットを必要とする場合。代表的な状況は次のとおりです:

* どのカードとプロファイルデータが Click to Pay に登録されているかを消費者に示す。
* 更新が必要かどうかを判断する前に、Click to Pay に保存されているデータとイシュアのバックエンドに保存されているデータを比較する。
* イシュアのバックエンドに保存されている内容と Click to Pay に保存されている内容の差異をトラブルシューティングする。

この API を **使用しない** で、消費者またはカードの詳細を更新してください。Click to Pay に保存されているデータを変更するには、に記載されている更新 API を使用してください [Click to Pay プロファイルを更新する](/click-to-pay/ja/implement-click-to-pay-issuers/update-click-to-pay-profiles.md).

### フロー

以下の図は、D1 を通じて Click to Pay の消費者プロファイルを取得する全体の流れを示しています:

<figure><img src="/files/d35aeaf5879343aab31f23982d94e1915e24da8f" alt=""><figcaption></figcaption></figure>

## シーケンス図

### 前提条件

を参照してください [前提条件](/click-to-pay/ja/implement-click-to-pay-issuers/enroll-cards-in-click-to-pay.md#prerequisites).

以下のシーケンス図は、Click to Pay の消費者プロファイルを取得する際の詳細な動作を示しています。複数のディレクトリが利用可能な場合、D1 は各ディレクトリに問い合わせ、プロファイルを 1 つの応答に集約します。

<figure><img src="/files/01e651c86482286a733a27d2d8d62bab036f191f" alt=""><figcaption></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/retrieve-click-to-pay-profiles.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.
