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=0636abbb-fffa-4b1d-a1c6-775c897d1a74&stockItemId=e74e7e47-987e-4335-bbb4-8163f7a24892&fulfilmentCenter=0d43f3e7-7b9b-46c7-89c7-5a2a23a6a568

Response

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

{
  "ItemId": "17b96fed-77e5-4614-81ec-d1c222b508a5",
  "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": "c1de4897-57c4-45f0-a808-deec842f4442",
    "Rowid": "93b57318-427f-43e2-8270-a37d43d61a61",
    "pkPurchaseId": "a2ac596f-861f-4f9c-8149-f17c748798b0",
    "ExternalInvoiceNumber": "sample string 4",
    "fkSupplierId": "6ad0edba-cc1d-474a-8135-1fda56683870",
    "DateOfDelivery": "2019-06-12T09:27:53.0753598+01:00",
    "QuotedDeliveryDate": "2019-06-12T09:27:53.0753598+01:00",
    "SupplierName": "sample string 8",
    "fkLocationId": "9a101689-655d-43a4-89ba-e7cff547ec04"
  },
  "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": "674cb90c-2831-4b07-96c1-f14bbac90f79",
  "AdditionalInfo": [
    {
      "pkOptionId": "10d57c89-7b64-4e90-bf6b-4ea6e15edb5f",
      "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": "896f02c6-b509-427b-92aa-2c566ec6e777",
      "BatchId": 1,
      "OrderItemBatchId": 1
    },
    {
    }
  ],
  "InventoryTrackingType": 33,
  "isBatchedStockItem": false,
  "IsWarehouseManaged": true,
  "HasPurchaseOrders": true,
  "CanPurchaseOrderFulfil": true,
  "IsUnlinked": false,
  "RowId": "3f42d49a-8239-4922-830c-952a8c49e802",
  "OrderId": "9aba060b-8304-4c12-9c9a-a874869f578f",
  "StockItemId": "fccad4f5-b969-4628-b16d-3b81eeadee0c"
}