Units & Packaging — API and MCP
Overview
This area exposes 18 operations. Each of them is at the same time an MCP tool.
This area is behind the module switch module.packaging. With the module off, these operations answer 404.
Operations
| Method | Path | Purpose | Permission | Parameters |
|---|---|---|---|---|
GET | /api/v1/packaging-consistency-checks | Collection of PackagingConsistencyCheck | packaging.units.view · packaging.units.manage | page |
POST | /api/v1/packaging-consistency-checks | Gebinde und Umrechnungen jetzt prüfen — Startet den Konsistenz-Check sofort und liefert seine Befunde (Verkaufsgebinde ohne Standard, mehrere Standards, Übergebinde fehlt/geht nicht auf, doppelte GTIN, widersprüchliche Umrechnungen). Payload {}. | packaging.units.manage | — |
GET | /api/v1/packaging-consistency-checks/{ulid} | Read one PackagingConsistencyCheck | packaging.units.view · packaging.units.manage | ulid |
GET | /api/v1/product-packagings | Collection of ProductPackaging | packaging.units.view · packaging.units.manage | page, productId, role |
POST | /api/v1/product-packagings | Create a ProductPackaging | packaging.units.manage | + body |
DELETE | /api/v1/product-packagings/{ulid} | Delete a ProductPackaging | packaging.units.manage | ulid |
PATCH | /api/v1/product-packagings/{ulid} | Update a ProductPackaging | packaging.units.manage | ulid, + body |
GET | /api/v1/unit-conversions | Collection of UnitConversion | packaging.units.view · packaging.units.manage | page, productId, global |
POST | /api/v1/unit-conversions | Create a UnitConversion | packaging.units.manage | + body |
GET | /api/v1/unit-conversions/preview | Positionsmenge live umrechnen (Basis-Einheit und Gebinde) — Rechnet eine Menge in einer Einheit, einem Gebinde-Code oder einer Gebinde-GTIN auf die Basis-Einheit des Artikels um und nennt dieselbe Menge in jedem Gebinde des Artikels. Nicht umrechenbar: convertible: false. | packaging.units.view · packaging.units.manage | productId, qty, unit |
DELETE | /api/v1/unit-conversions/{ulid} | Delete a UnitConversion | packaging.units.manage | ulid |
GET | /api/v1/unit-conversions/{ulid} | Read one UnitConversion | packaging.units.view · packaging.units.manage | ulid |
PATCH | /api/v1/unit-conversions/{ulid} | Update a UnitConversion | packaging.units.manage | ulid, + body |
GET | /api/v1/units-of-measure | Collection of UnitOfMeasure | packaging.units.view · packaging.units.manage | page, dimension, active |
POST | /api/v1/units-of-measure | Create a UnitOfMeasure | packaging.units.manage | + body |
DELETE | /api/v1/units-of-measure/{code} | Delete a UnitOfMeasure | packaging.units.manage | code |
GET | /api/v1/units-of-measure/{code} | Read one UnitOfMeasure | packaging.units.view · packaging.units.manage | code |
PATCH | /api/v1/units-of-measure/{code} | Update a UnitOfMeasure | packaging.units.manage | code, + body |
Purpose texts that do not follow the standard pattern are taken verbatim from the interface description in the code.