Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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": "cd62771a-44f2-44b0-86c8-8e5856030551",
  "fkPackagingTypeId": "10dc2d9d-098d-49dc-b6b1-cf496f9f7ea3",
  "pkOrderId": "815e1427-1b8d-4468-92a4-be9ab8dd5dd1",
  "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": "6f2e4374-b18b-4982-8fa9-e77ff0dd4346",
  "nOrderId": 2,
  "fkPostalServiceId": "243e6a64-011e-4be4-8b0a-bd03e8ddd0f1",
  "fkCountryId": "01ddde32-76e5-4a08-9e57-4766b007edc9",
  "cCountry": "sample string 5",
  "ItemWeight": 6.0,
  "fkPackagingGroupId": "9b36aba1-d631-4f14-8276-520f956bf5f9",
  "fkPackagingTypeId": "ffb665c0-4bb7-49c4-9278-d5146b9598a3",
  "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": "ed360f0a-8553-4b70-961d-8af175b30a3a",
      "fkOrderItemId": "dde6d32e-eaec-4a23-919a-aeb6201fa9bb",
      "StockItemIntId": 3,
      "SKU": "sample string 4",
      "nQty": 5,
      "ItemWeight": 6.0,
      "DimHeight": 7.0,
      "DimWidth": 8.0,
      "DimDepth": 9.0,
      "PackageGroup": "5f3ca1b8-8a89-4021-9c6e-91760cccb9e1",
      "fkCompositeParentRowId": "41f7cdb0-1c60-4f62-b03d-c683bc457dcc",
      "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": "244e3bd1-41a1-4f3d-840d-78bfac086298",
          "LogicalDelete": true
        }
      ]
    }
  ],
  "Bins": [
    {
      "pkBinId": "41b415ac-4973-43fe-a110-4e765fbc400c",
      "TrackingNumber": "sample string 2",
      "LabelId": "sample string 3",
      "Weight": 1.0,
      "PrintDate": "2021-07-29T09:24:51.1762767+01:00",
      "Cost": 1.0,
      "fkPackagingTypeId": "10f488a0-d8e3-4b45-8050-6b02637b1a89",
      "Width": 1.0,
      "Height": 1.0,
      "Depth": 1.0,
      "PackagingWeight": 1.0,
      "ItemWeight": 1.0,
      "ManualAdjust": true,
      "Items": [
        {
          "ShippingOrderItemId": 1,
          "BinId": "01e6cf18-423b-4ed2-8683-82569ab80ade",
          "fkOrderItemId": "3dc2bb14-3387-4c2d-8b0b-4d8953fc49e8",
          "BoxId": 1,
          "Quantity": 4
        }
      ]
    }
  ],
  "ThreeDimPackaging": {
    "TotalPackages": 1,
    "Packages": [
      {
        "PackagingId": "9f9652f2-fd53-48d6-85eb-1d6b50bf53b8",
        "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": "823989ba-d085-4a3a-8d91-800467b5598f",
            "PkStockItemId": "8d1a4d22-d56d-44c1-80a3-d4c5525eb3ee",
            "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": {
      "fb928524-0260-4a76-8c23-1e34695c98b4": 2
    }
  },
  "DimMethod": 0
}