Token Expiry Date

IK
New Contributor

Token Expiry Date

Hi. Is there an API that would return a card's token expiry date based on the PAN or token?

5 REPLIES 5
SyedSa
Community Moderator

Re: Token Expiry Date

Hi @IKThank you for reaching out. An agent will get back to you soon. In the meantime, if any community member has information that may be helpful, please reply to this thread.

API_Products
Visa Developer Support Specialist

Re: Token Expiry Date

Hey @IK,

 

Visa Token Service works both tokenized and non-tokenized PANs. It supports the following Lifecycle operations:

VTS lifecycle.png 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

IK
New Contributor

Re: Token Expiry Date

Thanks for the reply, Tee. I don't believe this is what I'm looking for, however.

 

Do you or anyone else know if there is an API that would give me the card expiry date in the response if I send in the PAN or Token in the request? 

API_Products
Visa Developer Support Specialist

Re: Token Expiry Date

Hey @IK,

 

The Visa Developer Platform offers a range of APIs for various purposes, including payment processing, data security, and fraud prevention. However, due to the stringent security and privacy regulations surrounding sensitive cardholder information, Visa does not typically provide APIs that would directly return card expiry dates when you send in a PAN (Primary Account Number) or token.

 

If you are looking for an API that involves handling sensitive card information, you will need to follow strict security guidelines and possibly undergo a compliance review to ensure that you meet the necessary standards, such as PCI DSS (Payment Card Industry Data Security Standard).

 

Possible Solutions on Visa Developer Platform:
1. Visa Token Service API: This API provides tokenization services, which can replace sensitive card information with a token. While it might not directly return the card expiry date, it can be part of a broader solution for secure transactions.

2. Visa Card Eligibility Service API: This API allows you to verify card eligibility for various services. It does not return card expiry dates but may help in other card validation processes.

 

Steps to Explore Visa APIs:
1. Sign Up and Authenticate: Start by signing up on the [Visa Developer Platform](https://developer.visa.com/), and create a project to get your credentials (API key and secret).
2. Browse API Catalog: Explore the API catalog to find APIs that meet your needs. Check the documentation for each API to understand the capabilities and limitations.

3. Contact Visa Support: If you have specific requirements, consider contacting Visa Developer Support to inquire about possible solutions tailored to your needs.

 

Example of How to Use Visa Token Service API:

 

Request:
```http
POST /vctc/customertoken/v1/consumer-tokens
Host: sandbox.api.visa.com
Authorization: Basic your_base64_encoded_credentials
Content-Type: application/json

{
"primaryAccountNumber": "4111111111111111",
"cardExpiryDate": "2023-12"
}
```

#### Response:
```json
{
"token": "your_generated_token",
"tokenExpiryDate": "2024-12"
}
```

 

Important Notes:
1. Compliance: Ensure your organization is PCI DSS compliant.
2. Authorization: Obtain proper authorization from cardholders.
3. Security: Always encrypt sensitive data and use secure channels for communication.

 

Conclusion:
Visa Developer Platform APIs are designed with security and compliance in mind, and typically do not expose sensitive card information directly. For specific needs, including accessing card expiry dates, work with Visa support and ensure you adhere to all legal and security requirements. Visit the [Visa Developer Platform](https://developer.visa.com/) for more information and support.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

IK
New Contributor

Re: Token Expiry Date

Hi Tee. We do already use quite a few of the APIs Visa provides, including restricted/sensitive ones. However, what I was looking for is an API that would return the expiry date based on PAN/token. I guess there is no such API available at the moment. Thanks for your reply, I appreciate you taking the time. Have a nice day!