> 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/d1-v1-api/ja/d1wosuru.md).

# D1連携を移行する

D1 API v1とv2の変更点と、安全に移行する方法を理解する。

D1 は D1 API の 2 世代を提供します：

* **v1** API は次を使用します `/v1/` を URL パスに含みます。
* **v2** API は次を使用します `/v2/` を URL パスに含みます。

v2 は新しい統合に推奨されるオプションです。\
また、エンドユーザーおよびカード管理のための新機能と更新されたモデルを導入します。

## 移行すべきタイミング

イシュアのバックエンドが現在 v1 エンドポイントを呼び出しており、次のことを行いたい場合は移行してください：

* v2 専用の機能（例：新しい認可制御）を使用する。
* エンドユーザーおよびカードのライフサイクル操作に対して最新の D1 API モデルに合わせる。
* 新規および既存のカードに対して単一の API バージョンに標準化する。

{% hint style="info" %}
D1 API は用語を使用します **consumer** はエンドユーザーを指します。\
このドキュメントでは **end user**を使用し、API フィールド名はそのままにします（例えば、 `consumerId`).
{% endhint %}

## 推奨される移行アプローチ

案内された v1 から v2 への移行フローを使用してください：

* 次に従ってください [v2 へ移行](/d1-v1-api/ja/d1-api-v2hesuru.md) でエンドツーエンドの手順を確認してください。
* ルーティングする **新しい登録** をまず v2 に送ってください。
* 既存データを移行する（Thales が対応）。
* その後、ライフサイクルトラフィック（サスペンド、再開、更新、交換、削除）を v2 に移行してください。

## 関連ガイド

* [エンドユーザーとカードを登録する](/d1-v1-api/ja/d1deendoyztokdowosuru.md)
* [エンドユーザーとカードを管理する](/d1-v1-api/ja/endoyztokdowosuru.md)

## API リファレンス

* [D1 v1 API リファレンス](/d1-v1-api/ja/d1-v1-apirifarensu.md)


---

# 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/d1-v1-api/ja/d1wosuru.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.
