Retrieves order packaging, weight and dimension information with split packaging. The method can perform ad hoc recalculation and saving of any changes.
Name | Type | Description |
---|---|---|
request | GetOrderPackagingCalculationRequest | Orders to get packaging calculations for |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Orders/GetOrderPackagingCalculation
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
request={
"pkOrderIds": [
"5282025f-d498-4e0d-b560-5081c5c7e900"
],
"Recalculate": true,
"SaveRecalculation": true
}
This is an example of the response JSON. Results will vary depending on your data.
[
{
"pkOrderID": "6669dd69-c5f9-47d7-9e72-1d8856232502",
"nOrderId": 2,
"fkPostalServiceId": "11e30409-62e2-437b-a57e-b9a2ec009850",
"fkCountryId": "8d7e36a7-aade-4958-9761-92ba9c87855e",
"cCountry": "sample string 5",
"ItemWeight": 6.0,
"fkPackagingGroupId": "154c215d-8cd8-40ce-8134-681a81f1ddfb",
"fkPackagingTypeId": "855c7525-f713-4be1-832b-46a5a63aae0c",
"IsSplitPackaging": false,
"PackagingWeight": 9.0,
"TotalWeight": 10.0,
"TotalWidth": 1.0,
"TotalHeight": 1.0,
"TotalDepth": 1.0,
"ManualAdjust": true,
"CanAutoSplit": false,
"IsAutoSplit": false,
"SplitPackageCount": 13,
"LabelPrinted": true,
"CalculationHints": [
"sample string 1"
],
"Items": [
{
"fkStockItemId": "d0a5a723-bac4-42e6-be8d-1358332c5f91",
"fkOrderItemId": "23f34f98-001d-4d47-874b-e6f6fa7ae0c8",
"StockItemIntId": 3,
"SKU": "sample string 4",
"nQty": 5,
"ItemWeight": 6.0,
"DimHeight": 7.0,
"DimWidth": 8.0,
"DimDepth": 9.0,
"PackageGroup": "bdd17a82-0acc-431c-af44-a665ee879056",
"fkCompositeParentRowId": "de91bdfa-288d-43b9-8a53-95d4eef2e676",
"IsCompositeChild": true,
"Boxes": [
{
"BoxId": 1,
"StockItemIntId": 2,
"BoxName": "sample string 3",
"Width": 4.0,
"Height": 5.0,
"Length": 6.0,
"Weight": 7.0,
"ValuePercentage": 8.0,
"Barcode": "sample string 9",
"PackagingTypeId": "5f1b072f-b43a-481c-bf84-0bb5cd7370da",
"LogicalDelete": true
}
]
}
],
"Bins": [
{
"pkBinId": "844ebe9e-de65-4c7b-bb8f-0f3d77043b9c",
"TrackingNumber": "sample string 2",
"LabelId": "sample string 3",
"Weight": 1.0,
"PrintDate": "2022-03-09T13:04:14.0201748+00:00",
"Cost": 1.0,
"fkPackagingTypeId": "de1f6851-b604-41bc-a602-213bfd9588a9",
"Width": 1.0,
"Height": 1.0,
"Depth": 1.0,
"PackagingWeight": 1.0,
"ItemWeight": 1.0,
"ManualAdjust": true,
"Items": [
{
"ShippingOrderItemId": 1,
"BinId": "8c6c4adc-6985-4690-a014-de1dc022627c",
"fkOrderItemId": "50514b63-c055-40c4-9283-bac6daacfe8a",
"BoxId": 1,
"Quantity": 4
}
]
}
],
"ThreeDimPackaging": {
"TotalPackages": 1,
"Packages": [
{
"PackagingId": "eec0bd41-3986-4c4a-9eb7-d34f34683b6c",
"Width": 2.1,
"Height": 3.1,
"Depth": 4.1,
"ItemWeight": 5.0,
"PackagingWeight": 6.0,
"Faces": [
{
"TopLeft": {
"IsEmpty": false,
"X": 1.1,
"Y": 2.1
},
"BottomLeft": {
"IsEmpty": false,
"X": 1.1,
"Y": 2.1
},
"TopRight": {
"IsEmpty": false,
"X": 1.1,
"Y": 2.1
},
"BottomRight": {
"IsEmpty": false,
"X": 1.1,
"Y": 2.1
}
}
],
"Items": [
{
"ID": "21f0aadc-3279-4cef-ac7e-249016547049",
"PkStockItemId": "d6c55d62-c070-4961-852e-33182056881e",
"SKU": "sample string 2",
"Width": 3.1,
"Height": 4.1,
"Depth": 5.1,
"Weight": 6.0,
"X": 7.1,
"Y": 8.1,
"Z": 9.1,
"Layer": 10,
"Faces": [
{
}
]
}
],
"LayerCount": 7,
"LayerFace": {
"1": {
}
},
"IsManualPackage": true
}
],
"UnpackedItems": {
"1a2d8995-6883-475b-8453-2130d587865c": 2
}
},
"DimMethod": 0
}
]