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=177839f4-b86e-4824-b39e-5e3e682ac446&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=cff89533-5eeb-45c0-a5bc-da7461b697d1

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": "11264469-4782-46fd-8157-e351ba4d4a6a",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "OrderId": "091b1727-4cc1-4507-9d16-e7840f33ddb4",
    "ItemId": "3202ac39-2005-4422-a7f2-87223eca6b0f",
    "StockItemId": "b92ae8d2-7289-4866-958d-4f0b29d07a81",
    "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": "f2a85ed4-8a1b-4bc3-82cb-3c31856fd9d5",
    "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": "837d3b94-efe5-4edd-a43d-333f3517c19c",
    "AdditionalInfo": [
      {
        "pkOptionId": "e59c5d9e-0bd6-4884-a1c6-f48dbeb36e92",
        "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": "2e672c76-dcb3-467b-8342-0094730103a0"
      },
      {
      }
    ],
    "InventoryTrackingType": 34,
    "isBatchedStockItem": false
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}