Bank Accounts

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


Body Parameters
{
  "payee": {
    "name": "sample string 1",
    "accountNumber": "sample string 2",
    "bankIfsc": "sample string 3",
    "payeeListId": "sample string 4"
  },
  "transferMode": "sample string 1",
  "transferAmount": "sample string 2",
  "externalRef": "sample string 3",
  "latitude": "sample string 4",
  "longitude": "sample string 5",
  "remarks": "sample string 6",
  "alertEmail": "sample string 7",
  "purpose": "sample string 8",
  "RegistrationID": "sample string 9",
  "CompanyCode": "sample string 10"
  "Flag": "API"
}
Responses

200

200

400

400


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/Payout' \
--header 'Content-Type: application/json' \
--data  '{
  "payee": {
    "name": "sample string 1",
    "accountNumber": "sample string 2",
    "bankIfsc": "sample string 3",
    "payeeListId": "sample string 4"
  },
  "transferMode": "sample string 1",
  "transferAmount": "sample string 2",
  "externalRef": "sample string 3",
  "latitude": "sample string 4",
  "longitude": "sample string 5",
  "remarks": "sample string 6",
  "alertEmail": "sample string 7",
  "purpose": "sample string 8",
  "RegistrationID": "sample string 9",
  "CompanyCode": "sample string 10"
  "Flag": "API"
}'
                                
import requests
import json

url = 'https://api.bos.center/api/BOS/Payout'
payload = json.dumps({
  "payee": {
    "name": "sample string 1",
    "accountNumber": "sample string 2",
    "bankIfsc": "sample string 3",
    "payeeListId": "sample string 4"
  },
  "transferMode": "sample string 1",
  "transferAmount": "sample string 2",
  "externalRef": "sample string 3",
  "latitude": "sample string 4",
  "longitude": "sample string 5",
  "remarks": "sample string 6",
  "alertEmail": "sample string 7",
  "purpose": "sample string 8",
  "RegistrationID": "sample string 9",
  "CompanyCode": "sample string 10"
  "Flag": "API"
}) 

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/Payout',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
    "payee": {
      "name": "sample string 1",
      "accountNumber": "sample string 2",
      "bankIfsc": "sample string 3",
      "payeeListId": "sample string 4"
    },
    "transferMode": "sample string 1",
    "transferAmount": "sample string 2",
    "externalRef": "sample string 3",
    "latitude": "sample string 4",
    "longitude": "sample string 5",
    "remarks": "sample string 6",
    "alertEmail": "sample string 7",
    "purpose": "sample string 8",
    "RegistrationID": "sample string 9",
    "CompanyCode": "sample string 10"
    "Flag": "API"
  }) 
}; 
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/Payout')
var content = new StringContent(
  "{
    "payee": {
      "name": "sample string 1",
      "accountNumber": "sample string 2",
      "bankIfsc": "sample string 3",
      "payeeListId": "sample string 4"
    },
    "transferMode": "sample string 1",
    "transferAmount": "sample string 2",
    "externalRef": "sample string 3",
    "latitude": "sample string 4",
    "longitude": "sample string 5",
    "remarks": "sample string 6",
    "alertEmail": "sample string 7",
    "purpose": "sample string 8",
    "RegistrationID": "sample string 9",
    "CompanyCode": "sample string 10"
    "Flag": "API"
  }",
  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/Payout',
  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 =>  '{
    "payee": {
      "name": "sample string 1",
      "accountNumber": "sample string 2",
      "bankIfsc": "sample string 3",
      "payeeListId": "sample string 4"
    },
    "transferMode": "sample string 1",
    "transferAmount": "sample string 2",
    "externalRef": "sample string 3",
    "latitude": "sample string 4",
    "longitude": "sample string 5",
    "remarks": "sample string 6",
    "alertEmail": "sample string 7",
    "purpose": "sample string 8",
    "RegistrationID": "sample string 9",
    "CompanyCode": "sample string 10"
    "Flag": "API"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

400

-Result

Example

{
    "StatusCode": "200",
    "Message": "Transaction Failed UAT mode",
    "data": {
        "RefID": "123456",
        "TxnAmount": "10.00",
        "txnReferenceId": "1230727175117JZUAV",
        "payee": {
            "account": "1565101267729",
            "name": "DUMMY"
        }
    },
    "timestamp": "2023-07-27 17:51:17",
    "orderid": "1230727175117BFWTB",
    "RegistrationID": "RTE-554",
    "CompanyCode": "CMP1045"
    "BosSignature": "7e8e711eac8bfc4738e4f65ee466503"
}
                                
{}