Split an order by packaging
Name | Type | Description |
---|---|---|
orderId | Guid | Order id |
packagingSplit | List<OrderPackagingSplit> | Order split |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Orders/SetOrderPackagingSplit
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.
orderId=24269281-5f51-4efd-8159-0eb9ca79f411&packagingSplit=[
{
"pkBinId": "072524c6-f01a-4eb3-b425-36f57652ac9e",
"pkPostalServiceId": "127f2ef9-77c5-42b8-ad44-82098491d2ba",
"PackagingWeight": 3.0,
"fkPackagingTypeId": "92b7334d-1238-415f-982a-bef513bc3861",
"Items": [
{
"AssignedBatches": [
{
"OrderItemRowId": "e3fe9032-aa56-4058-bb53-3a26ae170d7c",
"BatchNumber": "sample string 2",
"fkBinId": "12d3499d-b188-4947-8d05-8327f5be2a9b",
"fkOrderItemBatchId": 4,
"Quantity": 5
}
],
"RowId": "f1e6c25a-5f0b-467e-b32f-618996f46459",
"BoxId": 1,
"Quantity": 2,
"TrackingNumber": "sample string 3",
"Weight": 4.0,
"SKU": "sample string 5",
"Title": "sample string 6",
"IsBatched": true
}
],
"TotalWeight": 5.0,
"Width": 6.0,
"Height": 7.0,
"Depth": 8.0,
"TrackingNumbers": "sample string 3"
}
]
This is an example of the response JSON. Results will vary depending on your data.
{
"TotalsInfo": {
"Subtotal": 2.1,
"PostageCost": 3.1,
"PostageCostExTax": 4.1,
"Tax": 5.1,
"TotalCharge": 6.1,
"PaymentMethod": "sample string 7",
"PaymentMethodId": "946b089a-16b3-48a9-b9eb-cbec94aa84c4",
"ProfitMargin": 9.1,
"TotalDiscount": 10.1,
"Currency": "sample string 11",
"CountryTaxRate": 12.1,
"ConversionRate": 13.1
},
"ShippingInfo": {
"Vendor": "sample string 1",
"PostalServiceId": "5aa60bd2-f5e7-4bd0-9796-4562e8f82751",
"PostalServiceName": "sample string 3",
"TotalWeight": 4.0,
"ItemWeight": 5.0,
"PackageCategoryId": "3c6f5a08-ff39-4df9-86f8-3b4a9d21dd44",
"PackageCategory": "sample string 7",
"PackageTypeId": "783b7fa6-30f4-4cb6-8e5a-2eceb4006444",
"PackageType": "sample string 8",
"PostageCost": 9.1,
"PostageCostExTax": 10.1,
"TrackingNumber": "sample string 11",
"ManualAdjust": true
}
}