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

# 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](/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md).

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

## Experiencia del usuario

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

## Flujo

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

<figure><img src="/files/052f0343f1d33b29737c3a79ecfd757dd45f61bb" alt=""><figcaption></figcaption></figure>

## Diagrama de secuencia

### Requisitos previos

Por favor, consulte [requisitos previos](/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="/files/bc29bae9b93b215756377cb2a0550c02114717a5" alt=""><figcaption></figcaption></figure>

### Puntos clave

* El backend del emisor debe conocer ya los datos personales y de la tarjeta del usuario final.
* La inscripción es una operación asincrónica. El resultado final se puede obtener de cualquiera de las siguientes maneras:
  * llamando a la operación getter estándar, o
  * habilitando las notificaciones de backend D1 (consulte el [resumen de la API](/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md)).
* El TSP asociado con la red de pago activa el flujo habitual de digitalización. El backend del emisor continúa gestionando este flujo como de costumbre; no se requieren cambios. Debido a que Click to Pay se aplica a transacciones de comercio electrónico, generalmente se espera la aprobación.

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

Contacte 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 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/es/implement-click-to-pay-issuers/enroll-cards-in-click-to-pay/enroll-cards-by-d1-api.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.
