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=8b5cff7e-f10d-4cd9-922c-2610fd50d861&fulfilmentCenter=82807ee1-41ec-4506-8808-a5a3270a0dd0&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": "1f6ad9c1-f599-4426-9337-d4ca4994f1ca",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "06d7a5cc-1e16-4904-8497-500ffba82eb1",
    "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": "a22d2995-4eba-46ce-b965-922d69f50a6e",
      "Rowid": "ec5b3844-ec4c-47b9-b5f3-c38ad1f99351",
      "pkPurchaseId": "84720212-9296-4ede-a12f-e7008e5b6d7c",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "bd82633f-2da7-4b35-828c-0a8597f6127b",
      "DateOfDelivery": "2019-10-09T15:11:44.5477703+01:00",
      "QuotedDeliveryDate": "2019-10-09T15:11:44.5477703+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "942d68d2-cdc5-465a-9d83-a34ee23e256f"
    },
    "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": "ed845f9f-9d92-48dd-a992-7628d78d7674",
    "AdditionalInfo": [
      {
        "pkOptionId": "3747d288-858c-41cc-b247-243d56b394f9",
        "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": "f90d8b97-56a2-4085-a380-65efa56f1fd1",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "539d858c-919e-48af-91e5-03ec4189386f",
    "OrderId": "599a03e1-4547-456c-af55-b8d4096a325a",
    "StockItemId": "d0827636-9a4b-4cd9-b6e2-bc6d268dbef5"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}