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=1eb62dc7-1b6f-4c66-97cb-638cda184304&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=28430703-027e-4450-8b73-2467a7cdc043

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": "cb4f77ee-f18b-479b-b9e1-1421c0c4c1ec",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "b37b2b9d-9cad-4314-9927-488c1f4cf244",
    "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": "173ac6d8-bb17-4769-9119-da9123f34e9c",
      "Rowid": "45a88396-f19b-4e57-9ab4-c221d8e89796",
      "pkPurchaseId": "551837af-27c6-49f7-a0e1-b3b15d8fb6e0",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "294ab937-4ea3-4a35-bf20-b447651a5dc1",
      "DateOfDelivery": "2019-08-21T13:34:05.991561+01:00",
      "QuotedDeliveryDate": "2019-08-21T13:34:05.991561+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "2692b349-c27c-4baf-a67e-68b91d6a7c29"
    },
    "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": "0c069cae-aeca-4276-8b9e-14051f43a6c3",
    "AdditionalInfo": [
      {
        "pkOptionId": "80a0295c-9aec-420a-bd69-cbe729e78a7d",
        "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": "c54b2a52-ac05-45db-bc7e-953ea5077f45",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "4d07c938-740d-408d-8080-a9d5e859b39a",
    "OrderId": "f4b6be21-d22b-4c7f-90d8-30d31efd19e5",
    "StockItemId": "960fea44-a4dc-4351-9dcf-fe54da6841d8"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}