Update an order item
Name | Type | Description |
---|---|---|
orderId | Guid | Order id |
orderItem | OrderItem | The order item to be updated |
fulfilmentCenter | Guid | Current fulfilment center |
source | String | Source |
subSource | String |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Orders/UpdateOrderItem
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=0454dd73-ca8e-46d0-bd2d-64cfe9cddaf7&fulfilmentCenter=018d60a3-bf22-44e7-b2ca-23f3bdbbef84&source=sample string 1&subSource=sample string 1
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": "67090685-128a-4b29-bf4a-7384c0aead0c",
"ProfitMargin": 9.1,
"TotalDiscount": 10.1,
"Currency": "sample string 11",
"CountryTaxRate": 12.1,
"ConversionRate": 13.1
},
"Item": {
"ItemId": "4b414a05-19e9-45d3-86b7-69f69c1ebc7b",
"ItemNumber": "sample string 2",
"SKU": "sample string 3",
"ItemSource": "sample string 4",
"Title": "sample string 5",
"Quantity": 6,
"CategoryName": "sample string 8",
"CompositeAvailablity": 1,
"StockLevelsSpecified": true,
"OnOrder": 10,
"OnPurchaseOrder": {
"pkPurchaseItemId": "9086fe97-d97e-40f5-ae00-f5980780c6b6",
"Rowid": "cd6e1410-420d-4b89-93e5-6e4d4f65ccda",
"pkPurchaseId": "55bd75a0-5f3f-47c4-b9c9-f8a82e90b7b6",
"ExternalInvoiceNumber": "sample string 4",
"fkSupplierId": "cf502613-0499-4adc-9c64-012f9035454e",
"DateOfDelivery": "2023-01-10T13:49:54.3180435+00:00",
"QuotedDeliveryDate": "2023-01-10T13:49:54.3180435+00:00",
"SupplierName": "sample string 8",
"fkLocationId": "958f0cc2-6ea1-4fb8-8766-903de09d0561"
},
"InOrderBook": 1,
"Level": 11,
"MinimumLevel": 1,
"AvailableStock": 12,
"PricePerUnit": 13.1,
"UnitCost": 14.1,
"DespatchStockUnitCost": 15.1,
"Discount": 16.1,
"Tax": 21.1,
"TaxRate": 17.1,
"Cost": 18.1,
"CostIncTax": 19.1,
"CompositeSubItems": [
{
}
],
"IsService": true,
"SalesTax": 21.1,
"TaxCostInclusive": true,
"PartShipped": true,
"Weight": 24.1,
"BarcodeNumber": "sample string 25",
"Market": 26,
"ChannelSKU": "sample string 27",
"ChannelTitle": "sample string 28",
"DiscountValue": 10.806660973526899,
"HasImage": true,
"ImageId": "0f6ab17e-ee20-4992-a558-208197ae7ea6",
"AdditionalInfo": [
{
"pkOptionId": "0b89be37-2d06-457f-9623-64d99cc24ec5",
"Property": "sample string 2",
"Value": "sample string 3"
}
],
"StockLevelIndicator": 29,
"ShippingCost": 30.1,
"PartShippedQty": 31,
"ItemName": "sample string 32",
"BatchNumberScanRequired": true,
"SerialNumberScanRequired": true,
"BinRack": "sample string 35",
"BinRacks": [
{
"Quantity": 1,
"BinRack": "sample string 2",
"Location": "3b3869cd-b24d-47b5-9ced-e298f7ba1c30",
"BatchId": 1,
"OrderItemBatchId": 1
}
],
"InventoryTrackingType": 36,
"isBatchedStockItem": false,
"IsWarehouseManaged": true,
"IsUnlinked": false,
"StockItemIntId": 39,
"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": "dec918bb-4105-4158-beb4-03d089e16ed4",
"LogicalDelete": true
}
],
"RowId": "50d855f3-6ab4-4bbd-9637-1ee4ace37593",
"OrderId": "f2c10d76-b8fb-4de6-b505-d7530c77ccaa",
"StockItemId": "eeb13afa-5896-471d-b589-80201ccbb051"
},
"ItemWeight": 1.1,
"TotalWeight": 2.1
}