Veeroute Packer API.
Mono-pallet
If the pallet is fully equipped with the same product, then such a pallet is called mono-pallet, such a pallet has the following loading rules:
Zone tray
After the formation of mono-pallets, the remaining part of the goods of the same article is placed on the next pallet, which is divided into zones by means of a cardboard partition in such a way that only one item of goods is placed in each zone, while the zones have the following restrictions:
If the above steps fail to place the item in this way, so that the pallet is of the required height or weight, mixboxes are used:
The loaded pallets are stacked on top of each other, the slot is where the stack of pallets is placed.
The slot has no physical body - so the dimensions of the body
of the slot are zero.
To indicate the location of packages and goods, a local coordinate system is used, in which the coordinates of a particular object are indicated relative to the near left lower corner of the parent object, while:
The ratio of the axes of goods and packages:
Planning the optimal package.
Data for calculation.
required | Array of objects (product) [ 1 .. 70001 ] items unique List of products. |
required | Array of objects (package) [ 1 .. 11 ] items unique List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX). |
object (pack_settings) Packing settings. | |
dataset_name | string (dataset_name) [ 0 .. 512 ] characters Example: "custom_dataset_one" The name of the dataset. A technical field that does not affect calculation. |
required | object (tracedata) Data for request tracing. |
required | Array of objects (blueprint) [ 0 .. 70001 ] items Example: "[object Object]" A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks. |
required | object (pack_statistics) General statistics for packing scheme. |
Array of objects (entity_warning_list) [ 0 .. 70001 ] items List of warnings. Depending on the flag | |
object (unpacked_items) Unpacked items list. | |
calculation_progress required | integer <int32> (calculation_progress) [ 0 .. 100 ] Example: "52" Calculation progress as a percentage. The progress displays the current number of completed steps. |
required | object (calculation_info) Calculation information. |
{- "products": [
- {
- "key": "product_1",
- "count": 1,
- "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}
}
], - "packages": [
- {
- "key": "slot_default",
- "type": "SLOT",
- "body_dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "mass": 0
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1800,
- "mass": 1000000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - {
- "key": "pallet_default",
- "type": "PALLET",
- "body_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 10000
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1650,
- "mass": 650000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 150
}
}, - {
- "key": "mixbox_default",
- "type": "MIXBOX",
- "body_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 0
}, - "container_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 60000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}
], - "pack_settings": {
- "calculation_settings": {
- "max_calculation_time": "PT10M",
- "max_waiting_time": "PT10M",
- "result_ttl": "PT10M",
- "treat_warnings_as_errors": false
}
}
}
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "example_username",
- "company": "example_company",
- "env": "edge7",
- "pod": "aaaaaaaa-2222-cccc-4444-eeeeeeeeeeee",
- "service": "PACKER",
- "operation": "run_pack_calculation",
- "time": "2024-11-21T16:55:35.370332Z"
}, - "blueprint": [
- {
- "package_key": "slot_default",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 300,
- "mass": 70000
}, - "product_group_layouts": [ ],
- "package_layouts": [
- {
- "package_key": "pallet_default",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 300,
- "mass": 70000
}, - "product_group_layouts": [
- {
- "product_key": "product_1",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 150
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}, - "product_layouts": [
- {
- "product_key": "product_1",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}
}
]
}
], - "package_layouts": [ ]
}
]
}
], - "statistics": {
- "products_count": 1,
- "packages_count": 2,
- "total_mass": 60,
- "total_volume": 0.144,
- "package_statistics": [
- {
- "package_key": "slot_default",
- "package_type": "SLOT",
- "count": 1,
- "max_container_mass": 60,
- "max_container_volume": 0.144,
- "utilization_by_mass": 0.06,
- "utilization_by_volume": 0.0833
}, - {
- "package_key": "pallet_default",
- "package_type": "PALLET",
- "count": 1,
- "max_container_mass": 60,
- "max_container_volume": 0.144,
- "utilization_by_mass": 0.0923,
- "utilization_by_volume": 0.0909
}
]
}, - "calculation_progress": 100,
- "calculation_info": {
- "status": "FINISHED_IN_TIME",
- "result_version": 1,
- "preparing_time": "PT1M10S",
- "business_validation_time": "PT1M10S",
- "math_validation_time": "PT1M10S",
- "waiting_time": "PT15S",
- "calculation_time": "PT1M10S"
}, - "warnings": [ ],
- "unpacked_items": {
- "product_keys": [ ],
- "package_keys": [
- "mixbox_default"
]
}
}
Data for calculation.
required | Array of objects (product) [ 1 .. 70001 ] items unique List of products. |
required | Array of objects (package) [ 1 .. 11 ] items unique List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX). |
object (pack_settings) Packing settings. | |
dataset_name | string (dataset_name) [ 0 .. 512 ] characters Example: "custom_dataset_one" The name of the dataset. A technical field that does not affect calculation. |
required | object (tracedata) Data for request tracing. |
process_code required | string <uuid> (process_code) Example: "11111111-2222-3333-4444-555555555555" Process code - calculation identifier. |
{- "products": [
- {
- "key": "product_1",
- "count": 1,
- "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}
}
], - "packages": [
- {
- "key": "slot_default",
- "type": "SLOT",
- "body_dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "mass": 0
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1800,
- "mass": 1000000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - {
- "key": "pallet_default",
- "type": "PALLET",
- "body_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 10000
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1650,
- "mass": 650000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 150
}
}, - {
- "key": "mixbox_default",
- "type": "MIXBOX",
- "body_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 0
}, - "container_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 60000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}
], - "pack_settings": {
- "calculation_settings": {
- "max_calculation_time": "PT10M",
- "max_waiting_time": "PT10M",
- "result_ttl": "PT10M",
- "treat_warnings_as_errors": false
}
}
}
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "username_for_login",
- "company": "smart_company",
- "service": "UNIVERSAL",
- "operation": "run_plan_calculation",
- "env": "edge7",
- "pod": "11111111-2222-3333-4444-555555555555",
- "time": "2024-11-21T09:30:00+03:00"
}, - "process_code": "11111111-2222-3333-4444-555555555555"
}
Cancel calculation process by the calculation identifier.
process_code required | string <uuid> (process_code) Example: 11111111-2222-3333-4444-555555555555 Unique process identifier. |
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "example_username",
- "company": "example_company",
- "env": "edge7",
- "pod": "aaaaaaaa-2222-cccc-4444-eeeeeeeeeeee",
- "service": "PACKER",
- "operation": "run_plan_calculation",
- "time": "2024-11-28T17:13:27.945583194Z"
}, - "message": "logical",
- "schema_errors": [ ],
- "logical_errors": [
- {
- "type": "UNIQUE_IDS_VIOLATION",
- "entities": [
- {
- "entity_key": "essence_1",
- "entity_type": "PACKAGE"
}
]
}
], - "warnings": [ ]
}
Read calculation state by the calculation identifier.
process_code required | string <uuid> (process_code) Example: 11111111-2222-3333-4444-555555555555 Unique process identifier. |
required | object (tracedata) Data for request tracing. |
calculation_progress required | integer <int32> (calculation_progress) [ 0 .. 100 ] Example: "52" Calculation progress as a percentage. The progress displays the current number of completed steps. |
required | object (calculation_info) Calculation information. |
required | object (tracedata) Data for request tracing. |
calculation_progress required | integer <int32> (calculation_progress) [ 0 .. 100 ] Example: "52" Calculation progress as a percentage. The progress displays the current number of completed steps. |
required | object (calculation_info) Calculation information. |
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "username_for_login",
- "company": "smart_company",
- "service": "UNIVERSAL",
- "operation": "run_plan_calculation",
- "env": "edge7",
- "pod": "11111111-2222-3333-4444-555555555555",
- "time": "2024-11-21T09:30:00+03:00"
}, - "calculation_progress": 52,
- "calculation_info": {
- "status": "FINISHED_IN_TIME",
- "result_version": 133,
- "preparing_time": "PT1H45M",
- "business_validation_time": "PT1H45M",
- "math_validation_time": "PT1H45M",
- "waiting_time": "PT1H45M",
- "calculation_time": "PT1H45M"
}
}
Getting the result based on the calculation identifier.
process_code required | string <uuid> (process_code) Example: 11111111-2222-3333-4444-555555555555 Unique process identifier. |
required | object (tracedata) Data for request tracing. |
required | Array of objects (blueprint) [ 0 .. 70001 ] items Example: "[object Object]" A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks. |
required | object (pack_statistics) General statistics for packing scheme. |
Array of objects (entity_warning_list) [ 0 .. 70001 ] items List of warnings. Depending on the flag | |
object (unpacked_items) Unpacked items list. | |
calculation_progress required | integer <int32> (calculation_progress) [ 0 .. 100 ] Example: "52" Calculation progress as a percentage. The progress displays the current number of completed steps. |
required | object (calculation_info) Calculation information. |
required | object (tracedata) Data for request tracing. |
required | Array of objects (blueprint) [ 0 .. 70001 ] items Example: "[object Object]" A product layout plan as a list of packaging locations. The first level contains a list of pallet stacks. |
required | object (pack_statistics) General statistics for packing scheme. |
Array of objects (entity_warning_list) [ 0 .. 70001 ] items List of warnings. Depending on the flag | |
object (unpacked_items) Unpacked items list. | |
calculation_progress required | integer <int32> (calculation_progress) [ 0 .. 100 ] Example: "52" Calculation progress as a percentage. The progress displays the current number of completed steps. |
required | object (calculation_info) Calculation information. |
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "example_username",
- "company": "example_company",
- "env": "edge7",
- "pod": "aaaaaaaa-2222-cccc-4444-eeeeeeeeeeee",
- "service": "PACKER",
- "operation": "run_pack_calculation",
- "time": "2024-11-21T16:55:35.370332Z"
}, - "blueprint": [
- {
- "package_key": "slot_default",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 300,
- "mass": 70000
}, - "product_group_layouts": [ ],
- "package_layouts": [
- {
- "package_key": "pallet_default",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 300,
- "mass": 70000
}, - "product_group_layouts": [
- {
- "product_key": "product_1",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 150
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}, - "product_layouts": [
- {
- "product_key": "product_1",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}
}
]
}
], - "package_layouts": [ ]
}
]
}
], - "statistics": {
- "products_count": 1,
- "packages_count": 2,
- "total_mass": 60,
- "total_volume": 0.144,
- "package_statistics": [
- {
- "package_key": "slot_default",
- "package_type": "SLOT",
- "count": 1,
- "max_container_mass": 60,
- "max_container_volume": 0.144,
- "utilization_by_mass": 0.06,
- "utilization_by_volume": 0.0833
}, - {
- "package_key": "pallet_default",
- "package_type": "PALLET",
- "count": 1,
- "max_container_mass": 60,
- "max_container_volume": 0.144,
- "utilization_by_mass": 0.0923,
- "utilization_by_volume": 0.0909
}
]
}, - "calculation_progress": 100,
- "calculation_info": {
- "status": "FINISHED_IN_TIME",
- "result_version": 1,
- "preparing_time": "PT1M10S",
- "business_validation_time": "PT1M10S",
- "math_validation_time": "PT1M10S",
- "waiting_time": "PT15S",
- "calculation_time": "PT1M10S"
}, - "warnings": [ ],
- "unpacked_items": {
- "product_keys": [ ],
- "package_keys": [
- "mixbox_default"
]
}
}
Removal of the planning result by the calculation identifier.
process_code required | string <uuid> (process_code) Example: 11111111-2222-3333-4444-555555555555 Unique process identifier. |
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "example_username",
- "company": "example_company",
- "env": "edge7",
- "pod": "aaaaaaaa-2222-cccc-4444-eeeeeeeeeeee",
- "service": "PACKER",
- "operation": "run_plan_calculation",
- "time": "2024-11-28T17:13:27.945583194Z"
}, - "message": "logical",
- "schema_errors": [ ],
- "logical_errors": [
- {
- "type": "UNIQUE_IDS_VIOLATION",
- "entities": [
- {
- "entity_key": "essence_1",
- "entity_type": "PACKAGE"
}
]
}
], - "warnings": [ ]
}
Checking data before planning.
Data for calculation.
required | Array of objects (product) [ 1 .. 70001 ] items unique List of products. |
required | Array of objects (package) [ 1 .. 11 ] items unique List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX). |
object (pack_settings) Packing settings. | |
dataset_name | string (dataset_name) [ 0 .. 512 ] characters Example: "custom_dataset_one" The name of the dataset. A technical field that does not affect calculation. |
required | object (tracedata) Data for request tracing. |
required | Array of objects (entity_warning_list) [ 0 .. 70001 ] items List of warnings. Depending on the flag |
{- "products": [
- {
- "key": "product_1",
- "count": 1,
- "dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 60000
}
}
], - "packages": [
- {
- "key": "slot_default",
- "type": "SLOT",
- "body_dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "mass": 0
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1800,
- "mass": 1000000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - {
- "key": "pallet_default",
- "type": "PALLET",
- "body_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 150,
- "mass": 10000
}, - "container_dimensions": {
- "length": 1200,
- "width": 800,
- "height": 1650,
- "mass": 650000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 150
}
}, - {
- "key": "mixbox_default",
- "type": "MIXBOX",
- "body_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 0
}, - "container_dimensions": {
- "length": 580,
- "width": 380,
- "height": 200,
- "mass": 60000
}, - "container_coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}
], - "pack_settings": {
- "calculation_settings": {
- "max_calculation_time": "PT10M",
- "max_waiting_time": "PT10M",
- "result_ttl": "PT10M",
- "treat_warnings_as_errors": false
}
}
}
{- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "example_username",
- "company": "example_company",
- "env": "edge7",
- "pod": "aaaaaaaa-2222-cccc-4444-eeeeeeeeeeee",
- "service": "PACKER",
- "operation": "run_pack_validation",
- "time": "2024-11-21T16:55:35.370332Z"
}, - "warnings": [ ]
}
Checking the service availability.
health required | number <double> [ 0 .. 1 ] Example: "0.999" The current health indicator of the service.
|
{- "health": 0.999
}
Getting the service version.
major required | integer <int32> [ 1 .. 100 ] Example: "7" Product version. Within a single version, compatibility of common data structures between services is guaranteed. A version change indicates changes that are incompatible with previous versions of the product (and all services). |
minor required | integer <int32> [ 0 .. 111 ] Example: "15" Minor version of the service. A version change indicates new functionality. The update is backward compatible with the major version of the service. |
build required | string [ 1 .. 64 ] characters Example: "3754RC" Build version. |
{- "major": 7,
- "minor": 15,
- "build": "3754RC"
}
Getting the file with this service documentation.
filename required | string [ 6 .. 128 ] characters Example: file_en.html File name. |
File with data in HTML format.
{- "resource_key": "resource_key",
- "detail": {
- "tracedata": {
- "process_code": "11111111-2222-3333-4444-555555555555",
- "request_code": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
- "username": "username_for_login",
- "company": "smart_company",
- "service": "UNIVERSAL",
- "operation": "run_plan_calculation",
- "env": "edge7",
- "pod": "11111111-2222-3333-4444-555555555555",
- "time": "2024-11-21T09:30:00+03:00"
}
}
}