> 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/classic-tokenization/ja/ysuksu/batchifairuwoshitetkunwosuru.md).

# バッチファイルを使用してトークンを同期する

Thales **TIG** 〜を可能にします **イシュア** TIGプラットフォームを通じて作成されていないトークンを同期します。これは、イシュアがTIGに接続する前に電子商取引のトークナイゼーションが有効になっていた場合に役立ちます。

このサービスはイシュアのバックエンドに新しいAPIを必要としません。既存のトークンデータを復旧するために、同期キャンペーンを **TSP** とともに使用します。サポートされているのはMastercardとVisaのみです。

キャンペーンを開始するには、イシュアが専用のSFTP接続を通じてトークナイゼーションサービスに入力バッチファイル（同期するカードの詳細を含む）をアップロードします。

処理が完了すると、TIGはJSON形式の出力結果ファイルを生成します。

その後イシュアは結果をダウンロードできます。TIGは入力ファイルごとに1つの出力ファイルを生成します。

これは大まかには次の図に示されます：

<figure><img src="/files/f7945bfc8b4fb4346ec6ad3f89d79e16f51e8360" alt=""><figcaption><p>バッチファイルを使用した高レベルのトークン同期フロー。</p></figcaption></figure>

{% hint style="info" %}
ThalesでのSFTPアカウントの作成および管理に関する支援が必要な場合は、あなたの **Thales提供チーム**.
{% endhint %}

### バッチファイルの命名規則 <a href="#batch-file-naming-convention" id="batch-file-naming-convention"></a>

入力バッチファイル名にはこの形式を使用してください：

`"BatchId"-"SeqNumber"-"UNIX_UTC_Timestamp".json`

出力バッチファイル名にはこの形式を使用してください：

`"BatchId"-"SeqNumber"-"UNIX_UTC_Timestamp"_OUT.json`

ここで：

| NAME                 | 説明                                      |
| -------------------- | --------------------------------------- |
| BatchId              | バッチファイルの一意の識別子。                         |
| SeqNumber            | バッチに多数のレコードが含まれ、複数のファイルに分割される場合に使用されます。 |
| UNIX\_UTC\_Timestamp | 秒単位のUNIXエポックタイムスタンプ。                    |

例：

* BatchId = 87889898
* SeqNumber = 001
* 入力ファイル: 87889898-001-1563188489.json
* 出力ファイル: 87889898-001-1563188615\_OUT.json

### サポートされる操作 <a href="#operations-supported" id="operations-supported"></a>

バッチファイルでサポートされる操作タイプは1つだけです：

* VIRTUAL\_CARD\_REGISTRATION

#### バーチャルカード登録 <a href="#virtual-card-registration" id="virtual-card-registration"></a>

この操作はバッチファイル内の各カードについてTSPに照会します。次に、TIGがそれらのトークンを管理するために必要なデータを復旧します。

それらを同期するまで、TIGを通じてTIG外で作成されたトークンを管理することはできません。

#### 含まれるトークンデータ <a href="#token-data-included" id="token-data-included"></a>

TIGに登録されるトークンデータはTSPが提供する内容によります。ほとんどの場合、TIGは次を同期します：

* トークンID
* トークンリクエスタID（TRID）
* PAN参照ID
* トークンPANの下4桁（サフィックス）
* トークンステータス
* トークンタイプ
* トークンのプロビジョニング時間（利用可能な場合）
* トークンの最終ステータス変更時間（利用可能な場合）
* トークンリクエスタ名（利用可能な場合）
* デバイスID（利用可能な場合）
* デバイス名（利用可能な場合）

{% hint style="info" %}
トークンの同期は **しない** ことを意味します、TIGがトークンボールトとして機能するということは。

トークンボールトの役割は支払いネットワークのTSPに留まります。
{% endhint %}


---

# 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/classic-tokenization/ja/ysuksu/batchifairuwoshitetkunwosuru.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.
