curl --request POST \
--url https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_product_code": "SUP-001",
"supplier_product_display_name": "Sodium Hydroxide 50%"
}
'import requests
url = "https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals"
payload = {
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_product_code": "SUP-001",
"supplier_product_display_name": "Sodium Hydroxide 50%"
}
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({
buyer_product_id: '99999a99-b888-777c-666d-55555555555e',
supplier_profile_id: '99999a99-b888-777c-666d-55555555555e',
approval_status: 'approved',
supplier_product_code: 'SUP-001',
supplier_product_display_name: 'Sodium Hydroxide 50%'
})
};
fetch('https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals', 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/buyer_product_approvals",
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([
'buyer_product_id' => '99999a99-b888-777c-666d-55555555555e',
'supplier_profile_id' => '99999a99-b888-777c-666d-55555555555e',
'approval_status' => 'approved',
'supplier_product_code' => 'SUP-001',
'supplier_product_display_name' => 'Sodium Hydroxide 50%'
]),
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/buyer_product_approvals"
payload := strings.NewReader("{\n \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\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/buyer_product_approvals")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals")
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 \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\n}"
response = http.request(request)
puts response.read_body{
"id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_name": "Supplier Co",
"catalogue_parent_display_name": "NaOH-50",
"catalogue_parent_product_code": "SUP-001",
"reference": "REF-001",
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"code": "BPA-CODE",
"name": "BPA-NAME",
"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"
}Creates a buyer product approval
curl --request POST \
--url https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_product_code": "SUP-001",
"supplier_product_display_name": "Sodium Hydroxide 50%"
}
'import requests
url = "https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals"
payload = {
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_product_code": "SUP-001",
"supplier_product_display_name": "Sodium Hydroxide 50%"
}
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({
buyer_product_id: '99999a99-b888-777c-666d-55555555555e',
supplier_profile_id: '99999a99-b888-777c-666d-55555555555e',
approval_status: 'approved',
supplier_product_code: 'SUP-001',
supplier_product_display_name: 'Sodium Hydroxide 50%'
})
};
fetch('https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals', 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/buyer_product_approvals",
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([
'buyer_product_id' => '99999a99-b888-777c-666d-55555555555e',
'supplier_profile_id' => '99999a99-b888-777c-666d-55555555555e',
'approval_status' => 'approved',
'supplier_product_code' => 'SUP-001',
'supplier_product_display_name' => 'Sodium Hydroxide 50%'
]),
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/buyer_product_approvals"
payload := strings.NewReader("{\n \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\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/buyer_product_approvals")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.chemcloud.com.au/api/public/buyer/v1/buyer_product_approvals")
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 \"buyer_product_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"supplier_profile_id\": \"99999a99-b888-777c-666d-55555555555e\",\n \"approval_status\": \"approved\",\n \"supplier_product_code\": \"SUP-001\",\n \"supplier_product_display_name\": \"Sodium Hydroxide 50%\"\n}"
response = http.request(request)
puts response.read_body{
"id": "99999a99-b888-777c-666d-55555555555e",
"approval_status": "approved",
"supplier_name": "Supplier Co",
"catalogue_parent_display_name": "NaOH-50",
"catalogue_parent_product_code": "SUP-001",
"reference": "REF-001",
"buyer_product_id": "99999a99-b888-777c-666d-55555555555e",
"supplier_profile_id": "99999a99-b888-777c-666d-55555555555e",
"code": "BPA-CODE",
"name": "BPA-NAME",
"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
"99999a99-b888-777c-666d-55555555555e"
"99999a99-b888-777c-666d-55555555555e"
preferred: Preferred Material, purchased: Purchased Material, approved: Approved Material, sample_requested: R&D - Sample Requested, sample_approved: R&D - Sample Approved, pending: R&D - In Progress, unstarted: R&D - Not started, inactive: Inactive Material, unapproved: Not Approved
preferred, purchased, approved, sample_requested, sample_approved, pending, unstarted, inactive, unapproved "approved"
Supplier's code for the product
"SUP-001"
Display name for the supplier's product (defaults to buyer product name)
"Sodium Hydroxide 50%"
Response
Approval created with supplier product fields
"99999a99-b888-777c-666d-55555555555e"
Status of the approved material
preferred, purchased, approved, sample_requested, sample_approved, pending, unstarted, inactive, unapproved "approved"
Name of the supplier
"Supplier Co"
Supplier's name for the product
"NaOH-50"
Supplier's code for the product
"SUP-001"
ChemCloud user-friendly reference for the approved material
"REF-001"
"99999a99-b888-777c-666d-55555555555e"
"99999a99-b888-777c-666d-55555555555e"
Buyer's code for the approved material
"BPA-CODE"
Buyer's name for the approved material
"BPA-NAME"
Show child attributes
Show child attributes
"2025-12-31T23:13:11.862Z"
"2025-12-31T23:13:11.862Z"
Was this page helpful?

