# Enable a Card in a Wallet App with Token Activation in the Issuer’s App
source: https://developer.mastercard.com/mastercard-processing-digital/documentation/sandbox-testing/enable-card-in-wallet-app/index.md

## Test case -- Success {#test-case--success}

This test case describes generating a TAV for a specified token stored in the CMS.

**Sample request**

`POST /cards/70001/tavs/searches`

```JSON
{
  "cardExpiryDate": "3004",
  "tokenUniqueReference": "DSHRMC223456789012345678901234567890123456789012"
}
```

**Sample response**

`200`

```JSON
{
  "tokenAuthenticationValue": "eyJ2ZXJzaW9uIjoiMiIsImV4cGlyYXRpb25EYXRlSW5jbHVkZWQiOiJ0cnVlIiwidG9rZW5VbmlxdWVSZWZlcmVuY2VJbmNsdWRlZCI6InRydWUiLCJzaWduYXR1cmVBbGdvcml0aG0iOiJSU0EtU0hBMjU2Iiwic2lnbmF0dXJlIjoib0RLaUx1WnRlc3hCeDFjLzNZSDFMUjBnTzJXVWlyZlNKZjJzKzBKRWZab3dRUmdrU0ozcHBpV2ppR2lUeFFFNSsybmJlRTF2WVF2R1pxS0FsaGdKTDRTdXhkS2ZUUUxWS1Z1VDg1TXBuMm5WL3JMcWU2WlR5ZVpwRWNraklXVzNzTjdoV0R6bFNqWmhMK0RYenBoNEpRRXM2STRVbEdtTDlyOGh0MmtXbExHWWEvZ3MxTE10OHhENXA2QnI0MEo3N2phODVrTXcwSThWTzNXQTUvQkptUlJSLzdqNitvWWUxTy81Z2s1UXFwZEdYWVB3ZlNrMXlvQU5YSUVPYWgvNmJBSVVCSHhiUjEvMklFZXJhL0ZBaGp3KzdrTHVaWUNEcUVIcWdGSmxhbjk2VXdSUzhYSmZWbTUreDRRWlQ5SitGV2MxTk4zL0JHeHFZZkd0R1pGQmN3PT0ifQ=="
}
```

## Test case -- Fail - Invalid Card expiry date {#test-case--fail---invalid-card-expiry-date}

This test case describes an attempt to generate TAV for a specified token stored in the CMS by sending the `cardExpiryDate` in the request with an incorrect value.

For this test case, use the following information in the request:

|      Field       | Available value |
|------------------|-----------------|
| `cardExpiryDate` | 2101            |

**Sample request**

`POST /cards/70001/tavs/searches`

```JSON
{
  "cardExpiryDate": "2110",
  "tokenUniqueReference": "DSHRMC223456789012345678901234567890123456789012"
}
```

**Sample response**

`404`

```JSON
{
  "Errors": {
    "Error": [
      {
        "Source": "MASTERCARD PROCESSING",
        "ReasonCode": "INVALID_EXPIRY_DATE",
        "Description": "Expiry date 2101 does not match for the card contract with id 70001.",
        "Recoverable": false
      }
    ]
  }
}
```

