Back

Search

Search

Methods

Inventory

Orders

Orders /AddOrderItem

Response: UpdateOrderItemResult



Add an item to a specific order.
Line pricing is optional with the default values being
- PricePerUnit: Stock item retail price
- DiscountPercentage: 0
- TaxRatePercentage: Stock item tax rate.
- TaxInclusive: true

Parameters

NameTypeDescription
orderIdGuidOrder id
itemIdGuidItem id to be added
channelSKUStringChannel SKU of the item
fulfilmentCenterGuidCurrent fulfilment center
quantityInt32Item quantity
linePricingLinePricingRequestItem pricing data

HTTP Endpoint

Server /Orders / AddOrderItem

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/AddOrderItem 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=c6cc7ddb-45ce-40b4-83c3-eb99861a51fe&itemId=7841f82e-2411-4ba6-936c-8d795c63a818&channelSKU=sample string 1&fulfilmentCenter=1f932850-a14e-4403-9841-062d41dffb7b&quantity=1&linePricing={
  "PricePerUnit": 1.1,
  "DiscountPercentage": 2.1,
  "TaxRatePercentage": 3.1,
  "TaxInclusive": true
}

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": "a0d08c7c-b54d-4b9a-b6d2-4137cb0de574",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "OrderId": "b2a51b33-f230-4234-9bc0-57490074c97c",
    "ItemId": "bf1c4223-6448-4fae-8cf4-dbc3513ade8d",
    "StockItemId": "56a9d394-d9e3-4a73-8b95-7625f50d4e39",
    "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": "34725a49-e32a-48d8-acdc-a7bc7ab1c14d",
    "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": "5a6fd570-702f-4db3-8685-b29bcb5752cf",
    "AdditionalInfo": [
      {
        "pkOptionId": "aa3f1c1d-f7b2-4b2f-8357-9ecd82681010",
        "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": "24a76fd7-66f9-4df4-be3d-604ce52f157d"
      },
      {
      }
    ],
    "InventoryTrackingType": 34,
    "isBatchedStockItem": false
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}