New Support for Issuer Identification Number for Customer Profiles

by Administrator Administrator on ‎07-11-2017 08:15 AM (259 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.