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=70f51804-a45b-4695-8e0a-d47ffaa45eb5&itemId=6b5a4644-8058-4fd2-aee6-3e47cf36ae8b&channelSKU=sample string 1&fulfilmentCenter=87585d1f-3c9a-4828-b2a7-93ca2337e8df&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": "ae4b1a0c-b624-45ad-a5d4-9239be3b4c2b",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "56779ed4-0b45-4bb2-a3b0-57a6bdcb44d0",
    "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": "7a749197-a264-4453-a1e8-9924a0fd7932",
      "Rowid": "db5c9cf0-73c3-4a46-95d7-e9d75a91579f",
      "pkPurchaseId": "c3ba4836-79ee-498b-a8af-6ec7a406225f",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "d259d0ec-d6ee-4fe2-bc96-0f391704c4df",
      "DateOfDelivery": "2019-10-09T15:11:44.4697564+01:00",
      "QuotedDeliveryDate": "2019-10-09T15:11:44.4697564+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "3c1a0056-62a6-41dc-a337-8975511acbf0"
    },
    "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": "6223c48a-a37e-4b0a-a73f-b96a971fee68",
    "AdditionalInfo": [
      {
        "pkOptionId": "c5dd2469-6fd1-4877-9654-5805de21b709",
        "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": "d63cfe5f-07e6-4bf0-8386-27e75586c293",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "e77ff25c-2f16-445a-af1d-64f5b6a75f55",
    "OrderId": "97438aad-0abc-4a12-bceb-0bf6dd2b2fea",
    "StockItemId": "0695c94c-987f-4573-a980-3f822f936e29"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}