ClassIT+™ |
Calculates the density of a shipment.
Method Definition
Http Method: POST
Authorization header: Bearer JWT
- Sandbox URL: https://Snbxapi-c.nmfta.org/api/v1.0/calculator/calc_density
- Production URL: https://Api-c.classitplus.com/api/v1.0/calculator/calc_density
Density Calculator Request Parameter Name, Description, and Data Type
Parameter Name | Description | Data Type |
dimensionType | Dimension type used for the calculation, typically specifying the unit of measurement (e.g., inches, centimeters, meters). |
|
weightType | Weight type used for the calculation, typically specifying the unit of weight (e.g., pounds, kilograms). |
|
resultUnitType | Unit of measurement for the final result, indicating the expected output format (e.g., cubic meters, pounds). |
|
unitDimensions | List of handling unit dimensions, each representing a handling unit's size, weight, and density information. |
|
Density Calculator Method Result Definition
JSON Properties | Description | Data Type |
result | Result of the density calculation. | |
referenceNumber | A unique number that identifies or tags a request. |
|
success | Flag that indicates whether the process succeeded. |
|
message | Result message. |
|
Sample
Sample Name | Sample Code |
Sample Request JSON |
{ "dimensionType": "Centimeter", "weightType": "Kilogram", "resultUnitType": "PoundsPerCubicFeet", "unitDimensions": [ { "HandlingUnitCount": 1, "Length": 100, "width" : 50, "height": 40, "handlingUnitWeight": 20 }, { "HandlingUnitCount": 2, "Length": 100, "width" : 50, "height": 60, "handlingUnitWeight": 20 } ] } |
Sample Response JSON |
{ "result": { "unitDimensions": [ { "handlingUnitCount": 1, "length": 100, "width": 50, "height": 40, "handlingUnitCountVolume": 7.062, "handlingUnitWeight": 20, "density": 6.2446898895497026338147833474 }, { "handlingUnitCount": 2, "length": 100, "width": 50, "height": 60, "handlingUnitCountVolume": 21.186, "handlingUnitWeight": 20, "density": 2.0815632965165675446049277824 } ], "totalHandlingUnitCount": 3, "totalHandlingUnitCountVolume": 28.248, "totalHandlingUnitWeight": 40, "totalDensity": 3.1223449447748513169073916738 }, "referenceNumber": "c21baf1f46a642fbaeaccac070e7591e", "success": true, "message": [], } |
All content © Copyright 2025 National Motor Freight Traffic Association, Inc.™ All Rights Reserved.