# Token Cryptogram
source: https://developer.mastercard.com/mastercard-send-person-to-person/documentation/field-uris-codes/token-cryptogram/index.md

When the `recipient_account_uri` field in your Payment Transfer API request contains a tokenized PAN (token), you may optionally provide the associated cryptogram information using the `token_cryptogram` fields, for example:
* JSON
* XML

```JSON
"recipient_account_uri": "pan:5432231452673894;exp=2021-02",
"token_cryptogram": {
    "type": "CONTACTLESS_CHIP",
    "value": "jjoutwsdgfdou124354ljlsdhgout968957"
},
```

```XML
<recipient_account_uri>pan:5432231452673894;exp=2021-02</recipient_account_uri>
<token_cryptogram>
    <type>CONTACTLESS_CHIP</type>
    <value>jjoutwsdgfdou124354ljlsdhgout968957</value>
</token_cryptogram>
```

**NOTE:** The `token_cryptogram` fields relate to the Recipient, not the Sender.

This table provides guidance for populating the `token_cryptogram.type` field based on the `token_cryptogram.value`.

|    Cryptogram Type    |                                                            Used When the Cryptogram Value Is...                                                             |
|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| CONTACTLESS_CHIP      | The result of a contactless tap and chip information is read by the terminal.                                                                               |
| CONTACTLESS_MAGSTRIPE | The result of a contactless tap and the magstripe information is read by the terminal and the full track data is included without alteration or truncation. |
| DSRP_UCAF             | The result of an in-app purchase and the chip information is included as a Universal Cardholder Authentication Field (UCAF) value.                          |
| CONTACT_CHIP          | The result of PAN auto-entry via chip.                                                                                                                      |
| DSRP_DPD              | Used to transport the digital payment data for electronic commerce (ecommerce) transactions.                                                                |
| DSRP_CHIP             | The result of PAN/token entry via ecommerce containing a Digital Secure Remote Payments (DSRP) cryptogram.                                                  |

