> 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/deng-lu-hou/kdoraifusaikuru/kdowomatahasuru.md).

# カードを再発行または更新する

物理カードが再発行（紛失後など）または更新（有効期限による更新）の際、イシュアのバックエンドは更新されたFPANと有効期限をトークナイゼーションサービスに送信する必要があります。トークナイゼーションサービスはその後、支払いネットワークのTSPに対して資金カード情報を更新します。

次を使用してください [UpdateCard API](/classic-tokenization/ja/apirifarensu/ishuagtoweiapi/inbaundoishuakara.md)古いFPANと新しいFPANの両方と有効期限を提供してください。

### FPANと有効期限を更新する <a href="#pan-and-expiry-date-update" id="pan-and-expiry-date-update"></a>

有効なリクエストの例は次のとおりです：

```json
{
  "issuerCardRefId": "string",
  "fpanDetails": "string (base64)"
}
```

`fpanDetails` には暗号化された古いおよび新しいFPANと有効期限が含まれます。これはbase64エンコードされたPKCS#7で暗号化されたJSONペイロードです。

JSONペイロードの形式：

```json
{
  "oldFPAN": "[0-9]{16,19}",
  "oldExpDate": "MMYY",
  "newFPAN": "[0-9]{16,19}",
  "newExpDate": "MMYY"
}
```

一部の支払いネットワークでは、更新を処理するために古いFPANと有効期限が必要です。

詳細なフロー：

<figure><img src="https://26142420-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OvNtPk6hurTTvkKLzkK%2Fuploads%2FdoeE8wRdNeUnRgzkoOvP%2Freplace-renew.png?alt=media&amp;token=6c6c038f-9e10-48b0-a2f6-95d0ecb83bcb" alt=""><figcaption><p>カードの交換または更新のためのUpdateCardフロー。</p></figcaption></figure>

### 更新時にカードプロファイルを更新する

稀に、エンドユーザーがカードプログラムを変更する（例：クラシックからゴールドへ）ためにカードが更新されることがあります。

この場合、次のを使用してカードプロファイルを更新することもできます `newProductId`。この値は支払いネットワークTSPで構成されたカードプロファイルIDです。

リクエストボディの例：

```json
{
  "issuerCardRefId": "string",
  "fpanDetails": "string (base64)",
  "newProductId": "string"
}
```

### issuerCardRefIdを更新する <a href="#issuercardrefid-update" id="issuercardrefid-update"></a>

`issuerCardRefId` カードを一意に識別します。このプロセス中に次を使用して更新することもできます `newIssuerCardRefId`.

リクエストボディの例：

```json
{
  "issuerCardRefId": "string",
  "fpanDetails": "string (base64)",
  "newProductId": "string",
  "newIssuerCardRefId": "string"
}
```


---

# 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/classic-tokenization/ja/ysuksu/deng-lu-hou/kdoraifusaikuru/kdowomatahasuru.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.
