PG Transaction Status

Post  https://api.bos.center/api/BOS/PGTransactionStatus


We will pass this Order id in the request parameter of “Transaction Status API” and you will get the status of your transaction in response.

Body Parameters
{
  "txnID": "Enter Order ID",
  "RegistrationID": "Enter Registration ID Given By BOS"
}
Responses

200

200

202

202


Did this page help you?     Yes    No

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

cURL

curl --location 'https://api.bos.center/api/BOS/PGTransactionStatus' \
--header 'Content-Type: application/json' \
--data  '{
  "txnID": "CMP1045_WA_BOSXXXXX"
  "RegistrationID": "BOS"
}'
                                
import requests
import json

url = 'https://api.bos.center/api/BOS/PGTransactionStatus'
payload = json.dumps({
  "txnID": "CMP1045_WA_BOSXXXXX",
  "RegistrationID": "BOS"
}) 

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.bos.center/api/BOS/PGTransactionStatus',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
    "txnID": "CMP1045_WA_BOSXXXXX"
    "RegistrationID": "BOS"
  }) 
}; 
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.bos.center/api/BOS/PGTransactionStatus')
var content = new StringContent(
  "{
    "txnID": "CMP1045_WA_BOSXXXXX"
    "RegistrationID": "BOS"
  }",
  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.bos.center/api/BOS/PGTransactionStatus',
  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": "CMP1045_WA_BOSXXXXX",
    "RegistrationID": "BOS"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

202

-Result

Example

{
    "response": {
        "mihpayid": 18XXXX,
        "bank_ref_num": "202311130XXXX",
        "bank_ref_no": "202311XXXXXXXX",
        "bankcode": "PXXXX",
        "offer_availed": null,
        "offer_key": null,
        "unmappedstatus": "capXXXXXX",
        "error_Message": "No Error",
        "error": "E0XXXXX",
        "curl": "https://www.boscenter.in/Admin/Add_Money_HaXXXX",
        "surl": "https://www.boscenter.in/Admin/Add_Money_HandlXXXXXX",
        "furl": "https://www.boscenter.in/Admin/Add_Money_HandXXXXX",
        "discount": "0.00",
        "txnid": "CMP1045_XXXXXXX",
        "key": "idpXXXXXXX",
        "addedon": "2023XXXX",
        "amount": "10.00",
        "PG_TYPE": "CASXXXXX",
        "mode": "CASH",
        "card_no": "",
        "productinfo": "Shopping",
        "status": "success",
        "field0": "",
        "field1": "2023-11-13 18:06:23.0",
        "field2": "2023111301XXXXXX",
        "field3": "1854XXXXXXXX",
        "field4": "",
        "field5": "",
        "field6": "",
        "field7": "",
        "field8": "",
        "field9": "Txn Success",
        "udf1": "",
        "udf2": "",
        "udf3": "",
        "udf4": "",
        "udf5": "",
        "udf6": "",
        "udf7": "",
        "udf8": "",
        "udf9": "",
        "udf10": "",
        "firstname": "ManXXXXXX",
        "lastname": "",
        "email": "techXXXXXXXXX",
        "phone": "9999XXXXXXX",
        "address1": "",
        "address2": "",
        "state": "",
        "city": "",
        "country": "",
        "zipcode": "",
        "net_amount_debit": 10.0,
        "card_token": ""
    },
    "status": 1,
    "msg": "Success"
}
                                
{
    "response": null,
    "status": 202,
    "msg": "Registration ID is Required "
}