Cargo Load Planner API is organized around REST. Our API accepts HTTP POST request with JSON data in
the body of the post message using the Content-Type: application/json request header,
returns JSON-encoded responses.
Cargo Load Planner API uses standard HTTP response codes.
All requests are sent as an HTTP POST with a JSON body.
https://www.cargo-load-planner.com/api/v1/calculator/containerSend your packages and container as JSON in the request body.
{
"multi": 0,
"cal_type": "c",
"boxes": [
{
"id": 1,
"name": "box-1",
"dim1": 45,
"dim2": 55,
"dim3": 65,
"dim_uom": "cm",
"weight": 10,
"weight_uom": "kg",
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"heavy": 0,
"color": "#ff0000",
"group_id": 1
},
{
"id": 1,
"name": "box-2",
"dim1": 75,
"dim2": 40,
"dim3": 35,
"dim_uom": "cm",
"weight": 10,
"weight_uom": "kg",
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"heavy": 0,
"color": "#ffff00",
"group_id": 1
}
],
"container": {
"id": 1,
"name": "Standard 20 feet",
"dim_uom": "cm",
"x": 235,
"y": 239,
"z": 590,
"volume": 33.2,
"weight": 21770,
"fs":0,
"bs":0,
"ls":0,
"rs":0,
"ts":0
}
}
| Parameter | Possible Values | Type | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| multi | Do we need to generate multiple containers. Possible values 1 / 0 | number | |||||||||||||||||||||||||||||||||||||||||||||
| cal_type | Possible values c/p c for container and p for pallet | string | |||||||||||||||||||||||||||||||||||||||||||||
| Boxes (Array of Objects) |
|
||||||||||||||||||||||||||||||||||||||||||||||
| Container Object |
|
||||||||||||||||||||||||||||||||||||||||||||||
A successful request returns the packed layout and utilization summary.
{
"status": "success",
"description": "",
"unique_id": "00fa52f3-6d5c-4520-908b-466d6db30e92",
"multi": 0,
"cal_type": "c",
"best_option_id": 0,
"boxes": [
{
"id": 1,
"name": "box-1",
"dim1": 45,
"dim2": 55,
"dim3": 65,
"dim_uom": "cm",
"weight": 10,
"weight_uom": "kg",
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"heavy":0,
"color": "#ff0000",
"group_id": 1
},
{
"id": 1,
"name": "box-2",
"dim1": 75,
"dim2": 40,
"dim3": 35,
"dim_uom": "cm",
"weight": 10,
"weight_uom": "kg",
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"heavy": 0,
"color": "#ffff00",
"group_id": 1
}
],
"container": {
"name": "Standard 20 feet",
"id": 1,
"dim_uom": "cm",
"x": 235,
"y": 239,
"z": 590,
"volume": 33.2,
"weight": 21770,
"fs":0,
"bs":0,
"ls":0,
"rs":0,
"ts":0
},
"item_placement_info": [
{
"sno": 1,
"id": 1,
"name": "box-1",
"dim1": 450,
"dim2": 550,
"dim3": 650,
"weight": 10000,
"volume": 160875000,
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"locx": 0,
"locy": 0,
"locz": 0,
"dimx": 650,
"dimy": 550,
"dimz": 450,
"packsno": 1,
"option_id": 0,
"pallet_id": 1,
"color": "0xff0000"
},
{
"sno": 0,
"id": 1,
"name": "box-2",
"dim1": 750,
"dim2": 400,
"dim3": 350,
"weight": 10000,
"volume": 105000000,
"count": 1,
"tilt_length": 1,
"tilt_width": 1,
"stacked": 1,
"locx": 650,
"locy": 0,
"locz": 0,
"dimx": 750,
"dimy": 350,
"dimz": 400,
"packsno": 2,
"option_id": 0,
"pallet_id": 1,
"color": "0xffff00"
}
],
"summary": [
{
"option_id": 0,
"packed_weight": 20000,
"weight_percent": 0.09,
"packed_volume": 265875000,
"volume_percent": 0.80,
"max_volume": 33200000000.0,
"max_weight": 21770000
},
{
"option_id": 1,
"packed_weight": 20000,
"weight_percent": 0.09,
"packed_volume": 265875000,
"volume_percent": 0.80,
"max_volume": 33200000000.0,
"max_weight": 21770000
}
],
"summary2": [
{
"option_id": 0,
"pallet_id": 1,
"packed_weight": 20000,
"weight_percent": 0.09,
"packed_volume": 265875000,
"volume_percent": 0.80,
"max_weight": 21770000,
"max_volume": 33200000000.0
},
{
"option_id": 1,
"pallet_id": 2,
"packed_weight": 20000,
"weight_percent": 0.09,
"packed_volume": 265875000,
"volume_percent": 0.80,
"max_weight": 21770000,
"max_volume": 33200000000.0
}
],
"un_allocated_items": [
{
"option_id": 0,
"id": 1,
"qty": 144
},
{
"option_id": 1,
"id": 1,
"qty": 148
}
]
}
| Parameter | Possible outcome | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| status | "success", "failed" | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description | provided in case of "failed" status | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| unique_id | Calculation unique identification id | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| multi | Do we need to generate multiple containers. Possible values 1 / 0 | number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cal_type | Possible values c/p c for container and p for pallet | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| best_option_id | best calculation option id | number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Boxes | same as input | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| container | same as input | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| item_placement_info |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| summary |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| summary2 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| un_allocated_items |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Start a 10-day free trial. Prove the ROI on your next shipment.