> 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/tokenization/es/implement-tokenization/post-tokenization-requests/retrieve-tokenization-data.md).

# Recuperar datos de tokenización

## Recuperar datos de tokenización

Utilice estas API después de que D1 notifique a su **backend del emisor** de un **evento de** Tokenización.

Comience desde el `operationId` incluido en la notificación.

Luego recupere el `digitalCardId` y, si es necesario, detalles y credenciales de la tarjeta digital.

### Recuperar detalles de la operación

Llame a [Obtener operación](https://docs.payments.thalescloud.io/tokenization/es/integrate-the-d1-api/d1-api-summary.md) con el `operationId`.

Esto devuelve la operación procesada y, cuando esté disponible, el `digitalCardId`.

<figure><img src="https://3386638856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6dljaTEEzefPQILRFB7%2Fuploads%2FQdoJXXM7gfwzXBngaGx7%2FSequence%20Diagram%20%E2%80%93%20Retrieve%20operation%20details.svg?alt=media&amp;token=ea1722a6-1466-484d-9d8d-ace92be1b593" alt=""><figcaption><p>Recupere los detalles de la operación y, cuando estén disponibles, el <code>digitalCardId</code></p></figcaption></figure>

#### Use el `digitalCardId`

La respuesta de la operación incluye el `digitalCardId` cuando la red de pago **TSP** creó (o está creando) la tarjeta digital.

Si la operación `estado` es `EXITOSA` o `PENDIENTE`:

* Recupere datos no sensibles con [Obtener información de la tarjeta digital](https://docs.payments.thalescloud.io/tokenization/es/integrate-the-d1-api/d1-api-summary.md).
* Recupere credenciales sensibles con [Obtener credenciales de la tarjeta digital](https://docs.payments.thalescloud.io/tokenization/es/integrate-the-d1-api/d1-api-summary.md).

{% hint style="info" %}
Las credenciales de la tarjeta digital están cifradas con su certificado de cifrado del emisor proporcionado durante **la incorporación a D1**.

Descífralas en su **backend del emisor**.
{% endhint %}

Almacene solo lo que necesite.

### Buscar una tarjeta digital

Use este flujo cuando no tenga `digitalCardId`.

Puede comenzar desde el PAN de la tarjeta digital (DPAN) observado en el tráfico de autorizaciones.

Casos de uso comunes:

* Vincular una tarjeta digital a un **Usuario final**, tarjeta de financiamiento (FPAN) o dispositivo.
* Investigar señales de fraude generadas por su host de autorizaciones.

1. Llame a [Buscar tarjeta digital](https://docs.payments.thalescloud.io/tokenization/es/integrate-the-d1-api/d1-api-summary.md) para resolver el DPAN a un `digitalCardId`.
2. Opcionalmente, llame a [Obtener información de la tarjeta digital](https://docs.payments.thalescloud.io/tokenization/es/integrate-the-d1-api/d1-api-summary.md) para recuperar detalles de ese `digitalCardId`.

{% hint style="info" %}
Proporcione el PAN de la tarjeta digital (DPAN).

Generalmente lo recibe en las solicitudes de autorización del **Adquirente** a través de la red de pago.
{% endhint %}

<figure><img src="https://3386638856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6dljaTEEzefPQILRFB7%2Fuploads%2FJpAjVedRr6Xvjv7wGSkv%2FSequence%20Diagram%20%E2%80%93%20Search%20a%20digital%20card.svg?alt=media&amp;token=0136bd02-2edb-4359-8402-9411062ce1f5" alt=""><figcaption><p>Buscar una tarjeta digital por DPAN y opcionalmente obtener detalles de la tarjeta digital</p></figcaption></figure>


---

# 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/tokenization/es/implement-tokenization/post-tokenization-requests/retrieve-tokenization-data.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.
