Browse the catalog
Call GET /v1/packagings to fetch available packaging items. Each item has apublicId and an inputs array. The fieldsType on each input determines what to send when adding it:
fieldsType | What to send |
|---|---|
Default | itemPublicId only |
Single | itemPublicId + one data.publicId from fields as itemSelectableMaterialPublicId |
Multiple | itemPublicId + one or more data.publicId from fields as itemSelectableMaterialPublicId |
Add the packaging
Call POST /v1/screenings/{screeningId}/packagings using the screeningpublicId from the screening step.
The response includes a screening packaging publicId — save this for the update call.
Set packaging details
Call the update endpoint with the screening packagingpublicId.
Functional unit fields work the same as materials:
functionalUnitValue— quantity in the chosen unitfunctionalUnitKilogramValue— conversion factor to kg; not needed if the unit is alreadyKilogram
amount— number of unitsamountType—ProductsPerContainerorPiecesPerProductwidth,height,depth— dimensions in cm
locationListItemPublicId— geographical origin (lli_prefix), from GET /v1/geographical/locationstransportLocationPublicId— supplier location (trl_prefix), from your created locations
recycleShare — recycle percentage, only available if the item supports it.
For Multiple type inputs, also set proportion on each entry — values must sum to 1.0.
Master box
A master box is a secondary packaging layer used for distribution. It has all the same fields as regular packaging, plus:palletPublicId— references a pallet (plt_prefix); fetch available pallets from GET /v1/packagings/palletsamountPerPallet— number of master boxes per pallet; only set if a pallet is selected