epr.de
Calculate German packaging kilograms by VerpackG or VerpackDG material type for one LUCID system operator and period. Returns an audit trail, a CSV for mapped weights and LUCID XML for complete reports. Charges $0.50 per period when a file is produced.
https://api.kanagu.dev/v1/epr/de- Price
- $0.50 per report, on successful calls only
- Without a key
- 10 free calls per IP per UTC day, shared by REST and MCP.
- MCP tool
epr.deathttps://api.kanagu.dev/mcp- Markdown
- /docs/epr.de.md
curl https://api.kanagu.dev/v1/epr/de \
-H "Content-Type: application/json" \
-d '{"period":{"start":"2026-04-01","end":"2026-06-30"},"systemOperatorId":"DE6004919627351","reportTypeCode":"HMM1","bom":[{"sku":"tea","components":[{"material":"paperboard","gramsPerUnit":42.5,"rigidity":"rigid","recycledContentPct":60},{"material":"LDPE","gramsPerUnit":1.8,"rigidity":"flexible"}]}],"shipments":[{"sku":"tea","destination":"DE","quantity":85,"returns":2,"date":"2026-06-01"}]}'curl https://api.kanagu.dev/v1/epr/de \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"period":{"start":"2026-04-01","end":"2026-06-30"},"systemOperatorId":"DE6004919627351","reportTypeCode":"HMM1","bom":[{"sku":"tea","components":[{"material":"paperboard","gramsPerUnit":42.5,"rigidity":"rigid","recycledContentPct":60},{"material":"LDPE","gramsPerUnit":1.8,"rigidity":"flexible"}]}],"shipments":[{"sku":"tea","destination":"DE","quantity":85,"returns":2,"date":"2026-06-01"}]}'const res = await fetch("https://api.kanagu.dev/v1/epr/de", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"period": {
"start": "2026-04-01",
"end": "2026-06-30"
},
"systemOperatorId": "DE6004919627351",
"reportTypeCode": "HMM1",
"bom": [
{
"sku": "tea",
"components": [
{
"material": "paperboard",
"gramsPerUnit": 42.5,
"rigidity": "rigid",
"recycledContentPct": 60
},
{
"material": "LDPE",
"gramsPerUnit": 1.8,
"rigidity": "flexible"
}
]
}
],
"shipments": [
{
"sku": "tea",
"destination": "DE",
"quantity": 85,
"returns": 2,
"date": "2026-06-01"
}
]
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "epr.de",
"arguments": {
"period": {
"start": "2026-04-01",
"end": "2026-06-30"
},
"systemOperatorId": "DE6004919627351",
"reportTypeCode": "HMM1",
"bom": [
{
"sku": "tea",
"components": [
{
"material": "paperboard",
"gramsPerUnit": 42.5,
"rigidity": "rigid",
"recycledContentPct": 60
},
{
"material": "LDPE",
"gramsPerUnit": 1.8,
"rigidity": "flexible"
}
]
}
],
"shipments": [
{
"sku": "tea",
"destination": "DE",
"quantity": 85,
"returns": 2,
"date": "2026-06-01"
}
]
}
}
}{
"period": {
"start": "2026-04-01",
"end": "2026-06-30"
},
"systemOperatorId": "DE6004919627351",
"reportTypeCode": "HMM1",
"bom": [
{
"sku": "tea",
"components": [
{
"material": "paperboard",
"gramsPerUnit": 42.5,
"rigidity": "rigid",
"recycledContentPct": 60
},
{
"material": "LDPE",
"gramsPerUnit": 1.8,
"rigidity": "flexible"
}
]
}
],
"shipments": [
{
"sku": "tea",
"destination": "DE",
"quantity": 85,
"returns": 2,
"date": "2026-06-01"
}
]
}Request body
application/json
periodobjectrequired- Inclusive shipment dates for one reporting period.
period.startstring (date)requiredperiod.endstring (date)requiredsystemOperatorId"DE6005779374130" | "DE6005973594801" | "DE6006382012686" | "DE6004919627351" | "DE6005906579671" | "DE6005959764031" | … (14 values)required- LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4.
reportTypeCode"HMM1" | "HJM1"required- LUCID full report type. HMM1 is intra-year and HJM1 is year-end.
bomarray of objectrequired- Only include packaging subject to system participation and assigned to this system operator.
bom[].skustring (max 80 chars)requiredbom[].componentsarray of objectrequiredbom[].components[].materialstring (max 80 chars)requiredbom[].components[].gramsPerUnitnumber (≤ 100000)requiredbom[].components[].rigidity"rigid" | "flexible"bom[].components[].recycledContentPctnumber (0 to 100)bom[].components[].materialCode"10000" | "20000" | "30000" | "40000" | "50000" | "60000" | … (9 values)- Verified ZSVR MaterialCode for a material or composite that requires classification.
shipmentsarray of objectrequiredshipments[].skustring (max 80 chars)requiredshipments[].quantityinteger (0 to 1000000)requiredshipments[].destinationstringrequiredshipments[].datestring (date)requiredshipments[].returnsinteger (0 to 1000000)- Units returned from this shipment, including ordinary customer returns.
shipments[].notPlacedOnMarketinteger (0 to 1000000)- Subset of returns documented as never placed on this market. Only these units are subtracted.
Response
200 · application/json
destinationstringrequiredperiodobjectrequired- Inclusive shipment dates for one reporting period.
period.startstring (date)requiredperiod.endstring (date)requiredsourceobjectrequiredsource.urlstring (uri)requiredsource.versionstringrequiredneeds_reviewbooleanrequiredtotalsarray of objectrequiredtotals[].categorystringrequiredtotals[].labelstringrequiredtotals[].kgnumberrequiredtotals[].lucidMassstringrequired- LUCID mass in kg with a decimal comma and three decimal places.
trailarray of objectrequiredtrail[].skustring (max 80 chars)requiredtrail[].shipmentIndicesarray of numberrequiredtrail[].bomIndexnumber | nullrequiredtrail[].shippedUnitsnumberrequiredtrail[].returnedUnitsnumberrequiredtrail[].notPlacedOnMarketUnitsnumberrequiredtrail[].reportableUnitsnumberrequiredtrail[].componentsarray of objectrequiredtrail[].components[].componentIndexnumberrequiredtrail[].components[].materialstring (max 80 chars)requiredtrail[].components[].gramsPerUnitnumber (≤ 100000)requiredtrail[].components[].rigidity"rigid" | "flexible"trail[].components[].recycledContentPctnumber (0 to 100)trail[].components[].kgnumberrequiredtrail[].components[].categorystring | nullrequiredtrail[].components[].status"mapped" | "excluded" | "needs_review"requiredtrail[].components[].reason"unmapped_material" | "missing_classification_attributes" | "ambiguous_category" | "category_requires_confirmation" | "unknown_category"trail[].components[].suppliedCategorystringtrail[].components[].missingAttributesarray of stringtrail[].components[].candidateCategoriesarray of stringtrail[].components[].exclusionstringtrail[].issue"missing_bom"systemOperatorId"DE6005779374130" | "DE6005973594801" | "DE6006382012686" | "DE6004919627351" | "DE6005906579671" | "DE6005959764031" | … (14 values)required- LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4.
reportTypeCode"HMM1" | "HJM1"required- LUCID full report type. HMM1 is intra-year and HJM1 is year-end.
schemaobjectrequiredschema.urlstring (uri)requiredschema.versionstringrequiredcsvstring | nullrequired- CSV of mapped weights. Null if no weights were mapped.
xmlstring | nullrequired- Save this JSON string as UTF-8 without trimming. Its leading U+FEFF becomes the BOM required by LUCID. Null if the report requires review or no weights were mapped.
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"period": {
"type": "object",
"properties": {
"start": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
}
},
"required": [
"start",
"end"
],
"additionalProperties": false,
"description": "Inclusive shipment dates for one reporting period."
},
"systemOperatorId": {
"type": "string",
"enum": [
"DE6005779374130",
"DE6005973594801",
"DE6006382012686",
"DE6004919627351",
"DE6005906579671",
"DE6005959764031",
"DE6007094250999",
"DE6007086225568",
"DE6007168805143",
"DE6004738522858",
"DE6004844021815",
"DE6007780383579",
"DE6257129182400",
"DE6161328237553"
],
"description": "LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4."
},
"reportTypeCode": {
"type": "string",
"enum": [
"HMM1",
"HJM1"
],
"description": "LUCID full report type. HMM1 is intra-year and HJM1 is year-end."
},
"bom": {
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"components": {
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"material": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"gramsPerUnit": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"rigidity": {
"type": "string",
"enum": [
"rigid",
"flexible"
]
},
"recycledContentPct": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"materialCode": {
"description": "Verified ZSVR MaterialCode for a material or composite that requires classification.",
"type": "string",
"enum": [
"10000",
"20000",
"30000",
"40000",
"50000",
"60000",
"68000",
"70000",
"80000"
]
}
},
"required": [
"material",
"gramsPerUnit"
],
"additionalProperties": false
}
}
},
"required": [
"sku",
"components"
],
"additionalProperties": false
},
"description": "Only include packaging subject to system participation and assigned to this system operator."
},
"shipments": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"quantity": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"destination": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"returns": {
"default": 0,
"description": "Units returned from this shipment, including ordinary customer returns.",
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"notPlacedOnMarket": {
"default": 0,
"description": "Subset of returns documented as never placed on this market. Only these units are subtracted.",
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"sku",
"quantity",
"destination",
"date"
],
"additionalProperties": false
}
}
},
"required": [
"period",
"systemOperatorId",
"reportTypeCode",
"bom",
"shipments"
],
"additionalProperties": false,
"examples": [
{
"period": {
"start": "2026-04-01",
"end": "2026-06-30"
},
"systemOperatorId": "DE6004919627351",
"reportTypeCode": "HMM1",
"bom": [
{
"sku": "tea",
"components": [
{
"material": "paperboard",
"gramsPerUnit": 42.5,
"rigidity": "rigid",
"recycledContentPct": 60
},
{
"material": "LDPE",
"gramsPerUnit": 1.8,
"rigidity": "flexible"
}
]
}
],
"shipments": [
{
"sku": "tea",
"destination": "DE",
"quantity": 85,
"returns": 2,
"date": "2026-06-01"
}
]
}
]
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"destination": {
"type": "string"
},
"period": {
"type": "object",
"properties": {
"start": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
}
},
"required": [
"start",
"end"
],
"additionalProperties": false,
"description": "Inclusive shipment dates for one reporting period."
},
"source": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "string"
}
},
"required": [
"url",
"version"
],
"additionalProperties": false
},
"needs_review": {
"type": "boolean"
},
"totals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string"
},
"label": {
"type": "string"
},
"kg": {
"type": "number"
},
"lucidMass": {
"type": "string",
"description": "LUCID mass in kg with a decimal comma and three decimal places."
}
},
"required": [
"category",
"label",
"kg",
"lucidMass"
],
"additionalProperties": false
}
},
"trail": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"shipmentIndices": {
"type": "array",
"items": {
"type": "number"
}
},
"bomIndex": {
"type": [
"number",
"null"
]
},
"shippedUnits": {
"type": "number"
},
"returnedUnits": {
"type": "number"
},
"notPlacedOnMarketUnits": {
"type": "number"
},
"reportableUnits": {
"type": "number"
},
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"componentIndex": {
"type": "number"
},
"material": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"gramsPerUnit": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100000
},
"rigidity": {
"type": "string",
"enum": [
"rigid",
"flexible"
]
},
"recycledContentPct": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"kg": {
"type": "number"
},
"category": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"mapped",
"excluded",
"needs_review"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"unmapped_material",
"missing_classification_attributes",
"ambiguous_category",
"category_requires_confirmation"
]
},
{
"type": "string",
"const": "unknown_category"
}
]
},
"suppliedCategory": {
"type": "string"
},
"missingAttributes": {
"type": "array",
"items": {
"type": "string"
}
},
"candidateCategories": {
"type": "array",
"items": {
"type": "string"
}
},
"exclusion": {
"type": "string"
}
},
"required": [
"componentIndex",
"material",
"gramsPerUnit",
"kg",
"category",
"status"
],
"additionalProperties": false
}
},
"issue": {
"type": "string",
"const": "missing_bom"
}
},
"required": [
"sku",
"shipmentIndices",
"bomIndex",
"shippedUnits",
"returnedUnits",
"notPlacedOnMarketUnits",
"reportableUnits",
"components"
],
"additionalProperties": false
}
},
"systemOperatorId": {
"type": "string",
"enum": [
"DE6005779374130",
"DE6005973594801",
"DE6006382012686",
"DE6004919627351",
"DE6005906579671",
"DE6005959764031",
"DE6007094250999",
"DE6007086225568",
"DE6007168805143",
"DE6004738522858",
"DE6004844021815",
"DE6007780383579",
"DE6257129182400",
"DE6161328237553"
],
"description": "LUCID registration ID of the system operator for these volumes. See the ZSVR XML guide §2.3.4."
},
"reportTypeCode": {
"type": "string",
"enum": [
"HMM1",
"HJM1"
],
"description": "LUCID full report type. HMM1 is intra-year and HJM1 is year-end."
},
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"version": {
"type": "string"
}
},
"required": [
"url",
"version"
],
"additionalProperties": false
},
"csv": {
"description": "CSV of mapped weights. Null if no weights were mapped.",
"type": [
"string",
"null"
]
},
"xml": {
"description": "Save this JSON string as UTF-8 without trimming. Its leading U+FEFF becomes the BOM required by LUCID. Null if the report requires review or no weights were mapped.",
"type": [
"string",
"null"
]
}
},
"required": [
"destination",
"period",
"source",
"needs_review",
"totals",
"trail",
"systemOperatorId",
"reportTypeCode",
"schema",
"csv",
"xml"
],
"additionalProperties": false
}