> 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/kdonomataha.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="/files/7303c16062832af633cbfca9c7150e4178d358cc" 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 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/deng-lu-hou/kdoraifusaikuru/kdonomataha.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.
