Creates a supplier
curl --request POST \
--url https://app.chemcloud.com.au/api/public/buyer/v1/suppliers \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "New Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
]
}
'import requests
url = "https://app.chemcloud.com.au/api/public/buyer/v1/suppliers"
payload = {
"name": "New Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
]
}
headers = {
"X-API-KEY": "<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>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'New Supplier Co',
pricing_type: 'delivered',
resource_values: [{provider: 'cin7_core', value: '99999a99-b888-777c-666d-55555555555e'}]
})
};
fetch('https://app.chemcloud.com.au/api/public/buyer/v1/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://app.chemcloud.com.au/api/public/buyer/v1/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([
'name' => 'New Supplier Co',
'pricing_type' => 'delivered',
'resource_values' => [
[
'provider' => 'cin7_core',
'value' => '99999a99-b888-777c-666d-55555555555e'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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://app.chemcloud.com.au/api/public/buyer/v1/suppliers"
payload := strings.NewReader("{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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://app.chemcloud.com.au/api/public/buyer/v1/suppliers")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.chemcloud.com.au/api/public/buyer/v1/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["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "99999a99-b888-777c-666d-55555555555e",
"name": "Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
],
"created_at": "2025-12-31T23:13:11.862Z",
"updated_at": "2025-12-31T23:13:11.862Z"
}Suppliers
Creates a supplier
POST
/
api
/
public
/
buyer
/
v1
/
suppliers
Creates a supplier
curl --request POST \
--url https://app.chemcloud.com.au/api/public/buyer/v1/suppliers \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "New Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
]
}
'import requests
url = "https://app.chemcloud.com.au/api/public/buyer/v1/suppliers"
payload = {
"name": "New Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
]
}
headers = {
"X-API-KEY": "<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>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'New Supplier Co',
pricing_type: 'delivered',
resource_values: [{provider: 'cin7_core', value: '99999a99-b888-777c-666d-55555555555e'}]
})
};
fetch('https://app.chemcloud.com.au/api/public/buyer/v1/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://app.chemcloud.com.au/api/public/buyer/v1/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([
'name' => 'New Supplier Co',
'pricing_type' => 'delivered',
'resource_values' => [
[
'provider' => 'cin7_core',
'value' => '99999a99-b888-777c-666d-55555555555e'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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://app.chemcloud.com.au/api/public/buyer/v1/suppliers"
payload := strings.NewReader("{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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://app.chemcloud.com.au/api/public/buyer/v1/suppliers")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.chemcloud.com.au/api/public/buyer/v1/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["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"New Supplier Co\",\n \"pricing_type\": \"delivered\",\n \"resource_values\": [\n {\n \"provider\": \"cin7_core\",\n \"value\": \"99999a99-b888-777c-666d-55555555555e\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "99999a99-b888-777c-666d-55555555555e",
"name": "Supplier Co",
"pricing_type": "delivered",
"resource_values": [
{
"provider": "cin7_core",
"value": "99999a99-b888-777c-666d-55555555555e"
}
],
"created_at": "2025-12-31T23:13:11.862Z",
"updated_at": "2025-12-31T23:13:11.862Z"
}Authorizations
Body
application/json
Response
201 - application/json
Supplier created
Example:
"99999a99-b888-777c-666d-55555555555e"
Example:
"Supplier Co"
Example:
"delivered"
Show child attributes
Show child attributes
Example:
"2025-12-31T23:13:11.862Z"
Example:
"2025-12-31T23:13:11.862Z"
Was this page helpful?
⌘I

