curl --request POST \
--url https://app.polygon-one.com/api/ppwr/tonnage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"periodYear": 2050,
"market": "<string>",
"tonnageKg": 1,
"note": "<string>"
}
]
'import requests
url = "https://app.polygon-one.com/api/ppwr/tonnage"
payload = [
{
"periodYear": 2050,
"market": "<string>",
"tonnageKg": 1,
"note": "<string>"
}
]
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([{periodYear: 2050, market: '<string>', tonnageKg: 1, note: '<string>'}])
};
fetch('https://app.polygon-one.com/api/ppwr/tonnage', 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.polygon-one.com/api/ppwr/tonnage",
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([
[
'periodYear' => 2050,
'market' => '<string>',
'tonnageKg' => 1,
'note' => '<string>'
]
]),
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.polygon-one.com/api/ppwr/tonnage"
payload := strings.NewReader("[\n {\n \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\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.polygon-one.com/api/ppwr/tonnage")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/ppwr/tonnage")
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 \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"written": [
{
"periodYear": 123,
"market": "<string>",
"zsvrCategory": "10000"
}
],
"skipped": [
{
"periodYear": 123,
"market": "<string>",
"zsvrCategory": "10000",
"reason": "manualOverridePresent"
}
],
"failed": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
],
"invalid": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
]
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}Tonnage übermitteln
The aggregate-kg mode, for a producer whose packaging composition is not modelled unit by unit — and the same rows that declare the ambiguous material families (metals, composites) in SKU-grain mode. LUCID (Germany) only. Synchronous, upsert keyed on (zsvrCategory, periodYear, market). A category a human entered in the app is reported in skipped with manualOverridePresent rather than overwritten; delete that override in the app and the next push recreates it as ERP-owned. At most 1000 rows per request (400 otherwise). Requires packaging:write; customer workspace with the PPWR module enabled — see the guide.
curl --request POST \
--url https://app.polygon-one.com/api/ppwr/tonnage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"periodYear": 2050,
"market": "<string>",
"tonnageKg": 1,
"note": "<string>"
}
]
'import requests
url = "https://app.polygon-one.com/api/ppwr/tonnage"
payload = [
{
"periodYear": 2050,
"market": "<string>",
"tonnageKg": 1,
"note": "<string>"
}
]
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([{periodYear: 2050, market: '<string>', tonnageKg: 1, note: '<string>'}])
};
fetch('https://app.polygon-one.com/api/ppwr/tonnage', 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.polygon-one.com/api/ppwr/tonnage",
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([
[
'periodYear' => 2050,
'market' => '<string>',
'tonnageKg' => 1,
'note' => '<string>'
]
]),
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.polygon-one.com/api/ppwr/tonnage"
payload := strings.NewReader("[\n {\n \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\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.polygon-one.com/api/ppwr/tonnage")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/ppwr/tonnage")
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 \"periodYear\": 2050,\n \"market\": \"<string>\",\n \"tonnageKg\": 1,\n \"note\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"written": [
{
"periodYear": 123,
"market": "<string>",
"zsvrCategory": "10000"
}
],
"skipped": [
{
"periodYear": 123,
"market": "<string>",
"zsvrCategory": "10000",
"reason": "manualOverridePresent"
}
],
"failed": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
],
"invalid": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
]
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}Autorisierungen
API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.
Body
- object[]
- object
One aggregate-tonnage row for POST /api/ppwr/tonnage. Upsert key: (zsvrCategory, periodYear, market). LUCID (Germany) only.
2000 <= x <= 2100ISO alpha-2 market code.
^[A-Za-z]{2}$VerpackG material category: 10000 glass, 20000 paper/board/carton, 30000 ferrous metals, 40000 aluminium, 50000 plastics, 60000 beverage cartons, 70000 other composites, 80000 other materials.
10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000 Kilograms placed. A JSON number — unlike the intake row schemas, this field is not string-coerced.
x >= 0500Antwort
Tonnage result
Result of the synchronous tonnage intake. A category a human entered in the app is reported in skipped, never overwritten; delete the override in the app and the next push recreates it as ERP-owned.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Rows that hit an unexpected database error (dbError). Reported per row — the categories that committed are kept.
Show child attributes
Show child attributes
Rows rejected by schema validation.
Show child attributes
Show child attributes