# TokenizedResponse

The object passed to the `onPositiveClick` callback after the buyer successfully submits the PaymentSheet. Use `token.id` to create a Payment Instrument via the Finix API.

Token Expiration
Tokens expire **30 minutes** after creation. Pass `token.id` to your backend and create a Payment Instrument immediately.


```kotlin
data class TokenizedResponse(
    val id: String?,
    val fingerprint: String?,
    val createdAt: String?,
    val updatedAt: String?,
    val type: String?,
    val expiresAt: String?,
    val currency: String?,
)
```

| Field | Description |
|  --- | --- |
| `id` | Token ID — pass this to the Finix API to create a Payment Instrument. |
| `fingerprint` | Unique fingerprint for the underlying payment instrument. |
| `type` | `"PAYMENT_CARD"` or `"BANK_ACCOUNT"`. |
| `expiresAt` | Timestamp when the token expires (30 minutes after creation). |
| `currency` | `"USD"` for most tokens. |
| `createdAt` | Timestamp when the token was created. |
| `updatedAt` | Timestamp of the last update. |


Pass `token.id` to your backend, then call the Finix API to create a Payment Instrument. Once created, use the Payment Instrument ID for all subsequent Finix API calls.

Use `token.type` to handle card and bank account tokens differently if your integration accepts both.