Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderPackaging

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

HTTP Endpoint

Server /Orders / SetOrderPackaging

Permissions

GlobalPermissions.OrderBook.ViewOrderDetailsNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SetOrderPackaging HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

request={
  "fkPackagingGroupId": "1897bd06-89e9-4fcc-902e-576e4252b612",
  "fkPackagingTypeId": "22631491-0fce-453c-a2c3-e9f3f081b177",
  "pkOrderId": "6cc53c4b-cce4-460b-8f66-a61f67d6c0cf",
  "TotalWeight": 4.1,
  "ManualAdjust": true,
  "IsAutoSplit": true,
  "TotalDepth": 7.0,
  "TotalHeight": 8.0,
  "TotalWidth": 9.0
}

Response

This is an example response. Results may vary depending on your data.

{
  "pkOrderID": "cd583784-8ceb-4047-a98a-1df65d1d55b7",
  "nOrderId": 2,
  "fkPostalServiceId": "a66aff4a-7a34-4126-a668-20e7bd4707cf",
  "fkCountryId": "bf343a90-d4f4-458e-979d-6a217931de3a",
  "cCountry": "sample string 5",
  "ItemWeight": 6.1,
  "fkPackagingGroupId": "0c88097f-3534-4c99-b088-ac9aa661c0a5",
  "fkPackagingTypeId": "355a6af4-5d7c-4d64-8490-80e853341957",
  "IsSplitPackaging": false,
  "PackagingWeight": 9.1,
  "TotalWeight": 10.1,
  "TotalWidth": 1.0,
  "TotalHeight": 1.0,
  "TotalDepth": 1.0,
  "ManualAdjust": true,
  "CanAutoSplit": false,
  "IsAutoSplit": false,
  "SplitPackageCount": 13,
  "LabelPrinted": true,
  "CalculationHints": [
    "sample string 1",
    "sample string 2"
  ],
  "Items": [
    {
      "fkStockItemId": "c16a3278-8458-4c62-97bc-acdd2e270e0c",
      "fkOrderItemId": "77c2806c-a0ec-4655-8611-e6259aa04ac7",
      "SKU": "sample string 3",
      "nQty": 4,
      "ItemWeight": 5.1,
      "DimHeight": 6.1,
      "DimWidth": 7.1,
      "DimDepth": 8.1,
      "PackageGroup": "293c451f-18e3-43ef-9cb3-10368cea5dda",
      "fkCompositeParentRowId": "c4bf8a41-9689-4011-9b80-4950760b8bdc"
    },
    {
      "fkStockItemId": "c16a3278-8458-4c62-97bc-acdd2e270e0c",
      "fkOrderItemId": "77c2806c-a0ec-4655-8611-e6259aa04ac7",
      "SKU": "sample string 3",
      "nQty": 4,
      "ItemWeight": 5.1,
      "DimHeight": 6.1,
      "DimWidth": 7.1,
      "DimDepth": 8.1,
      "PackageGroup": "293c451f-18e3-43ef-9cb3-10368cea5dda",
      "fkCompositeParentRowId": "c4bf8a41-9689-4011-9b80-4950760b8bdc"
    }
  ],
  "Bins": [
    {
      "pkBinId": "3ac2f222-bee1-444c-9e30-beb57130b7f6",
      "TrackingNumber": "sample string 2",
      "LabelId": "sample string 3",
      "Weight": 1.0,
      "PrintDate": "2019-11-28T09:46:00.7657379+00:00",
      "Cost": 1.0,
      "fkPackagingTypeId": "94f0901c-d1a9-465a-a5dc-25c9955aef78",
      "Width": 1.0,
      "Height": 1.0,
      "Depth": 1.0,
      "PackagingWeight": 1.0,
      "ItemWeight": 1.0,
      "ManualAdjust": true,
      "Items": [
        {
          "fkOrderItemId": "4134a0d3-5210-4060-ad6c-afd68114ce70",
          "Quantity": 2
        },
        {
          "fkOrderItemId": "4134a0d3-5210-4060-ad6c-afd68114ce70",
          "Quantity": 2
        }
      ]
    },
    {
      "pkBinId": "3ac2f222-bee1-444c-9e30-beb57130b7f6",
      "TrackingNumber": "sample string 2",
      "LabelId": "sample string 3",
      "Weight": 1.0,
      "PrintDate": "2019-11-28T09:46:00.7657379+00:00",
      "Cost": 1.0,
      "fkPackagingTypeId": "94f0901c-d1a9-465a-a5dc-25c9955aef78",
      "Width": 1.0,
      "Height": 1.0,
      "Depth": 1.0,
      "PackagingWeight": 1.0,
      "ItemWeight": 1.0,
      "ManualAdjust": true,
      "Items": [
        {
          "fkOrderItemId": "4134a0d3-5210-4060-ad6c-afd68114ce70",
          "Quantity": 2
        },
        {
          "fkOrderItemId": "4134a0d3-5210-4060-ad6c-afd68114ce70",
          "Quantity": 2
        }
      ]
    }
  ],
  "ThreeDimPackaging": {
    "TotalPackages": 2,
    "Packages": [
      {
        "PackagingId": "c42a8780-5056-461d-9faf-6bc02242c13e",
        "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
            }
          },
          {
            "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": "c0544eaa-5faf-4acb-bc73-a652bc107f4d",
            "PkStockItemId": "f6cc25e6-a760-4f6d-8b84-e4b0b61a55d4",
            "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": [
              {
                "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
                }
              },
              {
                "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
                }
              }
            ]
          },
          {
            "ID": "c0544eaa-5faf-4acb-bc73-a652bc107f4d",
            "PkStockItemId": "f6cc25e6-a760-4f6d-8b84-e4b0b61a55d4",
            "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": [
              {
                "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
                }
              },
              {
                "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
                }
              }
            ]
          }
        ],
        "LayerCount": 7,
        "LayerFace": {
          "1": {
            "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
            }
          },
          "2": {
            "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
            }
          }
        },
        "IsManualPackage": true
      },
      {
        "PackagingId": "c42a8780-5056-461d-9faf-6bc02242c13e",
        "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
            }
          },
          {
            "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": "c0544eaa-5faf-4acb-bc73-a652bc107f4d",
            "PkStockItemId": "f6cc25e6-a760-4f6d-8b84-e4b0b61a55d4",
            "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": [
              {
                "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
                }
              },
              {
                "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
                }
              }
            ]
          },
          {
            "ID": "c0544eaa-5faf-4acb-bc73-a652bc107f4d",
            "PkStockItemId": "f6cc25e6-a760-4f6d-8b84-e4b0b61a55d4",
            "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": [
              {
                "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
                }
              },
              {
                "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
                }
              }
            ]
          }
        ],
        "LayerCount": 7,
        "LayerFace": {
          "1": {
            "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
            }
          },
          "2": {
            "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
            }
          }
        },
        "IsManualPackage": true
      }
    ],
    "UnpackedItems": {
      "e3234e42-ae2f-4d52-bc9c-25a567bedf71": 2,
      "062e9341-2ccb-403b-b11a-0155d0545d9f": 4
    }
  },
  "DimMethod": 0
}