Contractors
Update Contractor Information
Update fields on an existing 1099 contractor’s record in Zeal.
PATCH
/
contractors
Update Contractor Information
curl --request PATCH \
--url https://api.zeal.com/contractors \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"contractorID": "123456789",
"companyID": "1b5n28nrideucd24",
"type": "partnership",
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlichbachman2@zeal.com",
"ssn": "123456789",
"ein": "null",
"business_name": "null",
"address": "320 Pancake Hollow Road",
"city": "Highland",
"state": "NY",
"zip": "12528",
"dob": "1998-05-05"
}
'import requests
url = "https://api.zeal.com/contractors"
payload = {
"contractorID": "123456789",
"companyID": "1b5n28nrideucd24",
"type": "partnership",
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlichbachman2@zeal.com",
"ssn": "123456789",
"ein": "null",
"business_name": "null",
"address": "320 Pancake Hollow Road",
"city": "Highland",
"state": "NY",
"zip": "12528",
"dob": "1998-05-05"
}
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({
contractorID: '123456789',
companyID: '1b5n28nrideucd24',
type: 'partnership',
first_name: 'erlich',
middle_name: 'null',
last_name: 'bachman',
email: 'erlichbachman2@zeal.com',
ssn: '123456789',
ein: 'null',
business_name: 'null',
address: '320 Pancake Hollow Road',
city: 'Highland',
state: 'NY',
zip: '12528',
dob: '1998-05-05'
})
};
fetch('https://api.zeal.com/contractors', 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/contractors",
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([
'contractorID' => '123456789',
'companyID' => '1b5n28nrideucd24',
'type' => 'partnership',
'first_name' => 'erlich',
'middle_name' => 'null',
'last_name' => 'bachman',
'email' => 'erlichbachman2@zeal.com',
'ssn' => '123456789',
'ein' => 'null',
'business_name' => 'null',
'address' => '320 Pancake Hollow Road',
'city' => 'Highland',
'state' => 'NY',
'zip' => '12528',
'dob' => '1998-05-05'
]),
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/contractors"
payload := strings.NewReader("{\n \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\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/contractors")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/contractors")
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 \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"contractorID": "c9f1e2a47d3b4f8a9c2e1a6b8d4f3e21",
"companyID": "a7e3c91f4b2d8f5e9c6a1d0b4e8f2c73",
"onboarded": true,
"type": "c_corporation",
"tin_type": null,
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlich@zeal.com",
"dob": "1998-05-05",
"phone_number": "4154645367",
"ein": "12-3456789",
"business_name": "Monster Cookies",
"address": "320 Pancake Hollow Road",
"address_line2": "null",
"city": "Highland",
"state": "NY",
"zip": "12528",
"employment_status": "live",
"external_id": "123",
"paycard_requested": false,
"paycard_enabled": false,
"kyc_status": "approved",
"ssn_verification_status": "approved",
"instant_pay_enabled": true
}
}{
"success": false,
"errors": [
{
"message": "No contractorID in the body/query of the request",
"code": 35
}
]
}⌘I
Update Contractor Information
curl --request PATCH \
--url https://api.zeal.com/contractors \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"contractorID": "123456789",
"companyID": "1b5n28nrideucd24",
"type": "partnership",
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlichbachman2@zeal.com",
"ssn": "123456789",
"ein": "null",
"business_name": "null",
"address": "320 Pancake Hollow Road",
"city": "Highland",
"state": "NY",
"zip": "12528",
"dob": "1998-05-05"
}
'import requests
url = "https://api.zeal.com/contractors"
payload = {
"contractorID": "123456789",
"companyID": "1b5n28nrideucd24",
"type": "partnership",
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlichbachman2@zeal.com",
"ssn": "123456789",
"ein": "null",
"business_name": "null",
"address": "320 Pancake Hollow Road",
"city": "Highland",
"state": "NY",
"zip": "12528",
"dob": "1998-05-05"
}
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({
contractorID: '123456789',
companyID: '1b5n28nrideucd24',
type: 'partnership',
first_name: 'erlich',
middle_name: 'null',
last_name: 'bachman',
email: 'erlichbachman2@zeal.com',
ssn: '123456789',
ein: 'null',
business_name: 'null',
address: '320 Pancake Hollow Road',
city: 'Highland',
state: 'NY',
zip: '12528',
dob: '1998-05-05'
})
};
fetch('https://api.zeal.com/contractors', 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/contractors",
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([
'contractorID' => '123456789',
'companyID' => '1b5n28nrideucd24',
'type' => 'partnership',
'first_name' => 'erlich',
'middle_name' => 'null',
'last_name' => 'bachman',
'email' => 'erlichbachman2@zeal.com',
'ssn' => '123456789',
'ein' => 'null',
'business_name' => 'null',
'address' => '320 Pancake Hollow Road',
'city' => 'Highland',
'state' => 'NY',
'zip' => '12528',
'dob' => '1998-05-05'
]),
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/contractors"
payload := strings.NewReader("{\n \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\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/contractors")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeal.com/contractors")
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 \"contractorID\": \"123456789\",\n \"companyID\": \"1b5n28nrideucd24\",\n \"type\": \"partnership\",\n \"first_name\": \"erlich\",\n \"middle_name\": \"null\",\n \"last_name\": \"bachman\",\n \"email\": \"erlichbachman2@zeal.com\",\n \"ssn\": \"123456789\",\n \"ein\": \"null\",\n \"business_name\": \"null\",\n \"address\": \"320 Pancake Hollow Road\",\n \"city\": \"Highland\",\n \"state\": \"NY\",\n \"zip\": \"12528\",\n \"dob\": \"1998-05-05\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"contractorID": "c9f1e2a47d3b4f8a9c2e1a6b8d4f3e21",
"companyID": "a7e3c91f4b2d8f5e9c6a1d0b4e8f2c73",
"onboarded": true,
"type": "c_corporation",
"tin_type": null,
"first_name": "erlich",
"middle_name": "null",
"last_name": "bachman",
"email": "erlich@zeal.com",
"dob": "1998-05-05",
"phone_number": "4154645367",
"ein": "12-3456789",
"business_name": "Monster Cookies",
"address": "320 Pancake Hollow Road",
"address_line2": "null",
"city": "Highland",
"state": "NY",
"zip": "12528",
"employment_status": "live",
"external_id": "123",
"paycard_requested": false,
"paycard_enabled": false,
"kyc_status": "approved",
"ssn_verification_status": "approved",
"instant_pay_enabled": true
}
}{
"success": false,
"errors": [
{
"message": "No contractorID in the body/query of the request",
"code": 35
}
]
}