Customer Accounts (Early Access)
Create Customer Account
Create a new customer account under a company.
POST
/
customer-accounts
Create Customer Account
curl --request POST \
--url https://api.zeal.com/customer-accounts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "customer-code10",
"companyID": "dzxzll3b45rtrtrtad41c98bbc2b4d566388a44",
"business_name": "Hooli"
}
'import requests
url = "https://api.zeal.com/customer-accounts"
payload = {
"code": "customer-code10",
"companyID": "dzxzll3b45rtrtrtad41c98bbc2b4d566388a44",
"business_name": "Hooli"
}
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({
code: 'customer-code10',
companyID: 'dzxzll3b45rtrtrtad41c98bbc2b4d566388a44',
business_name: 'Hooli'
})
};
fetch('https://api.zeal.com/customer-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://api.zeal.com/customer-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 => json_encode([
'code' => 'customer-code10',
'companyID' => 'dzxzll3b45rtrtrtad41c98bbc2b4d566388a44',
'business_name' => 'Hooli'
]),
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"
payload := strings.NewReader("{\n \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\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")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/customer-accounts")
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 \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\n}"
response = http.request(request)
puts response.read_body{}{}Authorizations
Body
application/json
ID of the Company.
Custom code to be associated with the customer code.
Business Name of the customer account.
EIN of the customer account
Federal tax classification of the customer account entity
Available options:
ccorp, corp, estate, foreign_entity, llc, llp, lp, nonprofit, partnership, scheme, scorp, soleprop, trust. Phone number of the customer account
Business email of the customer account
Street address of the customer account
City of the customer account
State of the customer account
Zip code of the customer account
Business owner of the customer account
Show child attributes
Show child attributes
Response
200
The response is of type object.
⌘I
Create Customer Account
curl --request POST \
--url https://api.zeal.com/customer-accounts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "customer-code10",
"companyID": "dzxzll3b45rtrtrtad41c98bbc2b4d566388a44",
"business_name": "Hooli"
}
'import requests
url = "https://api.zeal.com/customer-accounts"
payload = {
"code": "customer-code10",
"companyID": "dzxzll3b45rtrtrtad41c98bbc2b4d566388a44",
"business_name": "Hooli"
}
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({
code: 'customer-code10',
companyID: 'dzxzll3b45rtrtrtad41c98bbc2b4d566388a44',
business_name: 'Hooli'
})
};
fetch('https://api.zeal.com/customer-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://api.zeal.com/customer-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 => json_encode([
'code' => 'customer-code10',
'companyID' => 'dzxzll3b45rtrtrtad41c98bbc2b4d566388a44',
'business_name' => 'Hooli'
]),
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"
payload := strings.NewReader("{\n \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\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")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/customer-accounts")
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 \"code\": \"customer-code10\",\n \"companyID\": \"dzxzll3b45rtrtrtad41c98bbc2b4d566388a44\",\n \"business_name\": \"Hooli\"\n}"
response = http.request(request)
puts response.read_body{}{}