Simulates user behavior on a card token during its lifecycle. Use it to test your handling of user behavior without a real device.
Update Simulated Card Token
/api/simulator/card-tokens/{cardTokenId}/update Request
Path Parameters
cardTokenIdstringrequiredCard token identifier.
Body application/json
typestringrequiredAllowed values:removed-from-devicere-addedDevice event to simulate. Matches the event type sent in the Card Token Updated webhook.
Response
Successful operation.
Body application/json
idstringrequiredCard token identifier. Stable from the token's provisioning request onwards.
cardobjectrequiredThe card the token is linked to. When the card is reissued, the token moves to the new card.
idstringCard identifier. Omitted for a
failedtoken declined before the card was identified.
requestorstringrequiredThe wallet or merchant that requested the token.
This set is non-exhaustive and may grow over time, so consumers should tolerate unrecognized values. The current options are
apple-pay,google-pay,samsung-pay,merchant, andother.statusstringrequiredAllowed values:creatingawaiting-approvalawaiting-verificationactivesuspendedcanceledfailedapprovingsuspendingunsuspendingcancelingToken status.
A token is
awaiting-approvalwhen the wallet tells the cardholder to contact the issuer to finish adding the card. Verify the cardholder, then call the Approve Card Token endpoint.A token is
failedwhen adding the card to the wallet was declined.deviceStatusstringAllowed values:presentremovedWhether the card is still on the device, as last reported to Immersve. Omitted for merchant tokens and canceled tokens.
tokenSuffixstringLast four digits of the token's device primary account number (DPAN). Omitted until the card network reports it.
descriptionstringHuman-readable label for the token, such as the device name or the merchant description.
provisioningRequestedAtstring<date-time>requiredTime the token was first requested.
provisioningobjectHow the token was provisioned, from its latest provisioning request. Omitted when none is on record.
The values below are non-exhaustive, so consumers should tolerate unrecognized values. A value Immersve has no name for yet is reported as
other.decisionstringrequiredFinal decision applied to the provisioning request. The current options are
approved,verification-required(the cardholder must verify before the token can be used), anddeclined.activationMethodsobject[]requiredWays offered to the cardholder to verify. Empty when none were offered.
Items
typestringrequiredVerification method. The current options are
sms,email,cardholder-calls-automated-line,cardholder-calls-agent,issuer-calls-cardholder,website,mobile-app,push-notification, and3ds.
walletRecommendationobjectThe wallet's own risk assessment of the request. Omitted when the wallet sent none.
decisionstringrequiredDecision the wallet recommended for the provisioning request, which can differ from
decision. Takes the same values.reasonsstring[]requiredReasons the wallet gave, passed through as sent rather than from a fixed list. For example,
account-card-too-new,outside-home-territory, orlong-account-tenure.
deviceFormFactorstringType of device the token was provisioned to. The current options are
phone,watch,tablet, andcomputer. Omitted when the wallet did not report it, as for merchant tokens.
Request fields are invalid.
Body application/json
statusCodeintegerrequiredstatusNamestringrequirederrorCodestringrequirederrorsobject[]Items
messagestringpathstringThe location of the invalid path param, query param or payload attribute.
No Authorization to access resource.
Body application/json
statusCodeintegerrequiredstatusNamestringrequirederrorCodestringrequiredreasonstring