UPI Basic

Post  https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation


UPI Basic is a unique identifier linked to a person’s bank account that allows instant and secure money transfers between banks through mobile applications, without the need to enter bank account numbers or IFSC codes. It is widely used in India for peer-to-peer transfers, bill payments, and online purchases. A UPI ID typically looks like username@bank (e.g., abc1957@ybl) and is verified to ensure it is linked to an active bank account belonging to the stated account holder.

Body Parameters
{
    "UPIID": "abc1957@ybl",
    "Name": "Tester",
    "RegistrationID": "AOP-554"
}
Request Parameters
Name Type Description
UPIID String This is the Virtual Payment Address (VPA) for UPI transactions.
Name String Name of the account holder you expect to be linked to this UPI ID.
RegistrationID String Unique registration identifier, often tied to the user.
Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

responsecode integer

status boolean

message string


Did this page help you?     Yes,    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

curl --location --request POST 'https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation' \
--header 'Content-Type: application/json' \
--data  '{
  "UPIID": "abc1957@ybl",
  "Name": "Tester",
  "RegistrationID": "AOP-554"
}'
                                
import requests
import json

url = 'https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation'
payload = "{
  "UPIID": "abc1957@ybl",
  "Name": "Tester",
  "RegistrationID": "AOP-554"
}" 

headers = {
  "Content-type" : "application/json"
}

response = requests.request("POST", url, headers=headers, data=payload)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "POST",
  "url" : 'https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "UPIID": "abc1957@ybl",
    "Name": "Tester",
    "RegistrationID": "AOP-554"
  }' 
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,'https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation')
var content = new StringContent(
  "{
    "UPIID": "abc1957@ybl",
    "Name": "Tester",
    "RegistrationID": "AOP-554"
  }",
  null,"application/json"
); 

request.Content = content;
var response =  await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
                                
<?php
$curl =  curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL =>  'https://api.aopay.co.in/api/AOP/V1/Validation/BasicUPIValidation',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  10,
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'POST',
  CURLOPT_POSTFIELDS =>  '{
    "UPIID": "abc1957@ybl",
    "Name": "Tester",
    "RegistrationID": "AOP-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
   "http_response_code": 200,
   "client_ref_num": "TERF53630",
   "request_id": "1f318abb-437f-4b2b-921d-d5ae173bd879",
   "result_code": 101,
   "message": "VPA Found",
     "result": {
          "vpa_details": {
                 "vpa": "abc1957@ybl",
                 "account_holder_name": "Tester"
           } 
      } 
   }
  
  
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}