Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /SetOrderPackaging

Allows 150 calls per minute

Response: CalcOrderHeader



Designed to save order packaging when it has already been calculated but not saved or is a manual edit.

Parameters

NameTypeDescription
requestSetOrderPackagingRequestRequest object with data to be saved in the database

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/SetOrderPackaging

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={
  "fkPackagingGroupId": "fa7fc74f-f16d-4048-bcf5-2cc7a98e41a8",
  "fkPackagingTypeId": "aea63a7d-7118-47fb-bf96-444052f6c994",
  "pkOrderId": "d530e61f-19eb-408a-bbec-8a4ff1c8bdd6",
  "TotalWeight": 4.0,
  "ManualAdjust": true,
  "IsAutoSplit": true,
  "TotalDepth": 7.0,
  "TotalHeight": 8.0,
  "TotalWidth": 9.0
}

Response

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

{
  "pkOrderID": "9bd67215-3e20-4650-9d20-4078b194e9b8",
  "nOrderId": 2,
  "fkPostalServiceId": "77b4df3b-8a95-4013-976d-e58fbe66acc6",
  "fkCountryId": "a252a3f5-7344-43c6-b1f0-1a9105b9dd86",
  "cCountry": "sample string 5",
  "ItemWeight": 6.0,
  "fkPackagingGroupId": "cbc14345-26ed-4c8a-a2b4-abdfec8f1184",
  "fkPackagingTypeId": "ae6a6890-9f74-473c-a158-7cc95feebf1d",
  "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": "6c9414ed-d0f7-4c88-aeb8-134dbf642995",
      "fkOrderItemId": "8e47301d-281e-4088-ba72-c0c26e76d308",
      "StockItemIntId": 3,
      "SKU": "sample string 4",
      "nQty": 5,
      "ItemWeight": 6.0,
      "DimHeight": 7.0,
      "DimWidth": 8.0,
      "DimDepth": 9.0,
      "PackageGroup": "1debbdd4-02ad-41c1-a077-c943eee9d3e8",
      "fkCompositeParentRowId": "0431289e-a0c0-4696-9614-f1d703123643",
      "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": "88dfc903-16e5-4fd0-b709-10752e9992cb",
          "LogicalDelete": true
        }
      ]
    }
  ],
  "Bins": [
    {
      "pkBinId": "ac0e636a-d089-4ec1-89fe-39bd4e088d44",
      "TrackingNumber": "sample string 2",
      "LabelId": "sample string 3",
      "Weight": 1.0,
      "PrintDate": "2022-09-05T15:10:05.0689481+03:00",
      "Cost": 1.0,
      "fkPackagingTypeId": "c9aea66b-b17a-4ce0-85b9-ed4887ad2455",
      "Width": 1.0,
      "Height": 1.0,
      "Depth": 1.0,
      "PackagingWeight": 1.0,
      "ItemWeight": 1.0,
      "ManualAdjust": true,
      "Items": [
        {
          "ShippingOrderItemId": 1,
          "BinId": "a6f067f2-f3c9-4afc-a13b-21d7690ca958",
          "fkOrderItemId": "668aafec-4484-4853-b114-a72085ed01e5",
          "BoxId": 1,
          "Quantity": 4
        }
      ]
    }
  ],
  "ThreeDimPackaging": {
    "TotalPackages": 1,
    "Packages": [
      {
        "PackagingId": "754c7f7d-8e2b-48a3-b366-5d34c5703b93",
        "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": "96b520c5-ec73-4651-b6ce-b78104347130",
            "PkStockItemId": "fc154bdf-d57e-4cf6-bd09-7cd7203b4bcd",
            "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": {
      "de6cc8fd-d5c0-4abb-a978-dcf49db09608": 2
    }
  },
  "DimMethod": 0
}