Submit OTP

Get  https://api.bos.center/api/BOS/CibilScore/SubmitOTP


Submit OTP – Use this API to submit the OTP which you get from the generate OTP API from the Customer.

Body Parameters
{
    "cibil_id": "xyz byj",
    "access_token": "123456542124",
    "otp": "1234",
    "question_key": "xyz",
    "answer_key": "xyz twp",
    "RegistrationID": "BOS-554",
    "CompanyCode": "CMP1045"
}
Responses

200

200

Response

200

RESPONSE BODY

Json

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 --request GET 'https://api.bos.center/api/BOS/CibilScore/SubmitOTP' \
--header 'Content-Type: application/json' \
--data  '{
  "cibil_id": "xyz byj",
  "access_token": "123456542124",
  "otp": "1234",
  "question_key": "xyz",
  "answer_key": "xyz twp",
  "RegistrationID": "BOS-554",
  "CompanyCode": "CMP1045"
}'
                                
import requests
import json

url = 'https://api.bos.center/api/BOS/CibilScore/SubmitOTP'
payload = "{
  "cibil_id": "xyz byj",
  "access_token": "123456542124",
  "otp": "1234",
  "question_key": "xyz",
  "answer_key": "xyz twp",
  "RegistrationID": "BOS-554",
  "CompanyCode": "CMP1045"
}" 

headers = {
  "Content-type" : "application/json"
}

response = requests.request("GET", url, headers=headers, data=payload)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "GET",
  "url" : 'https://api.bos.center/api/BOS/CibilScore/SubmitOTP',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: '{
    "cibil_id": "xyz byj",
    "access_token": "123456542124",
    "otp": "1234",
    "question_key": "xyz",
    "answer_key": "xyz twp",
    "RegistrationID": "BOS-554",
    "CompanyCode": "CMP1045"
  }' 
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,'https://api.bos.center/api/BOS/CibilScore/SubmitOTP')
var content = new StringContent(
  "{
    "cibil_id": "xyz byj",
    "access_token": "123456542124",
    "otp": "1234",
    "question_key": "xyz",
    "answer_key": "xyz twp",
    "RegistrationID": "BOS-554",
    "CompanyCode": "CMP1045"
  }",
  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/CibilScore/SubmitOTP',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  10,
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'GET',
  CURLOPT_POSTFIELDS =>  '{
    "cibil_id": "xyz byj",
    "access_token": "123456542124",
    "otp": "1234",
    "question_key": "xyz",
    "answer_key": "xyz twp",
    "RegistrationID": "BOS-554",
    "CompanyCode": "CMP1045"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

-Result

Example

{
"status": "SUCCESS",
"message": "success",
"error_code": "SPC-200",
"merchant_trans_id": "SPCBL2308181506522334ZiSHM7bAe",
"access_token": null,
"result": {
"cibil_id": "93626**",
"cibil_status": "Success",
"is_returning_customer": 0,
"cibil_score_fetch_date": null
 }
}
                                
{
    "code": "207",
    "description": "Amount is Requaired",
    "merchantTrxnRefId": null,
    "token": null,
    "status": "False"
}