Customer Accounts (Early Access)
Set Customer Account Onboarded To true
Manually set a customer account’s onboarded status to true.
POST
/
customer-accounts
/
{customerAccountID}
/
setOnboardedStatusToTrue
Set Customer Account Onboarded To true
curl --request POST \
--url https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"companyID": "12349eee40588c3948e312bb"
}
'import requests
url = "https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue"
payload = { "companyID": "12349eee40588c3948e312bb" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({companyID: '12349eee40588c3948e312bb'})
};
fetch('https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue', 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/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'companyID' => '12349eee40588c3948e312bb'
]),
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/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue"
payload := strings.NewReader("{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"business_name": "Boboddy",
"ein": "567877898",
"legal_structure": "corp",
"phone": "6789276673",
"email": "boboddy@zeal.com",
"business_address": "1 Ferry Building",
"business_city": "San Francisco",
"business_state": "CA",
"business_zip": "94105",
"code": "customer-code43",
"company_id": "12349eee40588c3948e312ww",
"customer_account_id": "43349ebe40588c3948e312ab",
"partner_id": "12349eee40588c3948e312bb",
"status": "initial_onboarding",
"business_owner": {
"first_name": "Bob",
"last_name": "Hunt",
"email": "boboddy@zeal.com",
"ssn": "234567890",
"dob": "1990-01-01",
"title": "CEO",
"ownership_percentage": 47,
"owner_type": "authorized_signer",
"address": "1 Ferry Building",
"city": "San Francisco",
"state": "CA",
"zip": "94105"
},
"onboarded": true
},
"success": true,
"testMode": false
}{
"errors": [
{
"message": "Bank account not verified",
"code": 13,
"status": 400,
"correlationId": "d78e712d-1ebe-4a9a-9537-b6abf1dc9853"
}
],
"success": false,
"testMode": false
}⌘I
Set Customer Account Onboarded To true
curl --request POST \
--url https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"companyID": "12349eee40588c3948e312bb"
}
'import requests
url = "https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue"
payload = { "companyID": "12349eee40588c3948e312bb" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({companyID: '12349eee40588c3948e312bb'})
};
fetch('https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue', 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/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'companyID' => '12349eee40588c3948e312bb'
]),
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/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue"
payload := strings.NewReader("{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/customer-accounts/{customerAccountID}/setOnboardedStatusToTrue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyID\": \"12349eee40588c3948e312bb\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"business_name": "Boboddy",
"ein": "567877898",
"legal_structure": "corp",
"phone": "6789276673",
"email": "boboddy@zeal.com",
"business_address": "1 Ferry Building",
"business_city": "San Francisco",
"business_state": "CA",
"business_zip": "94105",
"code": "customer-code43",
"company_id": "12349eee40588c3948e312ww",
"customer_account_id": "43349ebe40588c3948e312ab",
"partner_id": "12349eee40588c3948e312bb",
"status": "initial_onboarding",
"business_owner": {
"first_name": "Bob",
"last_name": "Hunt",
"email": "boboddy@zeal.com",
"ssn": "234567890",
"dob": "1990-01-01",
"title": "CEO",
"ownership_percentage": 47,
"owner_type": "authorized_signer",
"address": "1 Ferry Building",
"city": "San Francisco",
"state": "CA",
"zip": "94105"
},
"onboarded": true
},
"success": true,
"testMode": false
}{
"errors": [
{
"message": "Bank account not verified",
"code": 13,
"status": 400,
"correlationId": "d78e712d-1ebe-4a9a-9537-b6abf1dc9853"
}
],
"success": false,
"testMode": false
}