Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /GetOrderPackagingCalculation

Allows 150 calls per minute

Response: List<CalcOrderHeader>



Retrieves order packaging, weight and dimension information with split packaging. The method can perform ad hoc recalculation and saving of any changes.

Parameters

NameTypeDescription
requestGetOrderPackagingCalculationRequestOrders to get packaging calculations for

Permissions

GlobalPermissions.OrderBook.ViewOrderDetailsNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/GetOrderPackagingCalculation

Headers

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

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "pkOrderIds": [
    "8caa5f40-dad0-43aa-92c3-2f3685dea759"
  ],
  "Recalculate": true,
  "SaveRecalculation": true
}

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "pkOrderID": "f9906001-56d3-4a3f-85e6-3f5f1a39b481",
    "nOrderId": 2,
    "fkPostalServiceId": "2bb21c29-9e0c-4d1a-a04c-2f55e0eccb9b",
    "fkCountryId": "c49da308-887d-4580-a015-a28451c13c2f",
    "cCountry": "sample string 5",
    "ItemWeight": 6.0,
    "fkPackagingGroupId": "e5b7f96f-46b9-4fb1-9019-dd7455e5e146",
    "fkPackagingTypeId": "5b25362b-51ba-4cea-94c2-b737f954cf1c",
    "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": "b9473736-df2b-4bd5-a176-7428c3ded3dc",
        "fkOrderItemId": "830f1734-48f5-46a0-9e75-7e9a97f31aab",
        "StockItemIntId": 3,
        "SKU": "sample string 4",
        "nQty": 5,
        "ItemWeight": 6.0,
        "DimHeight": 7.0,
        "DimWidth": 8.0,
        "DimDepth": 9.0,
        "PackageGroup": "b3fd5353-1e73-4526-a268-a42311a44268",
        "fkCompositeParentRowId": "188150e8-6667-4be4-b188-37c5cb2a7068",
        "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": "31b43513-5684-4b27-8a55-529f4d340a99",
            "LogicalDelete": true
          }
        ]
      }
    ],
    "Bins": [
      {
        "pkBinId": "54903905-7157-4df1-81ac-6caa96cef895",
        "TrackingNumber": "sample string 2",
        "LabelId": "sample string 3",
        "Weight": 1.0,
        "PrintDate": "2023-01-10T13:49:54.2064572+00:00",
        "Cost": 1.0,
        "fkPackagingTypeId": "8f8832d1-80e4-483a-9b50-f41520e3a212",
        "Width": 1.0,
        "Height": 1.0,
        "Depth": 1.0,
        "PackagingWeight": 1.0,
        "ItemWeight": 1.0,
        "ManualAdjust": true,
        "Items": [
          {
            "ShippingOrderItemId": 1,
            "BinId": "ae8769ec-7f02-43cd-9d09-febcec6b5d19",
            "fkOrderItemId": "0cf01fae-4091-4747-8cb8-499fe45b7cac",
            "BoxId": 1,
            "Quantity": 4
          }
        ]
      }
    ],
    "ThreeDimPackaging": {
      "TotalPackages": 1,
      "Packages": [
        {
          "PackagingId": "72ff7b4a-bc8a-4cdf-b9e2-42937bcbedb5",
          "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": "91ccd399-ef77-4eeb-8225-00e83a154243",
              "PkStockItemId": "48c14441-743a-47af-8998-ae1a3d5d5aa0",
              "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": {
        "1303c008-c756-43db-af21-680baf3eac53": 2
      }
    },
    "DimMethod": 0
  }
]