v2025-01-01
- Overview
- Orders
- Payments
- Payment Links
- Refunds
- Customers
- Easy-Split
- Payment Methods
- Offers
- Token Vault
- Disputes
- Settlements
- softPOS
- Simulation
- Subscription
- VBA
- Cross Border
- Utilities
Other Versions
- v2023-08-01
- End Points
- Release Notes
- Orders
- Payments
- Payment Links
- Refunds
- Customers
- Easy-Split
- Eligibility
- Offers
- Dispute
- Settlements
- Partners
- Token Vault
- softPOS
- Simulation
- Subscription
- VBA
- Cross Border
- v2022-01-01
API to get all the payment method details available for subscription payments.
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"
}
]
}
}
]
Authorizations
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret in the Merchant Dashboard.
Headers
API version to be used. Format is in YYYY-MM-DD
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.
Body
Necessary parameters to fetch eligible payment methods.
A unique ID passed by merchant for identifying the subscription
Response
Subscrition eligibility API response
List of eligibile payment methods for the subscription.
Eligibile payment method object
Indicates whether the payment method is eligible.
Type of entity (e.g., "payment_methods").
Payment method (e.g., enach, pnach, upi, card).
List of account types associated with the payment method. (e.g. SAVINGS or CURRENT)
List of the most frequently used banks.
Bank details object
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.
Bank details object
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?
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"
}
]
}
}
]