Save bank accounts
curl --request POST \
--url https://sandbox.hurdlr.com/rest/v5/banks/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: */*' \
--data '{
"accounts": [
{
"id": 123,
"apiAccountId": "<string>",
"apiAccountName": "Citi Premier® Card",
"apiAccountNo": "<string>",
"apiInstitutionId": "<string>",
"apiAccountType": "CREDIT",
"glAccountId": 123,
"defaultClientId": 123,
"defaultBusinessId": 123,
"tranStartDate": "2023-11-07T05:31:56Z",
"billingCycleStartDay": 16,
"scheduleClosings": true,
"syncTransactions": true,
"duplicateBankAccountIds": [
123
]
}
]
}'import requests
url = "https://sandbox.hurdlr.com/rest/v5/banks/accounts"
payload = "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "*/*"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': '*/*'},
body: '{\n "accounts": [\n {\n "id": 123,\n "apiAccountId": "<string>",\n "apiAccountName": "Citi Premier® Card",\n "apiAccountNo": "<string>",\n "apiInstitutionId": "<string>",\n "apiAccountType": "CREDIT",\n "glAccountId": 123,\n "defaultClientId": 123,\n "defaultBusinessId": 123,\n "tranStartDate": "2023-11-07T05:31:56Z",\n "billingCycleStartDay": 16,\n "scheduleClosings": true,\n "syncTransactions": true,\n "duplicateBankAccountIds": [\n 123\n ]\n }\n ]\n}'
};
fetch('https://sandbox.hurdlr.com/rest/v5/banks/accounts', 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.hurdlr.com/rest/v5/banks/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: */*"
],
]);
$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.hurdlr.com/rest/v5/banks/accounts"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "*/*")
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.hurdlr.com/rest/v5/banks/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "*/*")
.body("{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hurdlr.com/rest/v5/banks/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = '*/*'
request.body = "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"response": {},
"status": "SUCCESS"
}Banks
Save bank accounts
Save a new (or update an existing) set of bank accounts
POST
/
v5
/
banks
/
accounts
Save bank accounts
curl --request POST \
--url https://sandbox.hurdlr.com/rest/v5/banks/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: */*' \
--data '{
"accounts": [
{
"id": 123,
"apiAccountId": "<string>",
"apiAccountName": "Citi Premier® Card",
"apiAccountNo": "<string>",
"apiInstitutionId": "<string>",
"apiAccountType": "CREDIT",
"glAccountId": 123,
"defaultClientId": 123,
"defaultBusinessId": 123,
"tranStartDate": "2023-11-07T05:31:56Z",
"billingCycleStartDay": 16,
"scheduleClosings": true,
"syncTransactions": true,
"duplicateBankAccountIds": [
123
]
}
]
}'import requests
url = "https://sandbox.hurdlr.com/rest/v5/banks/accounts"
payload = "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "*/*"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': '*/*'},
body: '{\n "accounts": [\n {\n "id": 123,\n "apiAccountId": "<string>",\n "apiAccountName": "Citi Premier® Card",\n "apiAccountNo": "<string>",\n "apiInstitutionId": "<string>",\n "apiAccountType": "CREDIT",\n "glAccountId": 123,\n "defaultClientId": 123,\n "defaultBusinessId": 123,\n "tranStartDate": "2023-11-07T05:31:56Z",\n "billingCycleStartDay": 16,\n "scheduleClosings": true,\n "syncTransactions": true,\n "duplicateBankAccountIds": [\n 123\n ]\n }\n ]\n}'
};
fetch('https://sandbox.hurdlr.com/rest/v5/banks/accounts', 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.hurdlr.com/rest/v5/banks/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: */*"
],
]);
$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.hurdlr.com/rest/v5/banks/accounts"
payload := strings.NewReader("{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "*/*")
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.hurdlr.com/rest/v5/banks/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "*/*")
.body("{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hurdlr.com/rest/v5/banks/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = '*/*'
request.body = "{\n \"accounts\": [\n {\n \"id\": 123,\n \"apiAccountId\": \"<string>\",\n \"apiAccountName\": \"Citi Premier® Card\",\n \"apiAccountNo\": \"<string>\",\n \"apiInstitutionId\": \"<string>\",\n \"apiAccountType\": \"CREDIT\",\n \"glAccountId\": 123,\n \"defaultClientId\": 123,\n \"defaultBusinessId\": 123,\n \"tranStartDate\": \"2023-11-07T05:31:56Z\",\n \"billingCycleStartDay\": 16,\n \"scheduleClosings\": true,\n \"syncTransactions\": true,\n \"duplicateBankAccountIds\": [\n 123\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"response": {},
"status": "SUCCESS"
}