# TokenResponse

The object passed to `paymentAction(_:didSucceedWith:)` after the buyer successfully submits the payment sheet. Use `response.id` to create a Payment Instrument via the Finix API.

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


```swift
TokenResponse {
    id: String           // e.g. "TKeD6uad8xZc52Rqg1VhvSBw"
    fingerprint: String  // e.g. "FPRrcobjtdU98gr4sjiqYR1Qg"
    instrument: Int      // instrument type enum
    created: String      // e.g. "2025-06-10T00:31:53.54Z"
    expires: String      // 30 minutes after creation
    isoCurrency: Int     // currency enum
}
```

| Field | Description |
|  --- | --- |
| `id` | Token ID — pass this to the Finix API to create a Payment Instrument. |
| `fingerprint` | Unique fingerprint for the underlying payment instrument. |
| `instrument` | Instrument type: payment card or bank account. |
| `expires` | Timestamp when the token expires (30 minutes after creation). |
| `isoCurrency` | Currency of the token. |
| `created` | Timestamp when the token was created. |


Pass `response.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.