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=a6d54ee7-cab2-4f47-965a-6ddadb38879d&stockItemId=fb24a261-33b5-4194-aa12-43aa2a869b19&fulfilmentCenter=f63cfdcf-cfd1-4959-8b14-10397f700df3

Response

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

{
  "ItemId": "daf74383-4e19-4f48-af09-e752653b1b20",
  "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": "8bc84c7b-311c-48fc-a76f-d72c41c76c48",
  "AdditionalInfo": [
    {
      "pkOptionId": "40bb9128-d81f-4e82-80c2-0a1617cf73e9",
      "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": "b3e8d91d-e232-431b-a399-d49a0630fe54",
      "BatchId": 1,
      "OrderItemBatchId": 1
    },
    {
    }
  ],
  "InventoryTrackingType": 32,
  "isBatchedStockItem": false,
  "HasPurchaseOrders": true,
  "CanPurchaseOrderFulfil": true,
  "IsUnlinked": false,
  "RowId": "607f4289-00c4-4de2-995a-1ab5c4c42ca7",
  "OrderId": "98d07334-adf8-457c-8952-ca63d8661e64",
  "StockItemId": "7ce14e39-2c38-410b-bab3-5f53e3a6aab6"
}