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=e4860249-3d31-427b-af45-7b3870131a53&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=df3de947-7660-407e-beff-4f4f0a896331

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": "c00a218a-cbb7-4d4d-b9e4-ed54c64008ce",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "c28c2848-49c8-40a0-9df9-b8b2aec45ffc",
    "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,
    "InOrderBook": 1,
    "Level": 11,
    "MinimumLevel": 1,
    "AvailableStock": 12,
    "PricePerUnit": 13.1,
    "UnitCost": 14.1,
    "Discount": 15.1,
    "Tax": 20.1,
    "TaxRate": 16.1,
    "Cost": 17.1,
    "CostIncTax": 18.1,
    "CompositeSubItems": [
      {
      },
      {
      }
    ],
    "IsService": true,
    "SalesTax": 20.1,
    "TaxCostInclusive": true,
    "PartShipped": true,
    "Weight": 23.1,
    "BarcodeNumber": "sample string 24",
    "Market": 25,
    "ChannelSKU": "sample string 26",
    "ChannelTitle": "sample string 27",
    "DiscountValue": 10.222739018087856,
    "HasImage": true,
    "ImageId": "62b4abb4-0c01-42bc-ae80-74687176b66b",
    "AdditionalInfo": [
      {
        "pkOptionId": "8c4c798d-ad15-4607-a8d5-d053a53f97fe",
        "Property": "sample string 2",
        "Value": "sample string 3"
      },
      {
      }
    ],
    "StockLevelIndicator": 28,
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "BinRack": "sample string 31",
    "BinRacks": [
      {
        "Quantity": 1,
        "BinRack": "sample string 2",
        "Location": "902f273b-15cb-4166-933d-551427951653",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 32,
    "isBatchedStockItem": false,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "5b36cba4-32d5-41c1-8a9b-e0d423f7801c",
    "OrderId": "cfb8a2fc-1731-4b65-a2a1-57d1c1b22e8c",
    "StockItemId": "fb6f6cf9-58ad-449b-a8bb-8e814aac3b32"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}