Back

Search

Search

Methods

Inventory

Orders

Orders /AddOrderService

Response: UpdateOrderItemResult



Add a service to an order

Parameters

NameTypeDescription
orderIdGuidOrder id
serviceStringService
costDoubleCost
taxRateDoubleTax rate
fulfilmentCenterGuidCurrent fulfilment center

HTTP Endpoint

Server /Orders / AddOrderService

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/AddOrderService 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=6cfebe31-39e7-4ade-a362-8e0d97450370&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=0c194f38-99b4-42d9-a707-8d53c4b4fe70

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": "b92fe48b-a1b9-4a27-b787-f53e263a0449",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "60625060-7d1c-47d8-82a9-75ebaf68a803",
    "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": "a76e431b-2cb4-4579-bd32-aadd9446f78a",
      "Rowid": "66bcdd98-44c0-4242-88e0-1b8a215180c6",
      "pkPurchaseId": "93f76616-8bf4-4077-b0aa-c948a80315f9",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "d1623d52-a232-44c0-a3e5-f688304b9308",
      "DateOfDelivery": "2019-10-09T15:11:44.505217+01:00",
      "QuotedDeliveryDate": "2019-10-09T15:11:44.505217+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "b82bb9ad-49aa-492a-8c77-07d1e67a9956"
    },
    "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": "c5b2fef3-be97-4eae-aac4-a5035cb5a795",
    "AdditionalInfo": [
      {
        "pkOptionId": "80258493-fb55-4dc1-802e-c09015d61d7a",
        "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": "0b36179c-9ee0-4604-a95e-04e5bfb77e49",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "55512cc3-8ac1-4e98-8b31-d9601c232bab",
    "OrderId": "4a95d13d-3cea-4768-b3f5-e93744e2173d",
    "StockItemId": "6570c1a6-b4a2-46dd-9efc-90469fcd8371"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}