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": "d0ec915f-671b-4d8d-b923-8ef478ac2af1",
  "fkPackagingTypeId": "78e10957-b3e5-4a8f-af20-352cf3a54e60",
  "pkOrderId": "e3087941-ac42-40cc-8923-3578340b1caf",
  "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": "39a3c6c1-89ae-4e76-bcf3-f53cc6315835",
  "nOrderId": 2,
  "fkPostalServiceId": "865421a0-5d55-43bc-ade5-15a82f06c1f4",
  "fkCountryId": "9c5a62b6-cfe8-4554-a97c-abf5e2d5f5e4",
  "cCountry": "sample string 5",
  "ItemWeight": 6.0,
  "fkPackagingGroupId": "6420f67b-5e62-41d9-b77e-1b423f195c04",
  "fkPackagingTypeId": "ae0da4bd-c5e6-4aad-b95b-fbcd68dcb2bf",
  "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": "2d12824a-6695-4abc-ab18-3a918666915f",
      "fkOrderItemId": "709866e4-47ee-4aed-bcb1-068fb908ace3",
      "StockItemIntId": 3,
      "SKU": "sample string 4",
      "nQty": 5,
      "ItemWeight": 6.0,
      "DimHeight": 7.0,
      "DimWidth": 8.0,
      "DimDepth": 9.0,
      "PackageGroup": "bc9fc6cf-fc03-445e-915f-75f0cd7b9f1d",
      "fkCompositeParentRowId": "ea937f21-0fd2-4b08-9972-e98bea09edd6",
      "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": "c18d636c-f7f8-4c4a-aac3-3ba59d514285",
          "LogicalDelete": true
        }
      ]
    }
  ],
  "Bins": [
    {
      "pkBinId": "2dc879b6-b9ea-46ce-b786-521b5663e232",
      "TrackingNumber": "sample string 2",
      "LabelId": "sample string 3",
      "Weight": 1.0,
      "PrintDate": "2022-08-03T16:02:33.4501398+01:00",
      "Cost": 1.0,
      "fkPackagingTypeId": "f72a9a5b-9798-47e3-94bc-597cdd3eac00",
      "Width": 1.0,
      "Height": 1.0,
      "Depth": 1.0,
      "PackagingWeight": 1.0,
      "ItemWeight": 1.0,
      "ManualAdjust": true,
      "Items": [
        {
          "ShippingOrderItemId": 1,
          "BinId": "5e9e98c3-d0df-4d7d-8cae-146a01d37197",
          "fkOrderItemId": "c279af7a-5573-4bfc-8f2a-a0d079121e72",
          "BoxId": 1,
          "Quantity": 4
        }
      ]
    }
  ],
  "ThreeDimPackaging": {
    "TotalPackages": 1,
    "Packages": [
      {
        "PackagingId": "ac187419-62c0-4de2-9f5e-769c0dd4974a",
        "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": "24afce6d-86ee-4a39-96d7-2241590b10a5",
            "PkStockItemId": "25867592-96e6-4f03-9946-caf9ecc0f699",
            "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": {
      "bbbedc6b-eb3b-42ad-a240-ab81f174ee8d": 2
    }
  },
  "DimMethod": 0
}