const response = await fetch('https://service.pcibooking.net/api/payments/iin/full', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({ iin: '41111111' })
});
console.log(await response.json());
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/iin/full',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={'iin': '41111111'}
)
print(response.json())
{
"issuingOrganization": "EXAMPLE BANK",
"type": "CREDIT",
"category": "CLASSIC",
"countryCode": "US",
"bin": "411111",
"brand": "VISA"
}
Additional Functions
BIN Lookup
Look up the card brand, type, category, issuing bank and country from the first 6 to 11 digits of a card number.
POST
/
api
/
payments
/
iin
/
full
const response = await fetch('https://service.pcibooking.net/api/payments/iin/full', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({ iin: '41111111' })
});
console.log(await response.json());
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/iin/full',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={'iin': '41111111'}
)
print(response.json())
{
"issuingOrganization": "EXAMPLE BANK",
"type": "CREDIT",
"category": "CLASSIC",
"countryCode": "US",
"bin": "411111",
"brand": "VISA"
}
Returns what is known about a card from its BIN (also called IIN): the first 6 to 11 digits of the card number. Send more digits for a more precise result.
Each call is billed as a card validation.
To get the same details for a stored card, use Risk Assessment.
Error Responses
| Code | HTTP Status | Condition |
|---|---|---|
| none | 400 | iin is missing or is not 6 to 11 digits. |
| none | 401 | The Authorization header is missing, badly formatted, or the API key is not valid. The response body is empty. See Authentication and Permission Failures. |
| -160 | 404 | No data was found for this BIN. |
Parameters
Authentication
API key only. This endpoint does not accept access tokens or session tokens.Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. The x-pcibooking-api-key header is also accepted. See the Authentication guide.Request Body
const response = await fetch('https://service.pcibooking.net/api/payments/iin/full', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({ iin: '41111111' })
});
console.log(await response.json());
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/iin/full',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={'iin': '41111111'}
)
print(response.json())
Response
| Field | Type | Description |
|---|---|---|
bin | string | The BIN that matched. |
brand | string | Card brand, for example VISA. |
type | string | DEBIT, CREDIT, DEBIT OR CREDIT or CHARGE CARD. |
category | string | Card category, for example BUSINESS, PREPAID or CLASSIC. |
issuingOrganization | string | Name of the issuing bank. |
countryCode | string | Issuing country, as a 2-letter ISO 3166 code. |
{
"issuingOrganization": "EXAMPLE BANK",
"type": "CREDIT",
"category": "CLASSIC",
"countryCode": "US",
"bin": "411111",
"brand": "VISA"
}

