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=efa9d6d6-dcd7-46b7-88cb-c39db9575f7d&itemId=985a8a8f-3885-44ca-b85a-f8193ce06812&channelSKU=sample string 1&fulfilmentCenter=7b9793de-7fe4-472a-b1e8-a109419b0201&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": "969818a3-36b3-49ca-8fd0-1c97ac79584c",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "86dfc81c-5d3c-4afa-91e3-60c24dbb80fd",
    "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": "c3a1763d-da03-4cd7-adcc-490264b4b00b",
      "Rowid": "b40d7aaf-15e4-4212-bb23-9e5f724207ef",
      "pkPurchaseId": "8664f192-eef9-4131-9e95-b3ffbc4127a6",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "3bdf1784-5dd8-477b-b480-279b5e2e4751",
      "DateOfDelivery": "2019-06-12T09:27:52.350855+01:00",
      "QuotedDeliveryDate": "2019-06-12T09:27:52.350855+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "8bfdb6c4-b122-4f8b-bdfd-a191221542fd"
    },
    "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": "f658337e-b2a8-4bf1-97f6-0f8d5f8dd665",
    "AdditionalInfo": [
      {
        "pkOptionId": "b1c486af-b8d7-4f2d-ae45-3873597bbdbb",
        "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": "9eaa139b-a84e-4609-83b2-b61473b37abd",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "55be9b74-2737-4025-9c52-e3391ca45ce3",
    "OrderId": "aadc1cb7-d4e5-4fdb-b037-a7b1c46949ca",
    "StockItemId": "29cdd484-a5bd-44b5-977d-59a68708632d"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}