Load Calculator API

URL https://packer.searates.com/services/api
HTTP Method POST

Input Parameters

Parameter name Required Type Description
api_key yes string API key: hexadecimal number
image_all no bool Shows additional details by images, allowing to see step-by-step container load process.
Default value: false
packer_data_cargo yes array Sets cargo physical details
box_type no string Specify the type of cargo. The available values for this parameter are: box | big-bag | barrel | sack
Default value: box
box_name yes number Cargo name
box_length yes number Cargo length in millimeters (mm)
box_width yes number Cargo width in millimeters (mm)
box_height yes number Cargo height in millimeters (mm)
box_weight yes number Cargo weight in kilograms (kg)
box_number no number Cargo quantity
Default value: 1
box_color yes string Cargo color (six-digit HEX number)
Default value: 0050E3
packer_rules_height no bool Set if accessible to load cargo by height position
Default value: true
packer_rules_length no bool Set if accessible to load cargo by length position
Default value: true
packer_rules_width no bool Set if accessible to load cargo by width position
Default value: true
packer_data_container no array If this parameter doesn't exist, container type will be set automatically (20’ST/40’ST/40’HQ/45’HQ). Otherwise container type must be set manually.
container_name yes string Container or Truck name
container_length yes number Container length in millimeters (mm)
container_width yes number Container width in millimeters (mm)
container_height yes number Container height in millimeters (mm)
container_tonnage yes number Max container weight in kilograms (kg)
pallet_enable no bool Enable loading on pallets
Default value: false
pallet_length no number Pallet length in millimeters (mm)
Default value: 1000
pallet_width no number Pallet width in millimeters (mm)
Default value: 1200
pallet_height no number Pallet height in millimeters (mm)
Default value: 150
pallet_tonnage no number Pallet payload in kilograms (kg)
Default value: 750
pallet_max_height no number Pallet Max loading height level in millimeters (mm)
Default value: 2000
pallet_level_separate_height no number Thickness of separating plate of pallet in millimeters (mm)
Default value: 50

Basic

$.ajax({
        type: "POST",
        dataType: 'json',
        url: "https://packer.searates.com/services/api",
        data: {
            api_key: '...',
            packer_data_cargo: [
                {
                    box_type: 'box',
                    box_name: 'Cargo 1',
                    box_length: 300,
                    box_width: 700,
                    box_height: 300,
                    box_weight: 30,
                    box_number: 100,
                    box_color: 'F48B04'
                },
                {
                    box_type: 'barrel',
                    box_name: 'Cargo 2',
                    box_length: 400,
                    box_width: 400,
                    box_height: 400,
                    box_weight: 30,
                    box_number: 30,
                    box_color: 'CF0F0F'
                }
            ]
        },
        success: function (resp) {
            console.log(resp);
        }
    });

Full example

$.ajax({
        type: "POST",
        dataType: 'json',
        url: "https://packer.searates.com/services/api",
        data: {
            api_key: '...',
            image_all: true,
            pallet_enable: true,
            pallet_length: 900,
            pallet_width: 1200,
            pallet_height: 160,
            pallet_tonnage: 800,
            pallet_max_height: 2500,
            pallet_level_separate_height: 50,
            packer_data_cargo: [
                {
                    box_type: 'box',
                    box_name: 'Cargo 1',
                    box_length: 300,
                    box_width: 700,
                    box_height: 300,
                    box_weight: 30,
                    box_number: 200,
                    box_color: 'F48B04',

                    packer_rules_height: false,
                    packer_rules_length: false,
                    packer_rules_width: true
                },
                {
                    box_type: 'sack',
                    box_name: 'Cargo 2',
                    box_length: 300,
                    box_width: 700,
                    box_height: 300,
                    box_weight: 30,
                    box_number: 200,
                    box_color: 'FF1B00',

                    packer_rules_height: false,
                    packer_rules_length: false,
                    packer_rules_width: true
                },
                {
                    box_type: 'barrel',
                    box_name: 'Cargo 3',
                    box_length: 400,
                    box_width: 400,
                    box_height: 400,
                    box_weight: 30,
                    box_number: 300,
                    box_color: 'CF0F0F'
                }
            ],
            packer_data_container: [
                {
                    container_name: 'Truck 1',
                    container_length: 5000,
                    container_width: 2000,
                    container_height: 2400,
                    container_tonnage: 25000
                },
                {
                    container_name: 'Truck 2',
                    container_length: 5895,
                    container_width: 2350,
                    container_height: 2393,
                    container_tonnage: 28200
                },
                {
                    container_name: 'Truck 3',
                    container_length: 5895,
                    container_width: 2350,
                    container_height: 2393,
                    container_tonnage: 28200
                }
            ]
        },
        success: function (resp) {
            console.log(resp);
        }
    });

Example JSON response

{
    "unit":{
        "40' hq":1,
        "20' dv":1
    },
    "packages_total":700,
    "packages_packed":700,
    "group":[
    {
        "image64":"data:image\/png;base64,...",
        "name":"40' hq",
        "number":1,
        "cargo":[
            {
                "name":"Cargo 1",
                "box_number":130,
                "box_percent":65
            },
            {
                "name":"Cargo 2",
                "box_number":182,
                "box_percent":91
            },
            {
                "name":"Cargo 3",
                "box_number":286,
                "box_percent":95
            }
        ],
        "packed":598,
        "packed_percent":85,
        "volume":37.96,
        "volume_percent":50,
        "weight":17940,
        "weight_percent":63,
        "limits":"Cargo quantity is limited by volume"
    },
    {
        "image64":"data:image\/png;base64,...",
        "name":"20' dv",
        "number":1,
        "cargo":[
            {
                "name":"Cargo 1",
                "box_number":70,
                "box_percent":35
            },
            {
                "name":"Cargo 2",
                "box_number":18,
                "box_percent":9
            },
            {
                "name":"Cargo 3",
                "box_number":14,
                "box_percent":4
            }
        ],
        "packed":102,
        "packed_percent":14,
        "volume":6.44,
        "volume_percent":19,
        "weight":3060,
        "weight_percent":11
    }
]
}