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

# Change the email on a saved card

> Change the email address linked to a saved card.

> [card] [Update tokenized card data](https://developer.nomba.com/nomba-api-reference/online-checkout/update-tokenized-card-data.md)

Change the email address linked to a saved card, for example when a customer changes their email in your app. This endpoint changes only the email. It can't change the card itself.

After this call, use the new email address when you charge the card. Charges with the old address are rejected.

# `POST /v1/checkout/tokenized-card-data`

#### Headers

**Authorization** `string` *required*

`Bearer <access_token>`

**accountId** `string` *required*

Your account ID

#### Request body

**tokenKey** `string` *required*

The card token

**currentEmailAddress** `string` *required*

The email address currently linked to the card

**newEmailAddress** `string` *required*

The email address to link to the card instead

#### Response body

**data** `object` *required*

**object**

**status** `boolean` *required*

`true` when the email was changed. `false` if `currentEmailAddress` isn't the email linked to the card.

**message** `string` *required*

Response message

**tokenizedCardData** `object`

The saved card, with its new email

```bash Request theme={null}
curl --request POST \
  --url https://api.nomba.com/v1/checkout/tokenized-card-data \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountId>' \
  --data '{
    "tokenKey": "1321595684",
    "currentEmailAddress": "ada@example.com",
    "newEmailAddress": "ada.obi@example.com"
  }'
```

```json Success response (200) theme={null}
{
  "code": "00",
  "description": "Success",
  "data": {
    "status": true,
    "message": "Email address updated successfully",
    "tokenizedCardData": {
      "tokenKey": "1321595684",
      "cardType": "Verve",
      "tokenExpiryDate": "3108",
      "cardPan": "1913",
      "customerEmail": "ada.obi@example.com"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.