Tokens Preview feature
An issuing token object is created when an issued card is added to a digital wallet. As a card issuer, you can view and manage these tokens through Stripe.
The Token object Preview feature
Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- cardstringExpandable
Card associated with this token.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- device_
fingerprintnullable string The hashed ID derived from the device ID from the card network associated with the token.
- last4nullable string
The last four digits of the token.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - networkenum
The token service provider / card network associated with the token.
Possible enum valuesmastercard
MasterCard token service provider.
visa
Visa token service provider.
- network_
datanullable objectPreview featureExpandable Additional details obtained from the network about the token, primarily related to the token creation process. For security reasons, this is only available to view in the first 24 hours after token creation, based on the
created
value, and will be omitted unless you explicitly request it with theexpand
parameter. Additionally, it’s only available via the “Retrieve a token” endpoint and “Update a token status” endpoint. - network_
updated_ attimestamp Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch.
- statusenum
The usage state of the token.
Possible enum valuesactive
Token is provisioned and usable for payments.
deleted
Terminal state. Token can no longer be used.
requested
Token has been requested to be provisioned, but has not completed the activation process.
suspended
Token temporarily cannot be used for payments.
- wallet_
providernullable enum The digital wallet for this token, if one was used.
Possible enum valuesapple_
pay Apple Pay.
google_
pay Google Pay.
samsung_
pay Samsung Pay.
{ "id": "intok_1MzDbE2eZvKYlo2C26a98MDg", "object": "issuing.token", "card": "ic_1MytUz2eZvKYlo2CZCn5fuvZ", "created": 1682059060, "network_updated_at": 1682059060, "livemode": false, "status": "active", "last4": "2424", "token_service_provider": "visa", "wallet_provider": "apple_pay", "device_fingerprint": "intd_1MzDbE2eZvKYcp3095svdf"}
Attempts to update the specified Issuing Token
object to the status specified.
Parameters
- statusenumRequired
Specifies which status the token should be updated to.
Possible enum valuesactive
Token is provisioned and usable for payments.
deleted
Terminal state. Token can no longer be used.
suspended
Token temporarily cannot be used for payments.
Returns
Returns an updated Issuing Token
object if a valid identifier was provided.
{ "id": "intok_1MzDbE2eZvKYlo2C26a98MDg", "object": "issuing.token", "card": "ic_1MytUz2eZvKYlo2CZCn5fuvZ", "created": 1682059060, "network_updated_at": 1682059060, "livemode": false, "status": "suspended", "last4": "2424", "token_service_provider": "visa", "wallet_provider": "apple_pay", "device_fingerprint": "intd_1MzDbE2eZvKYcp3095svdf"}
Retrieves an Issuing Token
object.
Parameters
No parameters.
Returns
Returns an Issuing Token
object if a valid identifier was provided.
{ "id": "intok_1MzDbE2eZvKYlo2C26a98MDg", "object": "issuing.token", "card": "ic_1MytUz2eZvKYlo2CZCn5fuvZ", "created": 1682059060, "network_updated_at": 1682059060, "livemode": false, "status": "active", "last4": "2424", "token_service_provider": "visa", "wallet_provider": "apple_pay", "device_fingerprint": "intd_1MzDbE2eZvKYcp3095svdf"}
Lists all Issuing Token
objects for a given card.
Parameters
- cardstringRequired
The Issuing card identifier to list tokens for.
- createdobject
Only return Issuing tokens that were created during the given date interval.
- statusenum
Select Issuing tokens with the given status.
Possible enum valuesactive
Token is provisioned and usable for payments.
deleted
Terminal state. Token can no longer be used.
requested
Token has been requested to be provisioned, but has not completed the activation process.
suspended
Token temporarily cannot be used for payments.
More parameters
- ending_
beforestring - limitinteger
- starting_
afterstring
Returns
A dictionary with a data
property that contains an array of up to limit
tokens, starting after token starting_
. Each entry in the array is a separate Issuing Token
object. If no more tokens are available, the resulting array will be empty.
{ "object": "list", "url": "/v1/issuing/tokens", "has_more": false, "data": [ { "id": "intok_1MzDbE2eZvKYlo2C26a98MDg", "object": "issuing.token", "card": "ic_1MytUz2eZvKYlo2CZCn5fuvZ", "created": 1682059060, "network_updated_at": 1682059060, "livemode": false, "status": "suspended", "last4": "2424", "token_service_provider": "visa", "wallet_provider": "apple_pay", "device_fingerprint": "intd_1MzDbE2eZvKYcp3095svdf" } ],}