Check Eligibility
This API will check whether the card bin provided supports direct OTP flow.
Note 1:
This API is the same as the Card Info API, except that this API does only one eligibility check.
Note 2:
See the Check Eligibility page in the API Reference section for an official description of this API.
Request
Method | URL |
---|---|
GET | https://api.juspay.in/cardbins/:card_bin |
⭣
The request for the Check Eligibility API consists of one Path parameter: card_bin, and two Query parameters: merchant_id, and options.check_direct_otp_support.
Type | Params | Values | Description | |
---|---|---|---|---|
PATH | * | card_bin | String | First 6 digits of the card number |
QUERY | * | merchant_id | String | Merchant ID which represents the merchant storing the card |
QUERY | * | 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
Example
curl -X GET https://api.juspay.in/cardbins/524368?merchant_id=:merchant_id&options.check_direct_otp_support=true
Response
⭣
The response for the Check Eligibility API consists of the following parameters:
Parameter | Type | Description |
---|---|---|
id | String | ID code for the card |
object | String | Must be "cardbin" |
brand | String | Brand of card (MASTERCARD, VISA, etc.) |
bank | String | Code for bank that issued the card |
country | String | Country where card originated |
type | String | CREDIT or DEBIT |
direct_otp_support | Boolean | Verification on card eligibility check for OTP payments (true/false) |
Example
{
"id": "524368",
"object": "cardbin",
"brand": "Master Card",
"bank": "HDFC Bank",
"country":"India",
"type": "CREDIT",
"direct_otp_support": true
}
{
"status": "invalid_request_error",
"error_code": "invalid"
}
{
"status": "error",
"error_code": "access_denied",
"error_message": "Invalid Authentication"
}
Updated about 1 year ago