QR Transaction Status

Post  https://api.aopay.co.in/api/AOP/V4/DynamicQRCodeStatus


In this API, you will include both the unique transaction reference and the user’s registration identifier. These values are used to track and verify the status or details of a previously initiated transaction, ensuring accurate mapping to the corresponding user and activity.

Body Parameters
{
  "txnRefranceID": "AOP554VXXXX",
  "RegistrationID": "AOP-554"
}
Request Parameters
Name Type Description
txnRefranceID String Transaction ID – A unique identifier for a transaction, referring in this case to the 'txnRefranceID' from the response.
RegistrationID String Unique registration identifier, often tied to the user.
Responses

200

200

Response

200

RESPONSE BODY

JSON

400

400

Response

400

RESPONSE BODY

Object


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/V4/DynamicQRCodeStatus' \
--header 'Content-Type: application/json' \
--data  '{
  "txnRefranceID": "AOP554VXXXX",
   "RegistrationID": "AOP-554"
}'
                                
import requests
import json

url = 'https://api.aopay.co.in/api/AOP/V4/DynamicQRCodeStatus'
payload = json.dumps({
  "txnRefranceID": "AOP554VXXXX",
   "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/V4/DynamicQRCodeStatus',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
    "txnRefranceID": "AOP554VXXXX",
     "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/V4/DynamicQRCodeStatus')
var content = new StringContent(
  "{
    "txnRefranceID": "AOP554VXXXX",
     "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/V4/DynamicQRCodeStatus',
  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 =>  '{
    "txnRefranceID": "AOP554VXXXX",
     "RegistrationID": "AOP-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

400

-Result

Example

{
    "entity": "payment",
    "amount": 10000,
    "currency": "INR",
    "status": "captured",
    "method": "upi",
    "captured": true,
    "description": "QRv2 Payment",
    "vpa": "9XXXXX44XX636@axl",
    "rrnNo": "052XXXXX437524",
    "created_at": "2024-10-07T15:11:28+05:30",
    "authorized_at": "2024-10-07T15:11:28+05:30",
    "auto_captured": true,
    "captured_at": 17282XXX88, 
    "payer_account_type": "bank_account",
    "RegistrationID": "AOP-554",
    "txnRefranceID": "AOP554VXXXX",
    "Status": "True"
    "message": "QR Code Fetch Payment Details.",
    "Value" ""
}
                                
"Status : False Message : No Data Found againts of RTExxxxxxx48"