> 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/es/registra-usuarios-finales-y-tarjetas-en-d1.md).

# Registra usuarios finales y tarjetas en D1

Registre usuarios finales, cuentas y tarjetas antes de usar los servicios D1.

El registro es un flujo desde el backend del emisor al backend de D1.\
Puede registrar una tarjeta en cualquier momento antes de usarla con un servicio D1.

Su backend del emisor proporciona sus propios identificadores:

* `consumerId` para el usuario final
* `accountId` para la cuenta
* `cardId` para la tarjeta

Estos identificadores se utilizan para referenciar recursos en la API de D1 y durante la resolución de problemas.

{% hint style="info" %}
Puede usar este flujo si utiliza únicamente Tokenization v1.
{% endhint %}

{% hint style="info" %}
La API de D1 utiliza el término **consumer** para un usuario final.\
Esta documentación usa **usuario final**, y mantiene los nombres de campos de la API tal cual (por ejemplo, `consumerId`).
{% endhint %}

## Flujo de registro

<figure><img src="/files/72d6580f1d8feac8d59fc14bbaac53c6c6f623e5" alt=""><figcaption><p>Flujo de registro de usuario final y tarjeta (backend del emisor al backend de D1)</p></figcaption></figure>

## Elegir identificadores

Si su backend del emisor no gestiona cuentas (o no dispone de un `accountId`), use `consumerId` como `accountId`.

{% hint style="warning" %}
Siga estas reglas para los identificadores:

* Asegúrese de que `consumerId`, `accountId`, y `cardId` son únicos en su tenant de D1.
* No incluya información de identificación personal (PII) en `consumerId` o `accountId`.
* No incluya datos sensibles de la tarjeta (por ejemplo, PAN) en `cardId`.
  {% endhint %}

## Registrar un usuario final con tarjetas

Llame a [Register Consumer with cards](broken://pages/9966d3b247f79bd72f6b9dcb6e6dd354a18f0771#put-issuers-issuerid-consumers-consumerid-cards) desde su backend del emisor.

Para añadir más tarjetas a un usuario final existente, llame a la misma API de nuevo.\
Reutilice el `consumerId`, e incluya las nuevas tarjetas en la carga útil.

<details>

<summary>APIs de registro heredadas v1</summary>

Estos endpoints siguen disponibles si se integró antes de que `Register Consumer with cards` fuera lanzado:

* [Register Consumer](broken://pages/9966d3b247f79bd72f6b9dcb6e6dd354a18f0771#put-issuers-issuerid-consumers-consumerid)
* [Register Account](broken://pages/2db940c609105e915cf67326a9e9ec2812951118#put-issuers-issuerid-accounts-accountid)
* [Register Card](broken://pages/1a25eb9cffe12b7953131ca5c04a8fce98e9ce82#put-issuers-issuerid-cards-cardid)

</details>


---

# 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:

```
GET https://docs.payments.thalescloud.io/d1-v1-api/es/registra-usuarios-finales-y-tarjetas-en-d1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
