The Authorize.Net Developer Blog

Posts from Authorize.Net employees, community members and experts about integrating with the Authorize.Net Payment Gateway: sample code, tutorials, and problem-solving techniques, just to name a few.

New Support for Issuer Identification Number for Customer Profiles

by Administrator Administrator on ‎07-11-2017 08:15 AM (37,669 Views)

Developers can now obtain the Issuer Identification Number for customer profiles by including and setting true the new input parameter includeUserInfo.   Then when using "GetCustomerProfile", "GetCustomerPaymentProfile" these API methods will return the Issuer Identification Number (also known as the IIN or BIN). 

 

Sample Request

 

 

<getCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name***</name>
    <transactionKey>***</transactionKey>
  </merchantAuthentication>
  <customerProfileId>47997</customerProfileId>
  <customerPaymentProfileId>40097210</customerPaymentProfileId>
  <includeIssuerInfo>true</includeIssuerInfo>
</getCustomerPaymentProfileRequest>

 

And Response

 

<getCustomerPaymentProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
    <messages>
        <resultCode>Ok</resultCode>
        <message>
            <code>I00001</code>
            <text>Successful.</text>
        </message>
    </messages>
    <paymentProfile>
        <billTo>
            <firstName>John</firstName>
            <lastName>Doe</lastName>
            <address>16</address>
            <city>Bellevue</city>
            <state>WA</state>
            <zip>98004</zip>
            <country>USA</country>
            <phoneNumber>000-000-0000</phoneNumber>
        </billTo>
        <customerProfileId>47997</customerProfileId>
        <customerPaymentProfileId>40097210</customerPaymentProfileId>
        <payment>
            <creditCard>
                <cardNumber>XXXX1111</cardNumber>
                <expirationDate>XXXX</expirationDate>
                <cardType>Visa</cardType>
                <issuerNumber>411111</issuerNumber>
            </creditCard>
        </payment>
    </paymentProfile>
</getCustomerPaymentProfileResponse>

This new parameter will be added to the api reference later this month.

Comments
by
‎07-27-2017 04:22 AM - edited ‎07-27-2017 04:24 AM

Cool. Would you like to be able to see the details of an IIN? If so, we have implemented a web interface and API which returns HTML results as well as JSON, something like below, for more than 300,000 IINs.

{  
   "valid":true,
   "length":16,
   "scheme":"visa",
   "type":"debit",
   "brand":"Visa",
   "prepaid":false,
   "country":"US",
   "bank":"Key Bank"
}

 

by MartaB
on ‎11-29-2017 02:21 AM

Hello!

I have a question how to actually get details of an IIN? Is there an API method or any new properties in existing APIs? Can't find anything about it in the documentation. In particular I need to determine whether the card is credit or debit.

Thanks in advance for the answer!