> 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/use-cases/post-enrolment/token-life-cycle-management/renew-tokens-from-the-tsp.md).

# Renew tokens from the TSP

Token renewal applies only to existing tokens. These tokens are already provisioned and activated in a digital wallet application.

Agree with your payment network on the **LCM** policy to apply to issued tokens. Based on that policy, the **TSP** issues tokens with an appropriate expiration date.

When a token expires, the payment network **TSP** can reprovision it. It provisions a new token with a new expiration date.

You can opt in to receive a callback when the renewal completes (or fails).

### Flow

This diagram shows the token renewal flow. It also shows the callback used to confirm the result.

<figure><img src="https://2421315942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OvNtPk6hurTTvkKLzkK%2Fuploads%2FBgNeZLBx0aqizym01YnH%2FToken-renewal.png?alt=media&amp;token=6ba42d5b-e73a-4033-9411-8d763cff0f54" alt="Payment network TSP token renewal flow."><figcaption><p>Token renewal initiated by the payment network TSP.</p></figcaption></figure>

### Handle the callback

When the renewal completes (or fails), you receive `notifyVirtualCardChange`.

See [`notifyVirtualCardChange`](https://thales-dis-dbp.stoplight.io/docs/digital-payment/b3A6MjU4Nzg1MjE-notify-issuer-about-any-virtual-card-token-change).

**notifyVirtualCardChange** parameters:

| Parameter          | Description                                                              |
| ------------------ | ------------------------------------------------------------------------ |
| `x-correlation-id` | Correlates this callback with the related token renewal operation.       |
| `virtualCardId`    | Identifies the updated token.                                            |
| `action`           | Specifies the action performed. For token renewal, the value is `RENEW`. |

{% hint style="info" %}
Handle `notifyVirtualCardChange` idempotently. Callbacks can be duplicated or delayed.

This currently applies to:

* Mastercard
* Visa
  {% endhint %}

### Related documentation

* [Update token state from issuer backend](/classic-tokenization/use-cases/post-enrolment/token-life-cycle-management/update-token-state-from-issuer-backend.md)
* [Update token state from wallet provider](/classic-tokenization/use-cases/post-enrolment/token-life-cycle-management/update-token-state-from-wallet-provider.md)


---

# 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/use-cases/post-enrolment/token-life-cycle-management/renew-tokens-from-the-tsp.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.
