Sending BIN and trailing zeros as pan on General Attributes Inquiry API

teige
Regular Visitor

Sending BIN and trailing zeros as pan on General Attributes Inquiry API

Hi everyone,

 

The post is regarding the General Attributes Inquiry API.

 

I was wondering whether you can send through the six digit BIN with trailing zeros as the PAN - rather than having to send through the entire PAN (e.g. 4199 8400 0000 0000)?

 

The magic numbers in the sandbox are all like this (6 digit BIN and trailing zeros), but it is unclear whether this would be enough to get a response on live.

 

Thanks!

 

 

2 REPLIES 2
API_Products
Visa Developer Support Specialist

Re: Sending BIN and trailing zeros as pan on General Attributes Inquiry API

Hey @teige,

 

primaryAccountNumber is Required and its string length is 13-19. This is the primary account number for which account attributes are being requested.

 

However, the primaryAccountNumber in sandbox and in the Test Data of your project app is limited to what is provided in the Test Data tables and is not integrated to the Visa Network and you cannot test real data in sandbox.

 

The test data for your Visa Developer application is available in the Dashboard under test data in the left navigation, this will ensure that you are using valid data that has been provisioned for specific scenarios. You will basically have a table per API that is split into the Request and Response sections and the values on the Request section are meant to be populated in the payload with the intention of obtaining results specified in the Response section (refer to screenshot below).

20190905 Test Data.png

 

I also did some internal testing using Soap UI, here's the successful Request and Response using my own project app Test Data. I've included Soap UI screenshots, as well.

 

Soap UI Request:

{
"primaryAccountNumber": "4815070000000000"
}

 

Soap UI JSON Response:

{
"status": {
"statusCode": "CDI000",
"statusDescription": "Success"
},
"cardProductId": "F",
"cardProductName": "Visa Classic",
"cardProductSubtypeCode": "",
"cardProductSubtypeDescription": "",
"cardTypeCode": "C",
"cardSubtypeCode": "",
"cardPlatformCode": "CN",
"issuerName": "BANCO AGROMERCANTIL DE GUATEMALA S.A.",
"bin": "481507",
"countryCode": "320"
}

 

20190905 SoapUI PAAI General Inquiry 200OK JSON.png

 

Soap UI Raw Response:

HTTP/1.1 200 OK
Server: nginx
Content-Type: application/json;charset=UTF-8
Content-Length: 332
X-SERVED-BY: l55c016
X-CORRELATION-ID: 1567706479_609_25897027_l55c016_VDP_WS
X-APP-STATUS: 200
X-Backside-Transport: OK OK,OK OK
Pragma: no-cache
Cache-Control: no-cache, no-store, max-age=0 ,no-cache, no-store, must-revalidate ,no-cache, no-store, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT ,-1
Content-Language: en-US
X-Global-Transaction-ID: c2f029f45d714d6f86e09577
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=2592000;includeSubdomains
Content-Security-Policy-Report-Only: default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-Content-Security-Policy-Report-Only: default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-WebKit-CSP-Report-Only: default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
Date: Thu, 05 Sep 2019 18:01:19 GMT
Connection: keep-alive

{"status":{"statusCode":"CDI000","statusDescription":"Success"},"cardProductId":"F","cardProductName":"Visa Classic","cardProductSubtypeCode":"","cardProductSubtypeDescription":"","cardTypeCode":"C","cardSubtypeCode":"","cardPlatformCode":"CN","issuerName":"BANCO AGROMERCANTIL DE GUATEMALA S.A.","bin":"481507","countryCode":"320"}

 

20190905 SoapUI PAAI General Inquiry 200OK Raw.png

 

You can start testing in sandbox following the Working with Visa APIs here - https://developer.visa.com/pages/working-with-visa-apis

 

Authentication > Two-Way SSL - https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl

 

After you submit the Going Live request and once you are in production you will be using valid data and a real life primary account number. Once you're ready after testing in sandbox, you can follow this guide to Go Live into production - https://developer.visa.com/pages/going-live

 

 




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.

teige
Regular Visitor

Re: Sending BIN and trailing zeros as pan on General Attributes Inquiry API

Hi Diana,


Firstly, thank you for your detailed answer it was much appreciated.

 

However, my question is specifically about live. I want to know if you can send JUST the Bin with trailing zeros like 4815 0700 0000 0000 on LIVE and get a valid response (or do you need to send a valid PAN e.g. 4815 0799 1234 1295)

 

Cheers,

Teige