Get Details
Environment
| Environment | HTTP Method | API |
| Sandbox | GET | https://api-testing.phonepe.com/apis/b2b-pg/enach/ui/v1/setup/details |
| Production | GET | https://api.phonepe.com/apis/pg/enach/ui/v1/setup/details |
Request
| Header Name | Header Value | Description |
| Content-Type | application/json | |
| Authorization | O-Bearer <access_token> | Pass access_token received in Authorization call |
Response
Sample Response for single account & multi-choice authMode
{
"merchantDetails": {
"merchantId": "TXMT8788",
"merchantName": "TXMT"
},
"cancelRedirectUrl": "http://merchant-defined-cancel-redirect-url",
"mandateDetails": {
"maxAmount": 20000000,
"startDate": 1756103400000, // epoch in milliseconds
"endDate": 1787639400000, // epoch in milliseconds
"frequency": "ON_DEMAND"
},
"account": [
{
"accountNumber": "**********4872",
"ifsc": "HDFC0101",
"accountType": "SAVINGS",
"bankCustomerName": "Davneet",
"bankName": "HDFC Bank",
"bankLogoUrl": "http:\\hdfc_logo.png",
"accountSelectionId": "..."
}
],
"authMode": [
"NET_BANKING",
"DEBIT_CARD"
]
}Sample Response for multi-choice account & single authMode
{
"merchantDetails": {...},
"cancelRedirectUrl": "...",
"mandateDetails": {...},
"account": [
{
"accountNumber": "**********4872",
"ifsc": "HDFC0101",
"accountType": "SAVINGS",
"bankCustomerName": "Davneet",
"bankName": "HDFC",
"bankLogoUrl": "http:\\hdfc_logo.png",
"accountSelectionId": "123456"
},
{
"accountNumber": "**********4873",
"ifsc": "ICIC0101",
"accountType": "CURRENT",
"bankCustomerName": "Davneet",
"bankName": "ICICI Bank",
"bankLogoUrl": "http:\\icic_logo.png",
"accountSelectionId": "987654"
}
],
"authMode": [
"NET_BANKING"
]
}Sample Response for no account (to be added by user on landing page)
{
"merchantDetails": {...},
"cancelRedirectUrl": "...",
"mandateDetails": {...},
"account": [
// empty list
],
"authMode": [
"NET_BANKING"
]
}