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=a34d9d79-de8b-48eb-96eb-cdd0ae544c6f&fulfilmentCenter=c02081c6-63c1-46b1-8d11-18a20b3b22bb&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": "79c736b2-078e-468a-ad04-842e150689e8",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "OrderId": "fd0c3551-90f5-4fa6-b0c8-68d2c59f8df2",
    "ItemId": "8a01a048-ebf6-468b-87b7-3160669f4c5a",
    "StockItemId": "b1d67b55-e564-4b38-889a-687be793a7aa",
    "ItemNumber": "sample string 4",
    "SKU": "sample string 5",
    "ItemSource": "sample string 6",
    "Title": "sample string 7",
    "Quantity": 8,
    "CategoryName": "sample string 9",
    "CompositeAvailablity": 1,
    "RowId": "eec7db82-0481-4a82-b841-0a02b81f06d1",
    "StockLevelsSpecified": true,
    "OnOrder": 12,
    "InOrderBook": 1,
    "Level": 13,
    "MinimumLevel": 1,
    "AvailableStock": 14,
    "PricePerUnit": 15.1,
    "UnitCost": 16.1,
    "Discount": 17.1,
    "Tax": 22.1,
    "TaxRate": 18.1,
    "Cost": 19.1,
    "CostIncTax": 20.1,
    "CompositeSubItems": [
      {
      },
      {
      }
    ],
    "IsService": true,
    "SalesTax": 22.1,
    "TaxCostInclusive": true,
    "PartShipped": true,
    "Weight": 25.1,
    "BarcodeNumber": "sample string 26",
    "Market": 27,
    "ChannelSKU": "sample string 28",
    "ChannelTitle": "sample string 29",
    "DiscountValue": 17.490939881456391,
    "HasImage": true,
    "ImageId": "da4177f5-bd44-4a91-87ff-635eca8e7fb2",
    "AdditionalInfo": [
      {
        "pkOptionId": "0dfcf4ad-2573-41c9-8bed-33a85ef85dc4",
        "Property": "sample string 2",
        "Value": "sample string 3"
      },
      {
      }
    ],
    "StockLevelIndicator": 30,
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "BinRack": "sample string 33",
    "BinRacks": [
      {
        "Quantity": 1,
        "BinRack": "sample string 2",
        "Location": "3bd241a2-5cf7-43f3-bfa0-04c38947f409"
      },
      {
      }
    ],
    "InventoryTrackingType": 34,
    "isBatchedStockItem": false
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}