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=c12f0577-73d7-4e61-8832-3c81cda81cfd&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=595c3137-ba13-4941-b82b-7b059b7e4474

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": "95a6004b-fb0e-4237-a413-1564912c81d4",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "e981b0fd-b102-4f2b-8588-f827c8f58582",
    "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": "1a9bb323-835b-438a-8516-dd5bdeaef2be",
      "Rowid": "9da6c6e0-bbf2-4f82-b323-17f9ca0bf7ae",
      "pkPurchaseId": "d9b37d7c-70e1-42f0-88fe-75b16ec9e907",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "47cf92f9-c457-497f-9ff3-1fae39bcd2e1",
      "DateOfDelivery": "2019-11-28T09:46:00.9729538+00:00",
      "QuotedDeliveryDate": "2019-11-28T09:46:00.9729538+00:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "5695fa77-1dff-4eb7-98fa-aaec205030de"
    },
    "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": "163d049e-3198-47d6-96c9-28b2f170017d",
    "AdditionalInfo": [
      {
        "pkOptionId": "91d5c6c3-f620-4739-9730-34be85e7fc2e",
        "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": "dd60f734-a985-42a0-830f-4d14ca9fc66a",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "80f3358f-469e-4632-b418-583cca984864",
    "OrderId": "ba98041a-e738-47e0-adef-52f7af497021",
    "StockItemId": "df4645e6-7e13-481c-83c5-a8d46ac2861f"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}