Create a Supplier
curl --request POST \
--url https://api.zivio.net/api/v3/suppliers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'zivio-tenant-id: <api-key>' \
--data '
{
"supplier": {
"name": "My New Supplier",
"description": "Specialist in Construction",
"headline": "Nice people to do business with",
"tax_number": "1234568983"
}
}
'import requests
url = "https://api.zivio.net/api/v3/suppliers"
payload = { "supplier": {
"name": "My New Supplier",
"description": "Specialist in Construction",
"headline": "Nice people to do business with",
"tax_number": "1234568983"
} }
headers = {
"X-API-Key": "<api-key>",
"zivio-tenant-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'zivio-tenant-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplier: {
name: 'My New Supplier',
description: 'Specialist in Construction',
headline: 'Nice people to do business with',
tax_number: '1234568983'
}
})
};
fetch('https://api.zivio.net/api/v3/suppliers', 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.zivio.net/api/v3/suppliers",
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([
'supplier' => [
'name' => 'My New Supplier',
'description' => 'Specialist in Construction',
'headline' => 'Nice people to do business with',
'tax_number' => '1234568983'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"zivio-tenant-id: <api-key>"
],
]);
$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.zivio.net/api/v3/suppliers"
payload := strings.NewReader("{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("zivio-tenant-id", "<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.zivio.net/api/v3/suppliers")
.header("X-API-Key", "<api-key>")
.header("zivio-tenant-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zivio.net/api/v3/suppliers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["zivio-tenant-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "77",
"name": "Company Inc",
"description": "A detailed biography of the supplier.",
"headline": "Proven track record in medical procurement",
"email": "jack_jones@companyinc.com",
"active": "true",
"vetting_status": "PASSED",
"tax_number": "9876543234",
"tax_registered": "true",
"cis_contractor": "true",
"payment_terms_in_days": "30",
"duns_number": "12345678910",
"linkedin_url": "https://www.linkedin.com/2342342",
"onboarding_template_name": "Sole Trader Onboarding",
"invited_by": {
"id": "66",
"first_name": "Lorna",
"last_name": "Lawless",
"email": "lorna@example.com",
"org_name": "Example Org",
"org_id": "186",
"business_unit": "Resident Services",
"division": "Environment & Streetscene",
"department": "Housing",
"vetting_status": "PASSED",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"key": "value"
},
"has_oversight": "true"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"key": "value"
},
"primary_address": {
"id": "326",
"line1": "326",
"line2": "Westbourne Grove",
"city": "Brighton",
"region": "East Sussex",
"postcode": "BN99 9XX",
"country_code": "GB",
"formatted": "326, Westbourne Grove, Brighton, East Sussex, BN99 9XX, United Kingdom"
},
"invoice_address": {
"id": "326",
"line1": "326",
"line2": "Westbourne Grove",
"city": "Brighton",
"region": "East Sussex",
"postcode": "BN99 9XX",
"country_code": "GB",
"formatted": "326, Westbourne Grove, Brighton, East Sussex, BN99 9XX, United Kingdom"
},
"admin_custom_fields": {
"key": "value"
},
"custom_field_detailed": {
"key": "key",
"value": "value"
},
"skills": [
{
"skill_id": 123,
"skill_slug": "computer-acquisitions",
"skill_name": "Computer Acquisitions",
"why": "10 years experience",
"precedence": 1
}
],
"company_registration_number": "123456789",
"website": "https://www.companyinc.com",
"supplier_risk_factors": [
{
"risk_factor_name": "Insurance Risk",
"risk_level_name": "RED",
"dated": "YYYY-MM-DD",
"effective_at": "2023-11-07T05:31:56Z",
"comments": "Please upload Professional Indemnity Insurance (minimum £1million) document. (26/07/2024)"
}
],
"bank_accounts": [
{
"id": "132",
"currency": "GBP",
"country_code": "GB",
"account_holder_name": "Organistation Ltd",
"account_holder_type": "Business",
"account_number": "****1234",
"sort_code": "123456",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"cis_rate": {
"id": "3",
"label": "Construction Industry Scheme Gross Payment",
"tax_reference": "sales",
"key": "cis_registered_contractors_deduction",
"rate": "20.0",
"country_code": "GB",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": "false",
"custom_fields": {
"key": "value"
}
}
}Suppliers
Create a Supplier
POST
/
suppliers
Create a Supplier
curl --request POST \
--url https://api.zivio.net/api/v3/suppliers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'zivio-tenant-id: <api-key>' \
--data '
{
"supplier": {
"name": "My New Supplier",
"description": "Specialist in Construction",
"headline": "Nice people to do business with",
"tax_number": "1234568983"
}
}
'import requests
url = "https://api.zivio.net/api/v3/suppliers"
payload = { "supplier": {
"name": "My New Supplier",
"description": "Specialist in Construction",
"headline": "Nice people to do business with",
"tax_number": "1234568983"
} }
headers = {
"X-API-Key": "<api-key>",
"zivio-tenant-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'zivio-tenant-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplier: {
name: 'My New Supplier',
description: 'Specialist in Construction',
headline: 'Nice people to do business with',
tax_number: '1234568983'
}
})
};
fetch('https://api.zivio.net/api/v3/suppliers', 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.zivio.net/api/v3/suppliers",
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([
'supplier' => [
'name' => 'My New Supplier',
'description' => 'Specialist in Construction',
'headline' => 'Nice people to do business with',
'tax_number' => '1234568983'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"zivio-tenant-id: <api-key>"
],
]);
$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.zivio.net/api/v3/suppliers"
payload := strings.NewReader("{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("zivio-tenant-id", "<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.zivio.net/api/v3/suppliers")
.header("X-API-Key", "<api-key>")
.header("zivio-tenant-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zivio.net/api/v3/suppliers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["zivio-tenant-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplier\": {\n \"name\": \"My New Supplier\",\n \"description\": \"Specialist in Construction\",\n \"headline\": \"Nice people to do business with\",\n \"tax_number\": \"1234568983\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "77",
"name": "Company Inc",
"description": "A detailed biography of the supplier.",
"headline": "Proven track record in medical procurement",
"email": "jack_jones@companyinc.com",
"active": "true",
"vetting_status": "PASSED",
"tax_number": "9876543234",
"tax_registered": "true",
"cis_contractor": "true",
"payment_terms_in_days": "30",
"duns_number": "12345678910",
"linkedin_url": "https://www.linkedin.com/2342342",
"onboarding_template_name": "Sole Trader Onboarding",
"invited_by": {
"id": "66",
"first_name": "Lorna",
"last_name": "Lawless",
"email": "lorna@example.com",
"org_name": "Example Org",
"org_id": "186",
"business_unit": "Resident Services",
"division": "Environment & Streetscene",
"department": "Housing",
"vetting_status": "PASSED",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"key": "value"
},
"has_oversight": "true"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"custom_fields": {
"key": "value"
},
"primary_address": {
"id": "326",
"line1": "326",
"line2": "Westbourne Grove",
"city": "Brighton",
"region": "East Sussex",
"postcode": "BN99 9XX",
"country_code": "GB",
"formatted": "326, Westbourne Grove, Brighton, East Sussex, BN99 9XX, United Kingdom"
},
"invoice_address": {
"id": "326",
"line1": "326",
"line2": "Westbourne Grove",
"city": "Brighton",
"region": "East Sussex",
"postcode": "BN99 9XX",
"country_code": "GB",
"formatted": "326, Westbourne Grove, Brighton, East Sussex, BN99 9XX, United Kingdom"
},
"admin_custom_fields": {
"key": "value"
},
"custom_field_detailed": {
"key": "key",
"value": "value"
},
"skills": [
{
"skill_id": 123,
"skill_slug": "computer-acquisitions",
"skill_name": "Computer Acquisitions",
"why": "10 years experience",
"precedence": 1
}
],
"company_registration_number": "123456789",
"website": "https://www.companyinc.com",
"supplier_risk_factors": [
{
"risk_factor_name": "Insurance Risk",
"risk_level_name": "RED",
"dated": "YYYY-MM-DD",
"effective_at": "2023-11-07T05:31:56Z",
"comments": "Please upload Professional Indemnity Insurance (minimum £1million) document. (26/07/2024)"
}
],
"bank_accounts": [
{
"id": "132",
"currency": "GBP",
"country_code": "GB",
"account_holder_name": "Organistation Ltd",
"account_holder_type": "Business",
"account_number": "****1234",
"sort_code": "123456",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"cis_rate": {
"id": "3",
"label": "Construction Industry Scheme Gross Payment",
"tax_reference": "sales",
"key": "cis_registered_contractors_deduction",
"rate": "20.0",
"country_code": "GB",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": "false",
"custom_fields": {
"key": "value"
}
}
}Response
ok

