curl --request POST \
--url https://app.polygon-one.com/api/ppwr/links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"specInternalRef": "<string>",
"componentCode": "<string>",
"quantity": 1,
"massGrams": 123,
"formatReference": "<string>"
}
]
'import requests
url = "https://app.polygon-one.com/api/ppwr/links"
payload = [
{
"specInternalRef": "<string>",
"componentCode": "<string>",
"quantity": 1,
"massGrams": 123,
"formatReference": "<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([
{
specInternalRef: '<string>',
componentCode: '<string>',
quantity: 1,
massGrams: 123,
formatReference: '<string>'
}
])
};
fetch('https://app.polygon-one.com/api/ppwr/links', 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/links",
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([
[
'specInternalRef' => '<string>',
'componentCode' => '<string>',
'quantity' => 1,
'massGrams' => 123,
'formatReference' => '<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/links"
payload := strings.NewReader("[\n {\n \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<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/links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/ppwr/links")
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 \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"imported": 123,
"updated": [
"<string>"
],
"skipped": [
"<string>"
],
"failed": [
{
"identifier": "<string>",
"error": "<string>"
}
],
"invalid": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
],
"sizesCreated": 123,
"articleNumbersUnmatched": 123,
"articleLinksCreated": 123,
"componentLinksCreated": 123,
"componentStubsCreated": 123
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}Verpackungsstückliste anlegen
Create component⇄unit links — a full bill of materials in one request. Create-only and idempotent, so there is no overwrite flag and no confirm gate. Unknown unit references and component codes are per-row errors, never auto-created (unlike the unit intake’s componentCodes column, which stubs unknown codes). 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/links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"specInternalRef": "<string>",
"componentCode": "<string>",
"quantity": 1,
"massGrams": 123,
"formatReference": "<string>"
}
]
'import requests
url = "https://app.polygon-one.com/api/ppwr/links"
payload = [
{
"specInternalRef": "<string>",
"componentCode": "<string>",
"quantity": 1,
"massGrams": 123,
"formatReference": "<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([
{
specInternalRef: '<string>',
componentCode: '<string>',
quantity: 1,
massGrams: 123,
formatReference: '<string>'
}
])
};
fetch('https://app.polygon-one.com/api/ppwr/links', 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/links",
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([
[
'specInternalRef' => '<string>',
'componentCode' => '<string>',
'quantity' => 1,
'massGrams' => 123,
'formatReference' => '<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/links"
payload := strings.NewReader("[\n {\n \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<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/links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/ppwr/links")
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 \"specInternalRef\": \"<string>\",\n \"componentCode\": \"<string>\",\n \"quantity\": 1,\n \"massGrams\": 123,\n \"formatReference\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"imported": 123,
"updated": [
"<string>"
],
"skipped": [
"<string>"
],
"failed": [
{
"identifier": "<string>",
"error": "<string>"
}
],
"invalid": [
{
"index": 123,
"identifier": "<string>",
"error": "<string>"
}
],
"sizesCreated": 123,
"articleNumbersUnmatched": 123,
"articleLinksCreated": 123,
"componentLinksCreated": 123,
"componentStubsCreated": 123
}{
"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 bill-of-materials link for POST /api/ppwr/links. Create-only and idempotent on (specInternalRef, componentCode) — a replayed row comes back as skipped. Unknown unit references and component codes are row errors, never auto-created.
internalRef of an existing packaging unit.
code of an existing component. An ambiguous code is the row error ambiguousComponentMatch.
Pieces of this component in the unit. Blank = 1.
x >= 1This unit's own mass for ONE piece of the component, in grams. Blank/omitted = the component's own mass applies.
Name a SIZE of this unit and massGrams is stored for THAT size only, leaving the unit's own mass untouched. A reference naming no size of this unit is the row error unknownFormatRef and the link is NOT created.
120Antwort
Intake result (partial accept — see the schema).
Result of a synchronous PPWR intake. Partial accept: valid rows commit even when other rows are invalid or failed — the one exception is the 409 overwrite gate, which is all-or-nothing. Idempotent: replaying an identical request changes nothing (matched rows return as skipped), except unit rows without internalRef, which are always creates.
ENTITIES created (units, components, links) — never sizes.
Identifiers of rows whose existing match changed. A size created on an existing unit appears as <unit ref> / <size ref>.
Identifiers of rows that matched with nothing to change.
Rows the upsert engine rejected (unknown reference, ambiguous match, …). Its error values are stable machine keys.
Show child attributes
Show child attributes
Rows rejected by schema validation before the engine ran. Most error values are stable machine keys, but a field with no custom message falls back to the validator's own English text — match on the key, fall back to displaying the string.
Show child attributes
Show child attributes
Unit intake only: sizes created for the rows' units.
Unit intake only: distinct articleNumbers no live article matched. Skipped, never a row error.
Unit intake only: unit⇄article links created from articleNumbers.
Unit intake only: unit⇄component links created from componentCodes.
Unit intake only: minimal placeholder components created for unknown componentCodes.