addContacts
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"account_code": "<string>",
"active": true,
"address": "<string>",
"bank_account": "<string>",
"bank_bsb": "<string>",
"city": "<string>",
"contact": "<string>",
"country": "<string>",
"email": "<string>",
"fax": "<string>",
"Id": "<string>",
"modified": 123,
"Name": "<string>",
"phone": "<string>",
"postcode": "<string>",
"reference": "<string>",
"region": "<string>",
"tags": "<string>",
"tax_code": "<string>",
"taxNumber": "<string>",
"tracking": "<string>",
"web": "<string>",
"workflow": 123
}
]
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts"
payload = [
{
"account_code": "<string>",
"active": True,
"address": "<string>",
"bank_account": "<string>",
"bank_bsb": "<string>",
"city": "<string>",
"contact": "<string>",
"country": "<string>",
"email": "<string>",
"fax": "<string>",
"Id": "<string>",
"modified": 123,
"Name": "<string>",
"phone": "<string>",
"postcode": "<string>",
"reference": "<string>",
"region": "<string>",
"tags": "<string>",
"tax_code": "<string>",
"taxNumber": "<string>",
"tracking": "<string>",
"web": "<string>",
"workflow": 123
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
account_code: '<string>',
active: true,
address: '<string>',
bank_account: '<string>',
bank_bsb: '<string>',
city: '<string>',
contact: '<string>',
country: '<string>',
email: '<string>',
fax: '<string>',
Id: '<string>',
modified: 123,
Name: '<string>',
phone: '<string>',
postcode: '<string>',
reference: '<string>',
region: '<string>',
tags: '<string>',
tax_code: '<string>',
taxNumber: '<string>',
tracking: '<string>',
web: '<string>',
workflow: 123
}
])
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts', 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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts",
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([
[
'account_code' => '<string>',
'active' => true,
'address' => '<string>',
'bank_account' => '<string>',
'bank_bsb' => '<string>',
'city' => '<string>',
'contact' => '<string>',
'country' => '<string>',
'email' => '<string>',
'fax' => '<string>',
'Id' => '<string>',
'modified' => 123,
'Name' => '<string>',
'phone' => '<string>',
'postcode' => '<string>',
'reference' => '<string>',
'region' => '<string>',
'tags' => '<string>',
'tax_code' => '<string>',
'taxNumber' => '<string>',
'tracking' => '<string>',
'web' => '<string>',
'workflow' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts"
payload := strings.NewReader("[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts")
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"] = 'application/json'
request.body = "[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"invoice_id": 123,
"message": "<string>"
}EzzyRest
addContacts
POST
/
addContacts
addContacts
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"account_code": "<string>",
"active": true,
"address": "<string>",
"bank_account": "<string>",
"bank_bsb": "<string>",
"city": "<string>",
"contact": "<string>",
"country": "<string>",
"email": "<string>",
"fax": "<string>",
"Id": "<string>",
"modified": 123,
"Name": "<string>",
"phone": "<string>",
"postcode": "<string>",
"reference": "<string>",
"region": "<string>",
"tags": "<string>",
"tax_code": "<string>",
"taxNumber": "<string>",
"tracking": "<string>",
"web": "<string>",
"workflow": 123
}
]
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts"
payload = [
{
"account_code": "<string>",
"active": True,
"address": "<string>",
"bank_account": "<string>",
"bank_bsb": "<string>",
"city": "<string>",
"contact": "<string>",
"country": "<string>",
"email": "<string>",
"fax": "<string>",
"Id": "<string>",
"modified": 123,
"Name": "<string>",
"phone": "<string>",
"postcode": "<string>",
"reference": "<string>",
"region": "<string>",
"tags": "<string>",
"tax_code": "<string>",
"taxNumber": "<string>",
"tracking": "<string>",
"web": "<string>",
"workflow": 123
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
account_code: '<string>',
active: true,
address: '<string>',
bank_account: '<string>',
bank_bsb: '<string>',
city: '<string>',
contact: '<string>',
country: '<string>',
email: '<string>',
fax: '<string>',
Id: '<string>',
modified: 123,
Name: '<string>',
phone: '<string>',
postcode: '<string>',
reference: '<string>',
region: '<string>',
tags: '<string>',
tax_code: '<string>',
taxNumber: '<string>',
tracking: '<string>',
web: '<string>',
workflow: 123
}
])
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts', 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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts",
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([
[
'account_code' => '<string>',
'active' => true,
'address' => '<string>',
'bank_account' => '<string>',
'bank_bsb' => '<string>',
'city' => '<string>',
'contact' => '<string>',
'country' => '<string>',
'email' => '<string>',
'fax' => '<string>',
'Id' => '<string>',
'modified' => 123,
'Name' => '<string>',
'phone' => '<string>',
'postcode' => '<string>',
'reference' => '<string>',
'region' => '<string>',
'tags' => '<string>',
'tax_code' => '<string>',
'taxNumber' => '<string>',
'tracking' => '<string>',
'web' => '<string>',
'workflow' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts"
payload := strings.NewReader("[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.ezzydoc.com/EzzyService.svc/Rest/addContacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/addContacts")
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"] = 'application/json'
request.body = "[\n {\n \"account_code\": \"<string>\",\n \"active\": true,\n \"address\": \"<string>\",\n \"bank_account\": \"<string>\",\n \"bank_bsb\": \"<string>\",\n \"city\": \"<string>\",\n \"contact\": \"<string>\",\n \"country\": \"<string>\",\n \"email\": \"<string>\",\n \"fax\": \"<string>\",\n \"Id\": \"<string>\",\n \"modified\": 123,\n \"Name\": \"<string>\",\n \"phone\": \"<string>\",\n \"postcode\": \"<string>\",\n \"reference\": \"<string>\",\n \"region\": \"<string>\",\n \"tags\": \"<string>\",\n \"tax_code\": \"<string>\",\n \"taxNumber\": \"<string>\",\n \"tracking\": \"<string>\",\n \"web\": \"<string>\",\n \"workflow\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"invoice_id": 123,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Available options:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 20, 21, 22, 23, 24, 26, 27, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 4001, -1 Body
application/jsontext/jsonapplication/*+json
Available options:
0, 1, 2, 3, 4, 5 ⌘I