> ## Documentation Index
> Fetch the complete documentation index at: https://nextgen-docs.enfuce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Token Lifecycle Management via Token API Endpoints

In addition to the card-driven token lifecycle, we provide APIs that help you manage the lifecycle of individual tokens. This enables you to control each token lifecycle, without impacting the associated card or other tokens linked to the card.

<Info>For more information on the card-driven token lifecycle, see [Card-Driven Token Lifecycle](./token-lifecycle-management-overview#card-driven-token-behaviour-and-lifecycle).</Info>

## Lifecycle Management

The lifecycle of a token is managed by the **Token Reference ID**(`id`) — this is a unique identifier that Mastercard Digital Enablement Service (MDES) or Visa Token Service (VTS) assigns to each token provisioned to a digital wallet. This ensures that any operation performed through the API endpoints impacts the specific token, and the changes are displayed in the digital wallet in real-time.

<Note>To retrieve a list of tokens associated with a card by the card ID, send a request to the `GET List Tokens for a Card`. For more information, see [List Tokens for Card](https://nextgen-docs.enfuce.com/api/wallet/token/get-tokens-by-card-id).</Note>

### Supported Actions via API Endpoints

<AccordionGroup>
  <Accordion title="Generate Token">
    <div style={{marginLeft: '25px'}}>
      <p>A token is generated when a card is provisioned to a digital wallet. A card can be added to a digital wallets in either of the following ways:</p>

      <ul>
        <li>Push Provisioning: A cardholder logs in to the issuer-provided channel and selects their card for addition to appropriate digital wallets.</li>
        <li>Pull Provisioning: A cardholder logs into a digital wallet and adds their card.</li>
      </ul>

      <p>When you send a request to this endpoint, the activation data is encrypted and securely transmitted to the relevant card Scheme token service (MDES/VTS). The Scheme generates a network token that replaces the original card number (FPAN).</p>

      <p>**Related API Endpoint**: [Generate Token](https://nextgen-docs.enfuce.com/api/wallet/token/activate-token-by-card-id)</p>
    </div>
  </Accordion>

  <Accordion title="Activate Token">
    <div style={{marginLeft: '25px'}}>
      If a token is in an inactive state, you can activate the token via the [Activate Token Endpoint](https://nextgen-docs.enfuce.com/api/wallet/token/activate-token-by-token-id).
    </div>
  </Accordion>

  <Accordion title="Suspend Token">
    <div style={{marginLeft: '25px'}}>
      If you want to suspend a token temporarily, especially when either the device is lost or during any interim risk mitigation, send a request to the [Suspend Token Endpoint](https://nextgen-docs.enfuce.com/api/wallet/token/suspend-token).

      <Note>When a token is suspended:<ul><li>It only prevents the token usage for a short while.</li><li>The token is still provisioned to the wallet.</li><li>You can unsuspend/reactivate the token later.</li></ul></Note>
    </div>
  </Accordion>

  <Accordion title="Unsuspend Token">
    <div style={{marginLeft: '25px'}}>
      To reactivate a suspended token, send a request to the [Unsuspend Token Endpoint](https://nextgen-docs.enfuce.com/api/wallet/token/unsuspend-token). This reactivates the token, without the need of reprovisioning. You can reactivate the token when either you have recovered the lost device or when the interim risk is resolved.
    </div>
  </Accordion>

  <Accordion title="Deactivate Token">
    <div style={{marginLeft: '25px'}}>
      If you to permanently disable a token, send a request to the [Deactivate Token Endpoint](https://nextgen-docs.enfuce.com/api/wallet/token/deactivate-token).

      <Note>When a token is deactivated:<ul><li>It cannot be returned to the active state.</li> <li>A new provisioning request is required to generate a new token.</li><li>Deactivate a token when the device is stolen/the device is compromised due to fraud.</li></ul></Note>
    </div>
  </Accordion>
</AccordionGroup>

<Info>Additional operations that you can perform via the Token API are:<ul><li>[Retrieve List of Tokens for a Card](https://nextgen-docs.enfuce.com/api/wallet/token/get-tokens-by-card-id)</li><li>[Get Token by Token ID](https://nextgen-docs.enfuce.com/api/wallet/token/get-tokens-by-token-id)</li></ul></Info>
