Skip to main content

PackNet Online Documentation

Standard Bin Pack (SBP)

While traditional setups require packers to select the box size, SBP programmatically determines which stock box will be the best option when packing items. This endpoint uses a predefined list of box sizes. PackNet Cube takes the items to pack and returns a list of boxes ordered by selectionOptions.orderBy as defined in the request. See selectionOptions.

SBP Example

    "orderId":"OrderIdFromCustomer",
    "customfields":
    {
        "customField": "customString",
        "customInt": 123,
        "customobject": {
            "firstName": "...",
            "lastName":"...",
            "age":1300
        },
        "customIntArray":[1,2,3,4],
        "customListOfObjects":[
        {
            "firstName": "...",
            "lastName":"",
            "age":1300
        },
        {
            "firstName": "...",
            "lastName":"",
            "age":1300
        },
        {
            "firstName": "...",
            "lastName":"",
            "age":1300
        }
        ]
    } , 
    {    

   "BoxList": 
    [
        {
        "Alias": "Box1",
        "Dimension1": 10,
        "Dimension2": 8,
        "Dimension3": 4.5
        },
        {
        "Alias": "Box2",
        "Dimension1": 10,
        "Dimension2": 8,
        "Dimension3": 4.75
        },
        {
        "Alias": "Box3",
        "Dimension1": 10,
        "Dimension2": 8,
        "Dimension3": 5
        }
    ],
    "items": [
        {
            "dimension1": 10.95,
            "dimension2": 8.5,
            "dimension3": 1,
            "id": 2,
            "quantity": 2,
            "sku": "Real01"
        }
    ],
    "limit": 1,
    "maximumPotentialContainers": 500,
    "selectionOptions": {
        "cutoffTime": 0,
        "orderBy": "percent-filled"
    }
}
[
    {
        "containerId": 56,       
        "timeoutReached": false,        
        "orderId":"OrderIdFromCustomer",
        "packagingResult": {
            "isCompletePack": true,
            "packedItems": [
                {
                    "id": 2,
                    "isPacked": true,
                    "dimension1": 10.95,
                    "dimension2": 8.5,
                    "dimension3": 1.0,
                    "coordinateX": 0.0,
                    "coordinateY": 0.0,
                    "coordinateZ": 0.0,
                    "quantity": 1,
                    "packedDimensionX": 10.95,
                    "packedDimensionY": 1.0,
                    "packedDimensionZ": 8.5,
                    "volume": 93.075,
                    "canNest": false,
                    "nestGrowthDimension1": 0.0,
                    "nestGrowthDimension2": 0.0,
                    "nestGrowthDimension3": 0.0,
                    "nestMaxDimension1": 0.0,
                    "nestMaxDimension2": 0.0,
                    "nestMaxDimension3": 0.0,
                    "canContain": false,
                    "containDimension1": 0.0,
                    "containDimension2": 0.0,
                    "containDimension3": 0.0,
                    "sku": "Real01",
                    "voidContents": null,
                    "nestedQuantity": 0,
                    "weight": 0.0
                },
                {
                    "id": 2,
                    "isPacked": true,
                    "dimension1": 10.95,
                    "dimension2": 8.5,
                    "dimension3": 1.0,
                    "coordinateX": 0.0,
                    "coordinateY": 1.0,
                    "coordinateZ": 0.0,
                    "quantity": 1,
                    "packedDimensionX": 10.95,
                    "packedDimensionY": 1.0,
                    "packedDimensionZ": 8.5,
                    "volume": 93.075,
                    "canNest": false,
                    "nestGrowthDimension1": 0.0,
                    "nestGrowthDimension2": 0.0,
                    "nestGrowthDimension3": 0.0,
                    "nestMaxDimension1": 0.0,
                    "nestMaxDimension2": 0.0,
                    "nestMaxDimension3": 0.0,
                    "canContain": false,
                    "containDimension1": 0.0,
                    "containDimension2": 0.0,
                    "containDimension3": 0.0,
                    "sku": "Real01",
                    "voidContents": null,
                    "nestedQuantity": 0,
                    "weight": 0.0
                }
            ],
            "packTimeInMilliseconds": 0,
            "percentContainerVolumePacked": 94.02,
            "percentItemVolumePacked": 100.0,
            "unpackedItems": []
        },
        "container": {
            "id": 56,
            "dimension1": 11.0,
            "dimension2": 9.0,
            "dimension3": 2.0,
            "volume": 198.0,
            "ratio": 1.2222222222222222222222222222,
            "surfaceArea": 278.0,
            "distance": 14.3527000944073,
            "maximumWeight": 100.0
        },
        "solutionTimeMs": 483,
        "customfields":
        {
            "customField": "customString",
            "customInt": 123,
            "customobject": {
                "firstName": "...",
                "lastName":"...",
                "age":1300
            },
            "customIntArray":[1,2,3,4],
            "customListOfObjects":[
            {
                "firstName": "...",
                "lastName":"",
                "age":1300
            },
            {
                "firstName": "...",
                "lastName":"",
                "age":1300
            },
            {
                "firstName": "...",
                "lastName":"",
                "age":1300
            }
            ]
        }
    }
]