Designed to save order packaging when it has already been calculated but not saved or is a manual edit.
Name | Type | Description |
---|---|---|
request | SetOrderPackagingRequest | Request object with data to be saved in the database |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Orders/SetOrderPackaging
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
This is an example of the request structure. Results will vary depending on your data.
request={
"fkPackagingGroupId": "62669ed2-8919-479f-b631-25ed66e0f6f4",
"fkPackagingTypeId": "9fe2c31a-60bf-4ebb-9d9d-57cac69c5425",
"pkOrderId": "bc88dea7-16e1-4e00-8a3d-a7e78a0a5f3e",
"TotalWeight": 4.0,
"ManualAdjust": true,
"IsAutoSplit": true,
"TotalDepth": 7.0,
"TotalHeight": 8.0,
"TotalWidth": 9.0
}
This is an example of the response JSON. Results will vary depending on your data.
{
"pkOrderID": "a64ff4da-2169-4883-8632-9db84b92734e",
"nOrderId": 2,
"fkPostalServiceId": "2edaadd7-97bb-4520-880f-05fd41723b10",
"fkCountryId": "8dd1056a-5601-4093-b386-3a11fc595e0c",
"cCountry": "sample string 5",
"ItemWeight": 6.0,
"fkPackagingGroupId": "73c7214e-fe31-4521-be8e-615ccfbac591",
"fkPackagingTypeId": "1a2d2a29-bc9a-4497-b11c-821fdb1653b9",
"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": "0c2bc64b-6371-4a33-8268-d7fd31648fbc",
"fkOrderItemId": "c0b2fc67-a1e8-4b7d-8883-0ad710184ac5",
"StockItemIntId": 3,
"SKU": "sample string 4",
"nQty": 5,
"ItemWeight": 6.0,
"DimHeight": 7.0,
"DimWidth": 8.0,
"DimDepth": 9.0,
"PackageGroup": "d4038f99-f378-4350-9cbe-1a9798bc99f1",
"fkCompositeParentRowId": "9f70ef53-6295-433b-8270-1aaaed2db8bd",
"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": "39136035-aa24-4d17-acf6-432c74ae26e7",
"LogicalDelete": true
}
]
}
],
"Bins": [
{
"pkBinId": "02fa03fd-7688-47d7-9ce1-67e5f9bd4219",
"TrackingNumber": "sample string 2",
"LabelId": "sample string 3",
"Weight": 1.0,
"PrintDate": "2023-01-10T13:49:54.2174219+00:00",
"Cost": 1.0,
"fkPackagingTypeId": "762c12d9-e467-47da-ab52-1fd19205af85",
"Width": 1.0,
"Height": 1.0,
"Depth": 1.0,
"PackagingWeight": 1.0,
"ItemWeight": 1.0,
"ManualAdjust": true,
"Items": [
{
"ShippingOrderItemId": 1,
"BinId": "c95c8557-edf9-499c-b042-77331a5c42a8",
"fkOrderItemId": "5c0b3812-6599-4736-924c-c0657a033b70",
"BoxId": 1,
"Quantity": 4
}
]
}
],
"ThreeDimPackaging": {
"TotalPackages": 1,
"Packages": [
{
"PackagingId": "41fadaf5-1d67-4018-92cf-2d6f984c8796",
"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": "50083cb9-746f-4d29-ac79-5f80f2f0a134",
"PkStockItemId": "0419a61a-ac30-4bf1-bdb0-bc203f9a9396",
"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": {
"a4e15f2f-b795-458e-9fd3-21296bc6958f": 2
}
},
"DimMethod": 0
}