Get internal account by id
curl --request GET \
--url https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}', 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://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"currency": "USD",
"status": "ACTIVE",
"tenant": "abcdef_ghijkl",
"account_number": "<string>",
"account_type": "ACH_SETTLEMENT",
"balances": [
{
"balance": 2399,
"type": "ACCOUNT_BALANCE"
}
],
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_routing": "<string>",
"creation_time": "2010-05-06T12:23:34.321Z",
"description": "<string>",
"gl_type": "ASSET",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_system_acc": false,
"last_updated_time": "2010-05-06T12:23:34.321Z",
"purpose": "CORE",
"skip_sweeps": true
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}Internal Accounts
Get internal account by id
Returns an internal account by id
GET
/
internal_accounts
/
{internal_account_id}
Get internal account by id
curl --request GET \
--url https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}', 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://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.synctera.com/v0/internal_accounts/{internal_account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"currency": "USD",
"status": "ACTIVE",
"tenant": "abcdef_ghijkl",
"account_number": "<string>",
"account_type": "ACH_SETTLEMENT",
"balances": [
{
"balance": 2399,
"type": "ACCOUNT_BALANCE"
}
],
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_routing": "<string>",
"creation_time": "2010-05-06T12:23:34.321Z",
"description": "<string>",
"gl_type": "ASSET",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_system_acc": false,
"last_updated_time": "2010-05-06T12:23:34.321Z",
"purpose": "CORE",
"skip_sweeps": true
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}Authorizations
Path Parameters
Response
Internal Account
type associated with the internal account.
Available options:
ACH_SETTLEMENT, ACH_SUSPENSE, ALLOCATED_SUSPENSE, BANK_DRAFT, BILLING_EXPENSE, BILLING_REVENUE, CARD_AFT_PREFUNDING, CARD_OCT_SETTLEMENT, CARD_SETTLEMENT, CASH_SETTLEMENT, CASH_SUSPENSE, CHECK_SETTLEMENT, DISPUTE_WRITE_OFF_PNL, EFT_CA_SETTLEMENT, EFT_CA_SUSPENSE, EXTERNAL_CARD_AFT_SETTLEMENT, EXTERNAL_CARD_OCT_SETTLEMENT, FEDNOW_SETTLEMENT, FEES, FRAUD_LOSSES, FUNDING_ACCOUNTS, GENERAL_PNL, INTEREST_PAYOUT, INTERNATIONAL_WIRE_SETTLEMENT, IN_STORE_CASH_SETTLEMENT, LOC_INTEREST_INCOME, LOC_INVESTOR_PORTFOLIO, LOC_REPURCHASE, MONEY_IN_AND_OUT, NEGATIVE_BALANCE, NETWORK_ADJUSTMENT, NETWORK_CHARGEBACK, NEW_FUNDING_ACCOUNT, PROVISIONAL_CREDIT_PNL, RESERVE, REWARDS, SC_INVESTOR_PORTFOLIO, SC_REPURCHASE, SYNCTERA_PAY_SUSPENSE, USC_INTEREST_INCOME, USC_INVESTOR_PORTFOLIO, USC_REPURCHASE, WIRE_SETTLEMENT, WIRE_SUSPENSE, WRITE_OFF Was this page helpful?

