deactivateCompanyBankAccount
curl --request PUT \
--url https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "deactivateCompanyFundingSourceEntity",
"companyId": "5DB0A2B8-5346-41E5-9CE7-444482475C"
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount"
payload = {
"method": "deactivateCompanyFundingSourceEntity",
"companyId": "5DB0A2B8-5346-41E5-9CE7-444482475C"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'deactivateCompanyFundingSourceEntity',
companyId: '5DB0A2B8-5346-41E5-9CE7-444482475C'
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount', 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/adminPortal/deactivateCompanyBankAccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'deactivateCompanyFundingSourceEntity',
'companyId' => '5DB0A2B8-5346-41E5-9CE7-444482475C'
]),
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/adminPortal/deactivateCompanyBankAccount"
payload := strings.NewReader("{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}"
response = http.request(request)
puts response.read_body{
"companyFundingSourceEntity": {
"status": "Inactive",
"message": "The Company's Bank Account has been deactivated successfully.",
"companyId": "914CB6A7-11D4-463F-8C25-C07F615CEF11"
}
}{
"error": {
"code": 400,
"message": "Invalid CompanyId"
}
}Admin Portal
deactivateCompanyBankAccount
The deactivateCompanyBankAccount API deactivates a company’s bank account in the system.
What it does:
- Deactivates the company’s funding source while preserving account records
- Prevents future payroll transactions from using the deactivated account
Notes:
- At least one active bank account must be linked to a company at all times
- Historical banking history is maintained for compliance
- Deactivated bank accounts cannot be re-activated they must be manually added again using
addCompanyBankAccount
PUT
/
adminPortal
/
deactivateCompanyBankAccount
deactivateCompanyBankAccount
curl --request PUT \
--url https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "deactivateCompanyFundingSourceEntity",
"companyId": "5DB0A2B8-5346-41E5-9CE7-444482475C"
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount"
payload = {
"method": "deactivateCompanyFundingSourceEntity",
"companyId": "5DB0A2B8-5346-41E5-9CE7-444482475C"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'deactivateCompanyFundingSourceEntity',
companyId: '5DB0A2B8-5346-41E5-9CE7-444482475C'
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount', 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/adminPortal/deactivateCompanyBankAccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'deactivateCompanyFundingSourceEntity',
'companyId' => '5DB0A2B8-5346-41E5-9CE7-444482475C'
]),
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/adminPortal/deactivateCompanyBankAccount"
payload := strings.NewReader("{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/deactivateCompanyBankAccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"deactivateCompanyFundingSourceEntity\",\n \"companyId\": \"5DB0A2B8-5346-41E5-9CE7-444482475C\"\n}"
response = http.request(request)
puts response.read_body{
"companyFundingSourceEntity": {
"status": "Inactive",
"message": "The Company's Bank Account has been deactivated successfully.",
"companyId": "914CB6A7-11D4-463F-8C25-C07F615CEF11"
}
}{
"error": {
"code": 400,
"message": "Invalid CompanyId"
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Show child attributes
Show child attributes
⌘I
