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=c24f6abb-4c23-4ab9-8cc6-33a78cb997d5&stockItemId=1f0a1ec7-5478-4afc-9700-9769566826c4&fulfilmentCenter=bb11dce7-1f2e-4f5f-9b50-ca8877f6870c

Response

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

{
  "OrderId": "b133da09-e125-43f0-b4cf-a36d1e270f86",
  "ItemId": "5cba6292-deee-4bba-94c6-fb60bbff4a7f",
  "StockItemId": "7563154b-36de-4373-b9e4-b8b4151c1fbb",
  "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": "e9f42904-8218-4569-87c7-1b129a41346f",
  "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": "1b0f5b03-2380-418f-936c-150728decdfb",
  "AdditionalInfo": [
    {
      "pkOptionId": "e892dfbe-9773-4abc-b641-15a64c087501",
      "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": "88a90a0b-5fe8-4a67-a190-8537fa4a0f52"
    },
    {
    }
  ],
  "InventoryTrackingType": 34,
  "isBatchedStockItem": false
}