Bill Payment Status

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


The Bill Payment Status Used to check the real-time status of a specific bill payment transaction using a unique transaction ID.

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

200

200

Response

200

RESPONSE BODY

object

response_code     integer

status     boolean

data     object

txnid     string

operatorname     string

canumber     string

amount     string

ad1     string

ad2     string

ad3     string

comm     string

tds     string

status     string

refid     string

operatorid     string

dateadded     string

refunded     string

refundtxnid     string

daterefunded     string

message     string

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 'https://api.aopay.co.in/api/AOP/BillPaymentStatus' \
--header 'Content-Type: application/json' \
--data  '{
  "referenceid": "123456",
  "RegistrationID": "AOP-554"
}'
                                
import requests
import json

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

RESPONSE

200

401

-Result

Example

{
  "response_code": 1,
  "status": true,
  "data": {
    "txnid": "55",
    "operatorname": "BSES Rajdhani Power Limited",
    "canumber": "102277100",
    "amount": "100",
    "ad1": null,
    "ad2": null,
    "ad3": null,
    "comm": "0.21",
    "tds": "0.01",
    status": "0",
    "refid": "123456",
    "operatorid": null,
    "dateadded": "2021-01-11 15:43:20",
    "refunded": "1",
    "refundtxnid": "57",
    "daterefunded": "2021-01-11 15:53:08"
  },
  "message": "Transaction Refunded"
}
                                
 
{
  "status": false,
  "response_code": 7,
  "message": "Invalid signature encoding"
}