packBins endpoint - nondeterministic data for itemsNotPacked
Posted: Tue Sep 29, 2020 12:47 pm
Hello,
We had a problem using the following endpoint:
https://xserver2.cloud.ptvgroup.com/ser ... l/packBins
We have 2 requests with items that are over the bin's limit.
1st request adds 67 items, and returns 1 item not packed, resulting in a limit of 66 items
2nd request adds 100 items and returns 32 items, resulting in a limit of 68 items
All items and bins userd in these requests are identical. Below you can find the 2 payloads and responses:
1st request payload
1st request response
2nd request payload
2nd request response
Please let us know if there is something we're doing wrong on our part.
Best regards,
John
We had a problem using the following endpoint:
https://xserver2.cloud.ptvgroup.com/ser ... l/packBins
We have 2 requests with items that are over the bin's limit.
1st request adds 67 items, and returns 1 item not packed, resulting in a limit of 66 items
2nd request adds 100 items and returns 32 items, resulting in a limit of 68 items
All items and bins userd in these requests are identical. Below you can find the 2 payloads and responses:
1st request payload
Code: Select all
{
"bins": [
{
"dimensions": {
"x": 240,
"y": 244,
"z": 1360
},
"id": "Truck",
"maximumWeightCapacity": 20000,
"numberOfBins": 1
}
],
"items": [
{
"allowedOrientations": null,
"dimensions": {
"x": 120,
"y": 80,
"z": 120
},
"id": "A",
"maximumSurfaceLoads": null,
"numberOfItems": 67,
"weight": 50
}
]
}
Code: Select all
{
"$type": "PackedBinsResponse",
"itemsNotPacked": [
{
"dimensions": {
"x": 120,
"y": 80,
"z": 120
},
"id": "A",
"numberOfItems": 1,
"weight": 50
}
],
...
}
Code: Select all
{
"bins": [
{
"dimensions": {
"x": 240,
"y": 244,
"z": 1360
},
"id": "Truck",
"maximumWeightCapacity": 20000,
"numberOfBins": 1
}
],
"items": [
{
"allowedOrientations": null,
"dimensions": {
"x": 120,
"y": 80,
"z": 120
},
"id": "A",
"maximumSurfaceLoads": null,
"numberOfItems": 100,
"weight": 50
}
]
}
Code: Select all
{
"$type": "PackedBinsResponse",
"itemsNotPacked": [
{
"dimensions": {
"x": 120,
"y": 80,
"z": 120
},
"id": "A",
"numberOfItems": 32,
"weight": 50
}
],
...
}
Best regards,
John