get https://api.juspay.in/cardbins/
Get Card details using card bin. By using Query parameters, you can also check if a card is eligible for ATM PIN, Mandate or direct OTP payments.
The response for the Card Info API is the Card (info) Parameters.
(click to view)
(click to view)
Field | Type | Description |
---|---|---|
id | String | ID code for the card (depends on object selection). |
object | String | Object is usually set to cardbin (first 6 digits of the card number). Could also be card_isin, card_reference, etc. |
brand | String | Brand of card (MASTERCARD, VISA, etc.) This can be inferred from card. |
bank | String | Code for bank that issued the card (not always available) |
juspay_bank_code | String | Code for bank generated by Juspay |
country | String | Country where card originated (not always available) |
type | String | Indicates if the card is either CREDIT or DEBIT. This can be inferred from card (but not for all cards). |
card_sub_type | String | Type of CREDIT or DEBIT card Example: "REGALIA" |
expired | Boolean | Indicates whether the stored card is expired or not (not in main document, but should be included). |
direct_otp_support | Boolean | Indicates if the card is eligible for OTP payments. |
atm_pin_auth_support | Boolean | Indicates if the card is eligible for ATM PIN payments. |
mandate_support | Boolean | Indicates if the card is eligible for mandates. |
⭣The request for the Card Info API consists of one Path parameter: card_bins, and four optional Query parameters: merchant_id, and three Boolean (true/false) variables for eligibility checks.
(click to view)
The request for the Card Info API consists of one Path parameter: card_bins, and four optional Query parameters: merchant_id, and three Boolean (true/false) variables for eligibility checks.
(click to view)
(click to view)
Path Parameter:
Field | Type | Description | |
---|---|---|---|
cardbins | * | String | First 6 digits of the card number. |
Query Parameters:
Field | Type | Description |
---|---|---|
merchant_id | String | Merchant ID which represents the merchant storing the card |
options.check_atm_pin_auth_support | Boolean | This is a boolean variable and accepts true/false . If set to true , then the card eligibility check for ATM PIN payments will be done |
options.check_mandate_support | Boolean | This is a boolean variable and accepts true/false . If set to true , then the card eligibility check for mandates will be done. |
options.check_direct_otp_support | Boolean | This is a boolean variable and accepts true/false . If set to true , then the card eligibility check for OTP payments will be done. |
* = Required