> 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/merchant-tokenization/es/tokenizacion-pci/implement-pci-tokenization/create-a-pci-token.md).

# Crear un token PCI

Obtenga un `tokenId` para el PAN y la fecha de vencimiento de una tarjeta.

Use este `tokenId` para el almacenamiento de Tarjeta en archivo (COF) y la posterior detokenización.

## Flujo

<figure><img src="/files/eeb094ad5987ddb05dcbb70912d06dcc65e94388" alt=""><figcaption><p>Flujo de creación de token PCI</p></figcaption></figure>

<table><thead><tr><th width="100">Paso</th><th>Descripción</th></tr></thead><tbody><tr><td>1</td><td>Recoja el PAN y la fecha de vencimiento del usuario final en su flujo de pago.</td></tr><tr><td>2</td><td>Cifre el PAN y la fecha de vencimiento, luego envíe una solicitud de tokenización al backend de Thales. Incluya su <code>merchantId</code> y un <code>x-correlation-id</code> único por sesión de tokenización.</td></tr><tr><td>3</td><td>Almacene el <code>tokenId</code> devuelto en su almacenamiento COF. Úselo más tarde para detokenizar durante los pagos. El backend de Thales almacena el PAN y la fecha de vencimiento.</td></tr></tbody></table>

## API

* Referencia de la API: [Crear token PCI](broken://pages/dc5ab94330c643fa04568881681a3eb65d299d02#post-pci-tokens)


---

# 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/merchant-tokenization/es/tokenizacion-pci/implement-pci-tokenization/create-a-pci-token.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.
