> 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/process-a-transaction.md).

# Procesar una transacción

Use este flujo para destokenizar un token PCI durante un pago.

## Flujo

<figure><img src="/files/fd8883cb4d58747498db7c4d82251767a24ab74a" alt=""><figcaption><p>Flujo de transacción de tokenización PCI</p></figcaption></figure>

<table><thead><tr><th width="100">Paso</th><th>Descripción</th></tr></thead><tbody><tr><td>1</td><td>El usuario final realiza el pago en el sitio web o la aplicación del comerciante.</td></tr><tr><td>2</td><td>El comerciante o PSP llama a <code>createTransaction</code> y proporciona el <code>tokenId</code>.</td></tr><tr><td>3</td><td>El backend de Thales realiza la destokenización y devuelve el PAN y la fecha de vencimiento.</td></tr><tr><td>4</td><td>El comerciante o PSP envía la autorización usando el PAN y la fecha de vencimiento.</td></tr></tbody></table>

## API

Para la tokenización PCI, `tokenId` y `transactionType` son obligatorios.

Use la misma `createTransaction` operación para la tokenización PCI y la tokenización de la red de pago.

* Referencia de la API: [Crear transacción](broken://pages/08156055f53c693bbf24bc8205632ecabbd96544#post-v2-transactions)


---

# 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/process-a-transaction.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.
