> 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/enroll-cards-in-click-to-pay/enroll-cards-by-d1-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.payments.thalescloud.io/~gitbook/mcp).

# D1 APIでカードを登録する

## 概要

このページでは、イシュアバックエンドが D1 API を呼び出すことで、カードとそのエンドユーザーを Click to Pay に登録する方法について説明します [Click to Payに登録](https://docs.payments.thalescloud.io/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md).

イシュアアプリケーションが API を直接呼び出すことに依存せず、イシュアバックエンドから Click to Pay の登録をオーケストレーションしたい場合は、このバックエンドフローを使用してください。

## ユーザー体験

<figure><img src="https://3215970156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2F3liYHSHVk2mBnVBZQmrM%2FUX%20-%20Enroll%20to%20C2P.svg?alt=media&amp;token=e40eb79a-4e57-420a-8d44-8cb83eb9abdf" alt=""><figcaption></figcaption></figure>

## フロー

次の図は、バックエンドの Click to Pay 登録フローの主な手順を示しています:

<figure><img src="https://3215970156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2FE30mNoZjNPEtB2Fy6dZg%2FFlow%20-%20%20Enroll%20cards%20by%20D1%20API.svg?alt=media&amp;token=f82e4ae2-c6cc-4689-8711-d7746317dd46" alt=""><figcaption></figcaption></figure>

## シーケンス図

### 前提条件

については参照してください [前提条件](https://docs.payments.thalescloud.io/click-to-pay/ja/implement-click-to-pay-issuers/enroll-cards-in-click-to-pay.md#prerequisites).

次のシーケンス図は、イシュアバックエンドから開始される Click to Pay 登録フローを示しています:

<figure><img src="https://3215970156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2FppZO1avIUya1gOkuo5FI%2FSequence%20Diagram%20-%20Click%20to%20Pay%20-%20%20Enroll%20cards%20by%20D1%20API.svg?alt=media&amp;token=920fb9bd-35d7-48f1-89f0-2b694f039d33" alt=""><figcaption></figcaption></figure>

### 重要なポイント

* イシュアバックエンドは、エンドユーザーの個人情報とカード情報をあらかじめ把握している必要があります。
* 登録は非同期操作です。最終結果は次のいずれかで取得できます:
  * 標準の getter 操作を呼び出す、または
  * D1 バックエンド通知を有効にする（詳細は [API の概要](https://docs.payments.thalescloud.io/click-to-pay/ja/integrate-the-d1-api/d1-api-summary.md)).
* 決済ネットワークに関連付けられた TSP が、通常のデジタル化フローを開始します。イシュアバックエンドは、通常どおりこのフローを引き続き管理します。変更は不要です。Click to Pay は eコマース取引に適用されるため、通常は承認されることが想定されます。

{% hint style="warning" %}
この API は一括登録をサポートしていません。Click to Pay サービスでカードの大量登録を行う必要がある場合は、 [Click to Pay の自動登録を使用したバッチファイル登録](https://docs.payments.thalescloud.io/click-to-pay/ja/register-cards-via-batch-file.md).

自動登録機能を設定するには、Thales の担当者にお問い合わせください。
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
