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=5de99353-8060-42d3-81f9-83c4c0e189a9&fulfilmentCenter=e3574676-e270-4157-84b9-241ee2a40f7a&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": "ea5c57a8-eb0f-4fe9-bbf7-65c168b96fa5",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "77aa9019-5f14-493f-a114-521b48b30a62",
    "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,
    "InOrderBook": 1,
    "Level": 11,
    "MinimumLevel": 1,
    "AvailableStock": 12,
    "PricePerUnit": 13.1,
    "UnitCost": 14.1,
    "Discount": 15.1,
    "Tax": 20.1,
    "TaxRate": 16.1,
    "Cost": 17.1,
    "CostIncTax": 18.1,
    "CompositeSubItems": [
      {
      },
      {
      }
    ],
    "IsService": true,
    "SalesTax": 20.1,
    "TaxCostInclusive": true,
    "PartShipped": true,
    "Weight": 23.1,
    "BarcodeNumber": "sample string 24",
    "Market": 25,
    "ChannelSKU": "sample string 26",
    "ChannelTitle": "sample string 27",
    "DiscountValue": 10.222739018087856,
    "HasImage": true,
    "ImageId": "294c2c4d-306a-4bed-bab6-b4dc523d252b",
    "AdditionalInfo": [
      {
        "pkOptionId": "bbdc69de-59ab-42e6-a2d1-8989cc60bd12",
        "Property": "sample string 2",
        "Value": "sample string 3"
      },
      {
      }
    ],
    "StockLevelIndicator": 28,
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "BinRack": "sample string 31",
    "BinRacks": [
      {
        "Quantity": 1,
        "BinRack": "sample string 2",
        "Location": "34e3d33e-6790-4bf1-951d-b7602b7ba3a9",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 32,
    "isBatchedStockItem": false,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "e989b3fc-5fe2-482b-9d94-fea5299add1e",
    "OrderId": "2beafd8f-5928-45a5-9840-aa011c8e831a",
    "StockItemId": "4897e38d-ca4b-4e46-a485-8a39c45ed4f2"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}