PG Transaction Status V2

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


In this API, you will pass the 'txnRefranceID'—received from the order creation response—as a request parameter, and the response will return the status of the transaction.

Body Parameters
{
  "txnID": "BOS5XXXXX6617",
  "RegistrationID": "AOP-554"
}
Request Parameters
Name Type Description
txnID 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

403

403


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/StandardPaymentLinkStatus' \
--header 'Content-Type: application/json' \
--data  '{
  "txnID": "BOS5XXXXX6617",
  "RegistrationID": "AOP-554"
}'
                                
import requests
import json

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

RESPONSE

200

403

-Result

Example

{    
     "txnRefranceID": "BOS5XXXXX6617",
     "TransferAmount": "5.00",
     "ServiceChargeAmount": "0.06",
     "GSTAmount": "0.01",
     "ServiceChargeWithoutGSTAmount": "0.05",
     "ActualTransferAmount": "4.94",
     "TransactionDate": "24/10/2024 00:00:00",
     "RegistrationID": "AOP-554",
     "Status": "True",
     "message": "Transaction has been Done Successfully againts of TxnRefanceID :BOS5XXXXX6617",
     "Value": ""
     "ResponseMessage": "Transaction successfully",
} 
{
    "Status": "403",
    "code": null,
    "Message": "Pay Customer Name is Required",
    "PGOrderID": null,
    "PreparePOSTForm": null
}