UPI Verification API

VERIFICATION OF UPI VIRTUAL PAYMENT ADDRESS (VPA)

API v1 Flow v1

Description

National Payment Corporation Of India (NPCI) developed an instant real time payment system called Unified Payment Interface (UPI) to promote digital payments in India. Every bank account holder who registers for UPI receives a unique virtual payment address (VPA). UPI is being used across all major banks, institutions and merchants to accept and transfer digital money.

This API can be used to verify if a provided VPA is correct and belongs to an active current or savings bank account. This also returns the name of the account holder.

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

API Outcome

  • Account holder name Name of the UPI payment address holder. This is same as the name registered with associated bank account.
  • Status Status to validate if provided VPA exists and is valid.

API Details

Request

TypeURL
Posthttps://api.attestr.com/api/{version}/public/finanx/vpa

Request Body Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
StringvpaVirtual payment address to verifyRequiredv1

Request Header Parameters

TypeNameValue / DescriptionOptional (default)Min VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

If you do not have the authentication token, please refer to Register App to generate one.

Sample Request

JSON
Copy

Response

Http Status Code 200

Please note that the valid key decides the availability of rest of the keys in the response. If provided VPA is invalid, then all keys except valid and message are omitted. If true, remaining keys will have appropriate data.

KeyDescriptionTypeMin VersionMax Version
validTrue | false if the provided VPA is validBooleanv1
nameName of the virtual payment address holderStringv1
messageMessage string if the provided VPA is invalid (available only if valid is false)Stringv1

Sample Response

Sample response for the case when VPA is valid

JSON
Copy

Sample response for invalid / non existent VPA

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed
5045041Source or beneficiary bank is either offline or NPCI / IPMS is unavailable
5035031Service unavailable or discontinued

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard