Static QR

Post  https://api.aopay.co.in/api/AOP/BOSVPAStaticQR


In this API, you will provide the user’s registration details, a verified mobile contact, and a unique merchant identifier. These values collectively help authenticate the request, link it to the appropriate merchant, and ensure it is associated with the correct user profile.

Body Parameters
{
  "RegistrationID":"AOP-554",
  "mobileNumber":"998XXXXXXX",
  "MerchantCode":"1234XXX"
}
Request Parameters
Name Type Description
RegistrationID String Unique registration identifier, often tied to the user.
mobileNumber String The Mobile number of the user, often used for verification or notifications.
MerchantCode String A unique code assigned to the merchant or retail point who is performing the transaction. Used to track commissions, assign transactions, and enforce business rules (provided by AOP).
Responses

200

200

Response

200

RESPONSE BODY

object

response_code     integer

status     boolean

refid     string

message     string

qr_link     string

400

400

Response

400

RESPONSE BODY

json


Did this page help you?     Yes    No

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

cURL

curl --location 'https://api.aopay.co.in/api/AOP/BOSVPAStaticQR' \
--header 'Content-Type: application/json' \
--data  '{
  "RegistrationID": "AOP-554",
  "mobileNumber": "998XXXXXXX",
  "MerchantCode": "1234XXX"
}'
                                
import requests
import json

url = 'https://api.aopay.co.in/api/AOP/BOSVPAStaticQR'
payload = json.dumps({
  "RegistrationID": "AOP-554",
  "mobileNumber": "998XXXXXXX",
  "MerchantCode": "1234XXX"
}) 

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/BOSVPAStaticQR',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
    "RegistrationID": "AOP-554",
    "mobileNumber": "998XXXXXXX",
    "MerchantCode": "1234XXX"
  }) 
}; 
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/BOSVPAStaticQR')
var content = new StringContent(
  "{
    "RegistrationID": "AOP-554",
    "mobileNumber": "998XXXXXXX",
    "MerchantCode": "1234XXX"
  }",
  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/BOSVPAStaticQR',
  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 =>  '{
    "RegistrationID": "AOP-554",
    "mobileNumber": "998XXXXXXX",
    "MerchantCode": "1234XXX"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

400

-Result

Example

 
{
    "status_code": 200,
    "responsecode": 1,
    "status: true,
    "message": "QR Generated Successfully.",
    "details": {
        "payeeVPA": "yespay.p*******3@yesbankltd",
        "merchantId": "77980*******85234",
        "UPIRefID": "AOP55******70",
        "txnNote": "AOP-554",
        "intent_url":  "upi://xyz.com",
    }
    "txnRefranceNo": "AOP55******70",
    "RegistrationID": "AOP-554"
}
                                
{
    "status": false,
    "response_code": XX,
    "message": {#message}
}