1. Home
  2. Docs
  3. Developers Guide
  4. Integration APIs
  5. Bin Check API
  6. getBinInfo

getBinInfo

ParameterDescription
var1An Integer Value. Below values depending on the output type required by merchant
1, if a single bin level information is required. Output would give information on a
single bin only.
2, if a specific feature level information is required. Output would give the bin list.
-3, if all the bins and their information is required
var2Value of var2 would be interpreted based upon the value provided in var1 – If var1 = 1, then var2 = – If var1 = 2, then – var2 = 1 signifies that complete bin list having ATM PIN support is required – var2 = 2 signifies that complete bin list with OTP-on-the-fly support (IVR) is required – If var1 =3, var2 should be empty
var3Start Index (Default value will be set as 0)
var4Offset (Default value will be set as 100)
var5 If var1 =1 and var5 = 1, then 2 extra parameters will be sent in response:
is_zero_redirect_supported
is_si_supported
If var1=2 or 3 and var5 = 0 or 1, these 2 params would not be reflected
*Note: var2 still needs to be passed according to var1 value

Case 1

Example Input/output for getBinInfo API:
Case 1:
Input Parameter:
● var1 = 1
● var2 = 512345 (card bin)

Sample Output:
Please check whether the value of is_otp_on_the_fly is 1 or not. Only if it 1, then the bin number is
supported for this feature. If not, the bin number is not supported

Array
(
 [status] => 1
 [data] => Array
 (
 [bins_data] => Array
 (
 [issuing_bank] => HDFC
 [bin] => 512345
 [category] => creditcard
 [card_type] => MAST
 [is_domestic] => 1
 [is_atmpin_card] => 1
 [is_otp_on_the_fly] => 1
 )
 )
) 

Case 2:


Input Parameter
● var 1 = 2
● var 2 = 2 (otp on the fly support)
Sample Output
Please check whether the value of is_otp_on_the_fly is 1 or not. Only if it 1, then the bin number is
supported for this feature. If not, the bin number is not supported.

Array
(
 [status] => 1
 [data] => Array
 (
 [total_count] => 6
 [last] => 1
 [bins_data] => Array
 (
 [123452] => Array
 (
 [issuing_bank] => ICICI
 [bin] => 123452 
 [category] => UNKNOWN
 [card_type] => UNKNOWN
 [is_domestic] => 0
 )
 [123453] => Array
 (
 [issuing_bank] => ICICI
 [bin] => 123453
 [category] => UNKNOWN
 [card_type] => UNKNOWN
 [is_domestic] => 0
 )
 [123455] => Array
 (
 [issuing_bank] => HDFC
 [bin] => 123455
 [category] => UNKNOWN
 [card_type] => UNKNOWN
 [is_domestic] => 0
 )
....................n no of entries.........
 )
 [nextStart] => 1000
 )
)