Bank Accounts
Update Bank Account
Updates a bank account belonging to the specified worker in Zeal.
PATCH
/
bankaccount
Update Bank Account
curl --request PATCH \
--url https://api.zeal.com/bankaccount \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bankAccountID": "61d3f2c3a8593140cda7c5cb",
"companyID": "fc235f012tay46aa8a082f357715bcfa",
"account_number": "123124215",
"type": "checking",
"routing_number": "061092387",
"institution_name": "PNS"
}
'import requests
url = "https://api.zeal.com/bankaccount"
payload = {
"bankAccountID": "61d3f2c3a8593140cda7c5cb",
"companyID": "fc235f012tay46aa8a082f357715bcfa",
"account_number": "123124215",
"type": "checking",
"routing_number": "061092387",
"institution_name": "PNS"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bankAccountID: '61d3f2c3a8593140cda7c5cb',
companyID: 'fc235f012tay46aa8a082f357715bcfa',
account_number: '123124215',
type: 'checking',
routing_number: '061092387',
institution_name: 'PNS'
})
};
fetch('https://api.zeal.com/bankaccount', 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.zeal.com/bankaccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'bankAccountID' => '61d3f2c3a8593140cda7c5cb',
'companyID' => 'fc235f012tay46aa8a082f357715bcfa',
'account_number' => '123124215',
'type' => 'checking',
'routing_number' => '061092387',
'institution_name' => 'PNS'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.zeal.com/bankaccount"
payload := strings.NewReader("{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("https://api.zeal.com/bankaccount")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/bankaccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"bankAccountID": "61d3f2c3a8593cc3948decda7c5cb",
"companyID": "fc235f012tay46334e394cceir48bcfa",
"id": "1234567890",
"institution_name": "PNC",
"account_number": "123435234",
"routing_number": "061092387",
"type": "checking",
"nickname": "Main spending account"
}
}{
"success": false,
"errors": [
{
"message": "No user with this company ID exists",
"code": 4
}
]
}Authorizations
Body
application/json
Company ID of employer
Bank Account ID
Bank Account number
Bank Routing number
Name of banking institution
Account type. Can either be checking or savings
Available options:
checking, savings Nickname of the bank account
⌘I
Update Bank Account
curl --request PATCH \
--url https://api.zeal.com/bankaccount \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bankAccountID": "61d3f2c3a8593140cda7c5cb",
"companyID": "fc235f012tay46aa8a082f357715bcfa",
"account_number": "123124215",
"type": "checking",
"routing_number": "061092387",
"institution_name": "PNS"
}
'import requests
url = "https://api.zeal.com/bankaccount"
payload = {
"bankAccountID": "61d3f2c3a8593140cda7c5cb",
"companyID": "fc235f012tay46aa8a082f357715bcfa",
"account_number": "123124215",
"type": "checking",
"routing_number": "061092387",
"institution_name": "PNS"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bankAccountID: '61d3f2c3a8593140cda7c5cb',
companyID: 'fc235f012tay46aa8a082f357715bcfa',
account_number: '123124215',
type: 'checking',
routing_number: '061092387',
institution_name: 'PNS'
})
};
fetch('https://api.zeal.com/bankaccount', 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.zeal.com/bankaccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'bankAccountID' => '61d3f2c3a8593140cda7c5cb',
'companyID' => 'fc235f012tay46aa8a082f357715bcfa',
'account_number' => '123124215',
'type' => 'checking',
'routing_number' => '061092387',
'institution_name' => 'PNS'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.zeal.com/bankaccount"
payload := strings.NewReader("{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("https://api.zeal.com/bankaccount")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/bankaccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankAccountID\": \"61d3f2c3a8593140cda7c5cb\",\n \"companyID\": \"fc235f012tay46aa8a082f357715bcfa\",\n \"account_number\": \"123124215\",\n \"type\": \"checking\",\n \"routing_number\": \"061092387\",\n \"institution_name\": \"PNS\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"bankAccountID": "61d3f2c3a8593cc3948decda7c5cb",
"companyID": "fc235f012tay46334e394cceir48bcfa",
"id": "1234567890",
"institution_name": "PNC",
"account_number": "123435234",
"routing_number": "061092387",
"type": "checking",
"nickname": "Main spending account"
}
}{
"success": false,
"errors": [
{
"message": "No user with this company ID exists",
"code": 4
}
]
}