> 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="https://726786440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XBN1F9dv7Dl1ggilGWC%2Fuploads%2FZNhZQ3f1O4V5ycT0UD1e%2FFlow%20-%20Create%20a%20PCI%20token.svg?alt=media&amp;token=b4ce072a-27ee-4d4b-9625-67be438a5a22" 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 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/merchant-tokenization/ja/pcitkun/implement-pci-tokenization/create-a-pci-token.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.
