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

# Process a transaction

Use this flow to detokenize a PCI token during a payment.

## Flow

<figure><img src="/files/H1cIbzdSsHk8mIAmdPpw" alt=""><figcaption><p>PCI Tokenization transaction flow</p></figcaption></figure>

<table><thead><tr><th width="100">Step</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td>The end user checks out in the merchant website or app.</td></tr><tr><td>2</td><td>The merchant or PSP calls <code>createTransaction</code> and provides the <code>tokenId</code>.</td></tr><tr><td>3</td><td>Thales backend performs detokenization and returns the PAN and expiry date.</td></tr><tr><td>4</td><td>The merchant or PSP sends the authorization using the PAN and expiry date.</td></tr></tbody></table>

## API

For PCI Tokenization, `tokenId` and `transactionType` are required.

Use the same `createTransaction` operation for PCI Tokenization and payment network Tokenization.

* API reference: [Create transaction](/merchant-tokenization/backend-integration/apis/server-api/transaction-management.md#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:

```
GET https://docs.payments.thalescloud.io/merchant-tokenization/pci-tokenization/implement-pci-tokenization/process-a-transaction.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.
