> 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/es/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).

# Inscribir tarjetas mediante la API de D1

## Descripción general

Esta página explica cómo el backend del emisor puede inscribir una tarjeta y a su usuario final en Click to Pay llamando a la API D1 [Inscripción en Click to Pay](https://docs.payments.thalescloud.io/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md).

Use este flujo de backend cuando quiera orquestar la inscripción en Click to Pay desde el backend del emisor sin depender de que la aplicación del emisor llame directamente a la API.

## Experiencia del usuario

<figure><img src="https://3391342470-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>

## Flujo

El siguiente diagrama ilustra los pasos principales del flujo de inscripción en Click to Pay desde el backend:

<figure><img src="https://3391342470-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>

## Diagrama de secuencia

### Requisitos previos

Consulte [los requisitos previos](https://docs.payments.thalescloud.io/click-to-pay/es/implement-click-to-pay-issuers/enroll-cards-in-click-to-pay.md#prerequisites).

El siguiente diagrama de secuencia muestra el flujo de inscripción en Click to Pay iniciado desde el backend del emisor:

<figure><img src="https://3391342470-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>

### Puntos clave

* El backend del emisor ya debe conocer los datos personales y de la tarjeta del usuario final.
* La inscripción es una operación asíncrona. El resultado final se puede recuperar de cualquiera de las siguientes formas:
  * llamando a la operación estándar de obtención, o
  * habilitando las notificaciones de backend de D1 (consulte la [Resumen de la API](https://docs.payments.thalescloud.io/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md)).
* El TSP asociado con la red de pago desencadena el flujo de digitalización habitual. El backend del emisor continúa gestionando este flujo como de costumbre; no se requieren cambios. Dado que Click to Pay se aplica a transacciones de comercio electrónico, por lo general se espera la aprobación.

{% hint style="warning" %}
Esta API no admite inscripciones masivas. Si necesita realizar una inscripción masiva de tarjetas en el servicio Click to Pay, use [el registro de archivos por lotes con la inscripción automática en Click to Pay](https://docs.payments.thalescloud.io/click-to-pay/es/register-cards-via-batch-file.md).

Póngase en contacto con su representante de Thales para configurar la función de inscripción automática.
{% 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/es/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.
