Back

Search

Search

Methods

Inventory

Orders

Orders /UpdateOrderItem

Response: UpdateOrderItemResult



Update an order item

Parameters

NameTypeDescription
orderIdGuidOrder id
orderItemOrderItemThe order item to be updated
fulfilmentCenterGuidCurrent fulfilment center
sourceStringSource
subSourceString

HTTP Endpoint

Server /Orders / UpdateOrderItem

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/UpdateOrderItem 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

orderId=227ee273-4df2-4bd1-9e99-316022f51cd3&fulfilmentCenter=5741fd9a-a3d9-4168-9ded-12db1a4d9d9b&source=sample string 1&subSource=sample string 1

Response

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

{
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "22b9d7c1-6cb6-4793-acaf-5b8cb4365cd8",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "a479cb92-18bc-473e-babd-a390a8b6ec6d",
    "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": "7926d123-1738-48b9-bc65-972cda015056",
      "Rowid": "70dd922f-2d4c-43f9-984b-3c883a1b7792",
      "pkPurchaseId": "e26c61ce-3197-41ae-bbc7-dd585e683f15",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "f5314e49-903c-4d17-90b8-944161af24be",
      "DateOfDelivery": "2019-11-28T09:46:01.0068228+00:00",
      "QuotedDeliveryDate": "2019-11-28T09:46:01.0068228+00:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "16a648e4-16c1-4ef0-9b74-c66164a87ee6"
    },
    "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": "dc2f6dc2-142d-424b-9083-cbd47be3abec",
    "AdditionalInfo": [
      {
        "pkOptionId": "3fa24c7a-5c7f-42ff-ae81-ea30b976b946",
        "Property": "sample string 2",
        "Value": "sample string 3"
      },
      {
      }
    ],
    "StockLevelIndicator": 29,
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "BinRack": "sample string 32",
    "BinRacks": [
      {
        "Quantity": 1,
        "BinRack": "sample string 2",
        "Location": "c004835c-9f1b-4849-bbd5-b17ce711eb84",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "14b1581a-c7f4-4f94-8803-0bacb603014b",
    "OrderId": "da18d29b-f104-4576-b6c0-6c681edc00f4",
    "StockItemId": "1d742a42-e4e4-4ef2-87cb-7a678e44f591"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}