RechargeStatus

Post  https://api.aopay.co.in/api/AOP/V2/RechargeStatus


The RechargeStatus API is used to check the current status of a recharge transaction (e.g., Mobile or DTH). It returns whether the recharge was successful, failed, or pending, along with transaction details like reference ID, provider acknowledgment number, and system transaction ID.

Body Parameters
{
  "RegistrationID": "AOP-554",
  "ReferanceId": "AOP554R318820"
} 
Request Parameters
Name Type Description
RegistrationID String Unique registration identifier, often tied to the user.
ReferanceId String A unique identifier used to track or reference a specific transaction, request, or process. In this case, "AOP554R318820" could be an order ID, payment ID, or service request ID.
Responses

200

200

Response

200

RESPONSE BODY

Json

401

401

Response

401

RESPONSE BODY

Object

status     boolean

response_code     integer

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/V2/RechargeStatus' \
--header 'Content-Type: application/json' \
--data  '{
"RegistrationID": "AOP-554",
"ReferanceId": "AOP554R318820"
}'
                                
import requests
import json

url = 'https://api.aopay.co.in/api/AOP/V2/RechargeStatus'
payload = json.dumps({
"RegistrationID": "AOP-554",
"ReferanceId": "AOP554R318820"
}) 

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/V2/RechargeStatus',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
  "RegistrationID": "AOP-554",
  "ReferanceId": "AOP554R318820"
  }) 
}; 
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/V2/RechargeStatus')
var content = new StringContent(
  "{
"RegistrationID": "AOP-554",
"ReferanceId": "AOP554R318820"
  }",
  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/V2/RechargeStatus',
  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",
"ReferanceId": "AOP554R318820"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
    "status": true,
    "msg": "Your payment for Airtel Prepaid was successful!",
    "error": null,
    "statusCode": 200,
    "ReferanceID": "AOP554R318820",
         "data": {
                   "message": "Your payment for Airtel Prepaid was successful!",
                   "txnId": "DGFIN73e49ef486",
                   "status": "SUCCESS",
                   "ackno": "821330732"
         },
        "Status": "True",
        "message": "Recharge processed successfully.",
       "Value": ""

} 
{
  "status": false,
  "response_code": 5,
  "message": "Invalid signature encoding"
}