> 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/ja/pcitkun/implement-pci-tokenization/create-a-pci-token.md).

# PCIトークンを作成

取得する `tokenId` カードのPANと有効期限のための。

これを使う `tokenId` カードオンファイル（COF）保存と後のデトークン化のため。

## フロー

<figure><img src="/files/ca275962bb00cb349b5fcfe3a4035d6a9c965e6c" alt=""><figcaption><p>PCIトークン作成フロー</p></figcaption></figure>

<table><thead><tr><th width="100">ステップ</th><th>説明</th></tr></thead><tbody><tr><td>1</td><td>チェックアウトの流れでエンドユーザーからPANと有効期限を収集する。</td></tr><tr><td>2</td><td>PANと有効期限を暗号化し、トークン化リクエストをThalesのバックエンドに送信する。あなたの <code>merchantId</code> と一意の <code>x-correlation-id</code> を各トークン化セッションごとに含める。</td></tr><tr><td>3</td><td>返却された <code>tokenId</code> をあなたのCOFストレージに保存する。後で支払い時にデトークン化するために使用する。ThalesのバックエンドはPANと有効期限を保存する。</td></tr></tbody></table>

## API

* APIリファレンス： [PCIトークンを作成](broken://pages/6eb814ebcceb2b7c8872ae4f36b2ec5319d1f5fb#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:

```
GET https://docs.payments.thalescloud.io/merchant-tokenization/ja/pcitkun/implement-pci-tokenization/create-a-pci-token.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.
