Back

Search

Search

Methods

Inventory

Orders

Orders /GetOrderItemComposition

Response: OrderItem



Get the detail (composition) of a specific order item

Parameters

NameTypeDescription
orderIdGuidOrder id
stockItemIdGuidStock item id
fulfilmentCenterGuidLocation to get the order item composition for

HTTP Endpoint

Server /Orders / GetOrderItemComposition

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/GetOrderItemComposition 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=099b2f92-8ce5-4215-a015-e7388145d701&stockItemId=5ff56fb0-fb52-414c-8dfc-ef965f8b7acc&fulfilmentCenter=5d0a1d28-3d18-4c01-be9d-a0cb41dc349e

Response

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

{
  "ItemId": "f8523ad4-5094-4045-b156-605e9d87238c",
  "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": "02704c66-80e9-4a89-b64a-16d4301d0715",
    "Rowid": "d6119d70-73f0-41fe-a063-10d9bc9be0ba",
    "pkPurchaseId": "0c3be7d7-6c86-4fe5-9d31-e6da9b41881f",
    "ExternalInvoiceNumber": "sample string 4",
    "fkSupplierId": "fefea42d-9e37-4672-b4f1-35e95e35ef0d",
    "DateOfDelivery": "2019-11-28T09:46:01.77092+00:00",
    "QuotedDeliveryDate": "2019-11-28T09:46:01.77092+00:00",
    "SupplierName": "sample string 8",
    "fkLocationId": "873e9d19-a0cf-4101-aea8-1c94eeaf3b39"
  },
  "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": "546c1668-abe2-408c-9c55-0a7de6f523eb",
  "AdditionalInfo": [
    {
      "pkOptionId": "facf366b-9ee3-44af-b252-87b22d151b87",
      "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": "53ddbf29-36d6-4d71-b67c-ec7179194ea9",
      "BatchId": 1,
      "OrderItemBatchId": 1
    },
    {
    }
  ],
  "InventoryTrackingType": 33,
  "isBatchedStockItem": false,
  "IsWarehouseManaged": true,
  "HasPurchaseOrders": true,
  "CanPurchaseOrderFulfil": true,
  "IsUnlinked": false,
  "RowId": "ebe03623-8a18-4a80-8175-c72741f3cec4",
  "OrderId": "75c7d034-6261-42de-832b-8b7a1ee565e6",
  "StockItemId": "b0442002-badc-4915-832e-e3612e4aa680"
}