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
Name | Type | Description |
---|---|---|
orderId | Guid | Order id |
itemId | Guid | Item id to be added |
channelSKU | String | Channel SKU of the item |
fulfilmentCenter | Guid | Current fulfilment center |
quantity | Int32 | Item quantity |
linePricing | LinePricingRequest | Item pricing data |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Orders/AddOrderItem
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
orderId=d9a79ade-49bf-4742-8b84-63530b9e580b&itemId=3d572c35-001a-4498-98a0-f3d15fb5504b&channelSKU=sample string 1&fulfilmentCenter=afd015af-337f-47c1-9851-69e6a6a4dc6e&quantity=1&linePricing={
"PricePerUnit": 1.1,
"DiscountPercentage": 2.1,
"TaxRatePercentage": 3.1,
"TaxInclusive": true
}
This is an example of the response JSON. Results will vary depending on your data.
{
"TotalsInfo": {
"Subtotal": 2.1,
"PostageCost": 3.1,
"PostageCostExTax": 4.1,
"Tax": 5.1,
"TotalCharge": 6.1,
"PaymentMethod": "sample string 7",
"PaymentMethodId": "97757f06-aede-4f23-ba30-21c3510237ec",
"ProfitMargin": 9.1,
"TotalDiscount": 10.1,
"Currency": "sample string 11",
"CountryTaxRate": 12.1,
"ConversionRate": 13.1
},
"Item": {
"ItemId": "6dff5aac-0a40-4f86-a9a9-0662f47a6bcc",
"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": "6635876f-9f61-47a8-9b90-be1f7ea5974b",
"Rowid": "14285e20-3421-42a3-beec-07aa11e91138",
"pkPurchaseId": "111b1db3-c13f-4f46-8365-6758eae58512",
"ExternalInvoiceNumber": "sample string 4",
"fkSupplierId": "c470fa1f-eb2d-4f23-995c-d4b9d3959586",
"DateOfDelivery": "2022-03-09T13:04:14.0879933+00:00",
"QuotedDeliveryDate": "2022-03-09T13:04:14.0879933+00:00",
"SupplierName": "sample string 8",
"fkLocationId": "c424a14d-9331-4e3e-aff3-76752e53b2a5"
},
"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": "9d0670e4-3637-4722-aab8-516b214751a4",
"AdditionalInfo": [
{
"pkOptionId": "41de26a8-06fb-4133-9a7a-aa54776a2e49",
"Property": "sample string 2",
"Value": "sample string 3"
}
],
"StockLevelIndicator": 29,
"ShippingCost": 30.1,
"PartShippedQty": 31,
"ItemName": "sample string 32",
"BatchNumberScanRequired": true,
"SerialNumberScanRequired": true,
"BinRack": "sample string 35",
"BinRacks": [
{
"Quantity": 1,
"BinRack": "sample string 2",
"Location": "ca679fe9-d2e3-4d9a-99aa-a086a969d335",
"BatchId": 1,
"OrderItemBatchId": 1
}
],
"InventoryTrackingType": 36,
"isBatchedStockItem": false,
"IsWarehouseManaged": true,
"IsUnlinked": false,
"StockItemIntId": 39,
"Boxes": [
{
"BoxId": 1,
"StockItemIntId": 2,
"BoxName": "sample string 3",
"Width": 4.0,
"Height": 5.0,
"Length": 6.0,
"Weight": 7.0,
"ValuePercentage": 8.0,
"Barcode": "sample string 9",
"PackagingTypeId": "55fc3413-a653-4034-b2d8-c08788e164c6",
"LogicalDelete": true
}
],
"RowId": "1c56f4ea-c700-4abd-8355-32d46c4f02e4",
"OrderId": "6920f57d-2708-42e4-806e-67487d7f2690",
"StockItemId": "c37cf262-0de3-4fdb-9fad-1a85a9a0f64d"
},
"ItemWeight": 1.1,
"TotalWeight": 2.1
}