curl --request POST \
--url https://sandbox.cashfree.com/pg/subscriptions/eligibility/payment_methods \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"queries": {
"subscription_id": "test-subscription-1"
},
"filters": {
"payment_methods": []
}
}
'[
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "enach",
"entity_details": {
"account_types": [
"SAVINGS",
"CURRENT"
],
"frequent_bank_details": [
{
"bank_id": "SBIN",
"bank_name": "STATE BANK OF INDIA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "BARB",
"bank_name": "BANK OF BARODA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "ICIC",
"bank_name": "ICICI BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "HDFC",
"bank_name": "HDFC BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
}
],
"all_bank_details": [
{
"bank_id": "SBIN",
"bank_name": "STATE BANK OF INDIA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "BARB",
"bank_name": "BANK OF BARODA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "ICIC",
"bank_name": "ICICI BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "HDFC",
"bank_name": "HDFC BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "UTKS",
"bank_name": "UTKARSH SMALL FINANCE BANK LTD",
"account_auth_modes": [
"DEBIT_CARD"
]
},
{
"bank_id": "YESB",
"bank_name": "YES BANK",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
}
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "upi",
"entity_details": {
"available_handles": [
{
"handle": "okaxis",
"application": "Google Pay"
},
{
"handle": "ybl",
"application": "PhonePe"
}
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "card",
"entity_details": {
"allowed_card_types": [
"CREDIT_CARD",
"DEBIT_CARD"
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "pnach",
"entity_details": {
"account_types": [
"SAVINGS",
"CURRENT"
],
"all_bank_details": [
{
"bank_id": "SRIX",
"bank_name": "SRI SATYA SAI NAGRIK SAHAKARI BANK MYDT, BHOPAL"
},
{
"bank_id": "ISUX",
"bank_name": "THE ISLAMPUR URBAN CO OPERATIVE BANK LIMITED"
},
{
"bank_id": "ZCBL",
"bank_name": "THE ZOROASTRIAN CO OP BANK LTD"
}
]
}
}
]Use this API to check if a payment method is enabled for your account.
curl --request POST \
--url https://sandbox.cashfree.com/pg/subscriptions/eligibility/payment_methods \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"queries": {
"subscription_id": "test-subscription-1"
},
"filters": {
"payment_methods": []
}
}
'[
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "enach",
"entity_details": {
"account_types": [
"SAVINGS",
"CURRENT"
],
"frequent_bank_details": [
{
"bank_id": "SBIN",
"bank_name": "STATE BANK OF INDIA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "BARB",
"bank_name": "BANK OF BARODA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "ICIC",
"bank_name": "ICICI BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "HDFC",
"bank_name": "HDFC BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
}
],
"all_bank_details": [
{
"bank_id": "SBIN",
"bank_name": "STATE BANK OF INDIA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "BARB",
"bank_name": "BANK OF BARODA",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING"
]
},
{
"bank_id": "ICIC",
"bank_name": "ICICI BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "HDFC",
"bank_name": "HDFC BANK LTD",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
},
{
"bank_id": "UTKS",
"bank_name": "UTKARSH SMALL FINANCE BANK LTD",
"account_auth_modes": [
"DEBIT_CARD"
]
},
{
"bank_id": "YESB",
"bank_name": "YES BANK",
"account_auth_modes": [
"DEBIT_CARD",
"NET_BANKING",
"AADHAAR"
]
}
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "upi",
"entity_details": {
"available_handles": [
{
"handle": "okaxis",
"application": "Google Pay"
},
{
"handle": "ybl",
"application": "PhonePe"
}
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "card",
"entity_details": {
"allowed_card_types": [
"CREDIT_CARD",
"DEBIT_CARD"
]
}
},
{
"eligibility": true,
"entity_type": "payment_methods",
"entity_value": "pnach",
"entity_details": {
"account_types": [
"SAVINGS",
"CURRENT"
],
"all_bank_details": [
{
"bank_id": "SRIX",
"bank_name": "SRI SATYA SAI NAGRIK SAHAKARI BANK MYDT, BHOPAL"
},
{
"bank_id": "ISUX",
"bank_name": "THE ISLAMPUR URBAN CO OPERATIVE BANK LIMITED"
},
{
"bank_id": "ZCBL",
"bank_name": "THE ZOROASTRIAN CO OP BANK LTD"
}
]
}
}
]Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
API version to be used. Format is in YYYY-MM-DD API version to be used
Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
Request body to fetch subscription eligibile payment method details.
Request body to fetch subscription eligibile payment method details.
Subscrition eligibility API 200 response
Subscrition eligibility API response
List of eligibile payment methods for the subscription.
Show child attributes
Indicates whether the payment method is eligible.
Type of entity (e.g., "payment_methods").
Payment method (e.g., enach, pnach, upi, card).
Show child attributes
List of account types associated with the payment method. (e.g. SAVINGS or CURRENT)
List of the most frequently used banks.
Show child attributes
ID of the bank.
Name of the bank.
List of account authentication modes supported by the bank. (e.g. DEBIT_CARD, NET_BANKING, AADHAAR)
Details about all banks associated with the payment method.
Show child attributes
List of allowed card types. (e.g. DEBIT_CARD, CREDIT_CARD)
List of allowed card types associated with the payment method.
Was this page helpful?