Skip to main content

Fetch IFSC from UPI ID API

The following document highlights the details of the Fetch IFSC from UPI ID API.

API Description

Objective

The Fetch IFSC from UPI ID API retrieves a user's bank account details such as their Indian Financial System Code (IFSC) from their Unified Payments Interface (UPI) ID, also known as the Virtual Payment Address (VPA).

InputOutput
The user's VPA and name associated with the bank accountThe user's IFSC code, the name associated with the bank account, VPA details, and IFSC details

API URL

https://ind-engine.thomas.hyperverge.co/v1/fetchUpiIfsc

API Endpoint

fetchUpiIfsc

Overview

The Fetch IFSC from UPI ID API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format, and you should send the request body as JSON through a POST request.

Method - POST

Authentication

You need a unique pair of application ID ( appId ) and application key ( appKey ) from HyperVerge to verify your identity for accessing the Fetch IFSC from UPI ID API.

Headers

HeaderMandatory / OptionalDescriptionInput Format
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tabThis should be a unique value
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tabThis should be a unique value
transactionIdMandatoryUnique ID for the customer journeyAny defined unique value mapped to a transaction in your business ecosystem

Inputs

The following table provides the details of the parameters required for the Fetch IFSC from UPI ID API's request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
vpaMandatorystringThe Virtual Payment Address, also known as the UPI ID of the userValid VPA/UPI ID format (e.g., user@paytm)Not Applicable
nameMandatorystringThe name associated with the bank account corresponding to the provided VPAAccount holder name stringNot Applicable

Request

The following code snippet demonstrates a standard curl request for the Fetch IFSC from UPI ID API:


curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/fetchUpiIfsc' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"vpa": "<Enter_the_VPA>",
"name": "<Enter_the_name>"
}'

Success Response

The following code snippet demonstrates a success response from the Fetch IFSC from UPI ID API:

{
"status": "success",
"statusCode": "200",
"result": {
"referenceId": "<Reference_ID>",
"status": "<Status_of_Vpa>",
"message": "<Vpa_Verification_Message>",
"ifsc": "<IFSC_Code>",
"vpa": "<Virtual_Payment_Address>",
"nameAtBank": "<Name_At_Bank>",
"ifscDetails": {
"bank": "<Bank_Name>",
"neft": "<NEFT_Status>",
"imps": "<IMPS_Status>",
"rtgs": "<RTGS_Status>",
"upi": "<UPI_Status>",
"address": "<Bank_Address>",
"city": "<City>",
"state": "<State>",
"branch": "<Branch_Name>",
"category": "<Bank_Category>",
"swiftCode": "<SWIFT_Code>",
"micr": "<MICR_Code>",
"nbin": "<NBIN_Code>"
}
},
"metaData": {
"requestId": "<Request_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the Fetch IFSC from UPI ID API:

ParameterTypeDescription
statusstringThe status of the request
statusCodestringThe HTTP status code for the response
resultobjectThe JSON object containing the IFSC and VPA verification details
result.referenceIdstringA unique identifier assigned to the verification process or transaction
result.statusstringThe status of the VPA verification, indicating whether it was successful or not
result.messagestringA message related to the verification process or transaction
result.ifscstringThe IFSC associated with the bank account. It uniquely identifies a bank branch participating in various payment systems within India
result.vpastringThe VPA provided as input
result.nameAtBankstringThe name associated with the bank account corresponding to the provided VPA
result.ifscDetailsobjectThe details related to the IFSC code, including the bank's name, services availability, and location
result.ifscDetails.bankstringThe name of the bank associated with the provided IFSC code
result.ifscDetails.neftstringThe availability status of the National Electronic Funds Transfer (NEFT) service for the bank
result.ifscDetails.impsstringThe availability status of the Immediate Payment Service (IMPS) service for the bank
result.ifscDetails.rtgsstringThe availability status of the Real-Time Gross Settlement (RTGS) service for the bank
result.ifscDetails.upistringThe availability status of the Unified Payments Interface (UPI) service for the bank
result.ifscDetails.addressstringThe full address of the bank branch associated with the IFSC code
result.ifscDetails.citystringThe city where the bank branch is located
result.ifscDetails.statestringThe state where the bank branch is located
result.ifscDetails.branchstringThe name of the bank branch associated with the IFSC code
result.ifscDetails.categorystringThe category of the bank branch, if applicable
result.ifscDetails.swiftCodestringThe SWIFT code for international transactions, if available
result.ifscDetails.micrstringThe Magnetic Ink Character Recognition (MICR) code of the bank branch
result.ifscDetails.nbinstringThe National Bank Identification Number (NBIN), if applicable
metaDataobjectThe JSON object containing request metadata
metaData.requestIdstringA unique identifier for the request

Failure Response

The following code snippet demonstrates a failure response from the Fetch IFSC from UPI ID API when the VPA is invalid:

{
"status": "success",
"statusCode": 200,
"result": {
"referenceId": "<Reference_ID>",
"status": "INVALID",
"message": "Vpa entered is invalid.",
"ifsc": null,
"vpa": "<User_VPA>",
"nameAtBank": null,
"ifscDetails": {
"bank": null,
"neft": null,
"imps": null,
"rtgs": null,
"upi": null,
"address": null,
"city": null,
"state": null,
"branch": null,
"category": null,
"swiftCode": null,
"micr": null,
"nbin": null
}
},
"metaData": {
"requestId": "<Request_ID>"
}
}

Error Responses

The following are some error responses from the Fetch IFSC from UPI ID API:

{
"message": "vpa should be valid",
"statusCode": 400,
"status": "failure",
"metaData": {
"requestId": "<Request_ID>"
}
}

Error Response Details

A failure or error response contains a failure status with a relevant status code and error message.
The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400vpa is missing in the requestThe VPA parameter has not been entered in the requestEnsure the request includes the vpa parameter with a valid VPA/UPI ID
400vpa should be validThe entered VPA is invalid or incorrectVerify and provide a valid VPA/UPI ID in the correct format (e.g., user@paytm)
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid valuesVerify and provide valid appId and appKey credentials
500Internal Server ErrorKindly check the request headers or contact the HyperVerge team for resolution.Check the request headers or contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: