> 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/migrate-your-d1-integration.md).

# Migrate your D1 integration

Understand what changes between D1 API v1 and v2 and how to migrate safely.

D1 provides two generations of the D1 API:

* **v1** APIs use `/v1/` in the URL path.
* **v2** APIs use `/v2/` in the URL path.

v2 is the recommended option for new integrations.\
It also introduces new capabilities and updated models for end user and card management.

## When you should migrate

Migrate if your issuer backend currently calls v1 endpoints and you want to:

* Use v2-only features (for example, new authorization controls).
* Align with the latest D1 API models for end user and card lifecycle operations.
* Standardize on a single API version for new and existing cards.

{% hint style="info" %}
The D1 API uses the term **consumer** for an end user.\
This documentation uses **end user**, and keeps API field names as-is (for example, `consumerId`).
{% endhint %}

## Recommended migration approach

Use the guided v1-to-v2 migration flow:

* Follow [Migrate to v2](/d1-v1-api/migrate-to-d1-api-v2.md) for the end-to-end steps.
* Route **new registrations** to v2 first.
* Migrate existing data (handled by Thales).
* Then move lifecycle traffic (suspend, resume, renew, replace, delete) to v2.

## Related guides

* [Register end users and cards](/d1-v1-api/register-end-users-and-cards-in-d1.md)
* [Manage end user and cards](/d1-v1-api/manage-end-users-and-cards.md)

## API references

* [D1 v1 API references](/d1-v1-api/d1-v1-api-references.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/migrate-your-d1-integration.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.
