getCompanyPlaidLinkToken
curl --request GET \
--url https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "getCompanyPlaidLinkToken",
"companyId": "CAA242FE-76C4-4D8F-B84D-378CB192DDB6"
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken"
payload = {
"method": "getCompanyPlaidLinkToken",
"companyId": "CAA242FE-76C4-4D8F-B84D-378CB192DDB6"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'getCompanyPlaidLinkToken',
companyId: 'CAA242FE-76C4-4D8F-B84D-378CB192DDB6'
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken', 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/getCompanyPlaidLinkToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'getCompanyPlaidLinkToken',
'companyId' => 'CAA242FE-76C4-4D8F-B84D-378CB192DDB6'
]),
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/getCompanyPlaidLinkToken"
payload := strings.NewReader("{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}")
req, _ := http.NewRequest("GET", 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.get("https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}"
response = http.request(request)
puts response.read_body"link-sandbox-e72d9253-2ba7-43a1-bfe1-8c450ab7f701"
getCompanyPlaidLinkToken
The getCompanyPlaidLinkToken API generates a Plaid Link token for connecting company bank accounts.
What it does:
- Generates a Plaid Link token to initiate bank account connection through Plaid
- Enables secure bank account linking for company payroll funding
- Returns a token used in the Plaid Link flow for bank account verification
Notes:
- Used as the first step in connecting company bank accounts through Plaid integration
- The generated token is used with Plaid Link to securely connect bank accounts and is added to the company using
setCompanyPlaidTokenLink
GET
/
adminPortal
/
getCompanyPlaidLinkToken
getCompanyPlaidLinkToken
curl --request GET \
--url https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "getCompanyPlaidLinkToken",
"companyId": "CAA242FE-76C4-4D8F-B84D-378CB192DDB6"
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken"
payload = {
"method": "getCompanyPlaidLinkToken",
"companyId": "CAA242FE-76C4-4D8F-B84D-378CB192DDB6"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'getCompanyPlaidLinkToken',
companyId: 'CAA242FE-76C4-4D8F-B84D-378CB192DDB6'
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken', 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/getCompanyPlaidLinkToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'getCompanyPlaidLinkToken',
'companyId' => 'CAA242FE-76C4-4D8F-B84D-378CB192DDB6'
]),
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/getCompanyPlaidLinkToken"
payload := strings.NewReader("{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}")
req, _ := http.NewRequest("GET", 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.get("https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/getCompanyPlaidLinkToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"getCompanyPlaidLinkToken\",\n \"companyId\": \"CAA242FE-76C4-4D8F-B84D-378CB192DDB6\"\n}"
response = http.request(request)
puts response.read_body"link-sandbox-e72d9253-2ba7-43a1-bfe1-8c450ab7f701"
⌘I
