refreshCompanyKybStatus
curl --request POST \
--url https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "refreshCompanyKybStatus",
"companyId": "8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074"
}
'import requests
url = "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus"
payload = {
"method": "refreshCompanyKybStatus",
"companyId": "8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'refreshCompanyKybStatus',
companyId: '8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074'
})
};
fetch('https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'refreshCompanyKybStatus',
'companyId' => '8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus"
payload := strings.NewReader("{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"kycStatus": "passed",
"message": "Company kyb status is passed."
}Sandbox
refreshCompanyKybStatus
⚠️ WARNING: Sandbox Only Method. Pleaee do not include this in production flows
Required inputs:
companyId: The ID of the test company.
Response:
The company KYB result uses the field kycStatus. Check that success is true and kycStatus is passed before continuing with workflows that require verified company information. A completed request does not guarantee approval.
Notes:
- Status refreshes do not bypass verification requirements. If the status has not passed, check the returned message, allow processing time and try again if the status does not update first time.
- If the status will still not update after a while, please rwach out to support for further investigation
POST
/
sandbox
/
refreshCompanyKybStatus
refreshCompanyKybStatus
curl --request POST \
--url https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "refreshCompanyKybStatus",
"companyId": "8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074"
}
'import requests
url = "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus"
payload = {
"method": "refreshCompanyKybStatus",
"companyId": "8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'refreshCompanyKybStatus',
companyId: '8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074'
})
};
fetch('https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'refreshCompanyKybStatus',
'companyId' => '8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus"
payload := strings.NewReader("{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/sandbox/refreshCompanyKybStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"refreshCompanyKybStatus\",\n \"companyId\": \"8b2f4a91-6c35-4d7e-9a10-2f83c5e6b074\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"kycStatus": "passed",
"message": "Company kyb status is passed."
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
200 - application/json
The current verification result or an error response. Check the response body rather than relying on the HTTP status alone.
