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=73a04873-53f1-4795-b6be-2b21305417ec&fulfilmentCenter=97c338ca-3e7c-4a3e-ae2a-55c830cc4872&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": "5a321242-2551-4fd0-9771-8bee151671cf",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "d0046141-077f-4283-9fff-243bc635c10d",
    "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": "39a39e28-cb59-471e-847b-f475ee6b1372",
      "Rowid": "20f381f5-7a04-4a75-b940-ab27f29c6d1a",
      "pkPurchaseId": "b99201dd-4acd-493f-b5b6-23a2a6157fff",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "ad724e25-fed5-42a9-b3d3-348263fd3130",
      "DateOfDelivery": "2019-08-21T13:34:06.0165845+01:00",
      "QuotedDeliveryDate": "2019-08-21T13:34:06.0165845+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "e4fdaac2-0709-45a5-b42e-a4a42264f5e5"
    },
    "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": "f3620f16-6719-46d0-9cd5-3db157a7dcb3",
    "AdditionalInfo": [
      {
        "pkOptionId": "6b7858c5-8222-415a-9111-6ee8cab5f7aa",
        "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": "451233e3-c50b-4c1e-bce6-8b2b197ac7be",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "6abd582a-9c96-4f93-a694-3204c9139586",
    "OrderId": "bf3a6e08-6318-43a0-84a0-55af2b5229d1",
    "StockItemId": "939061de-8628-4121-bf2c-c62dabba819e"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}