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=a3750bae-dd14-4f28-958d-b5ff68f01a43&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=d042fabf-c373-4a76-90ea-542e22684878

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": "d26097b8-ee37-4bee-81a1-57bbd774d5d6",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "Item": {
    "ItemId": "d38cc395-f071-4e9c-b026-54bffd02cfb7",
    "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": "a5f9382a-797f-4682-a7c6-6266f2021947",
      "Rowid": "6654383a-4e92-4522-a2c5-73a9247fe2f6",
      "pkPurchaseId": "feba2704-0072-4e17-b024-6e1ee9f9c588",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "f2fb5c97-397d-404c-9bf6-85a8868a4bcc",
      "DateOfDelivery": "2019-06-12T09:27:52.3768728+01:00",
      "QuotedDeliveryDate": "2019-06-12T09:27:52.3768728+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "6b082319-8ad4-4520-8024-5a7fcc5d38b5"
    },
    "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": "39681e13-f2e5-4bec-a30b-11b0653e6faf",
    "AdditionalInfo": [
      {
        "pkOptionId": "2ee1c8c2-18e5-45d9-ae42-cdecc3804c60",
        "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": "2f71e1d7-f576-4cc0-b210-b1d5b631ee30",
        "BatchId": 1,
        "OrderItemBatchId": 1
      },
      {
      }
    ],
    "InventoryTrackingType": 33,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "HasPurchaseOrders": true,
    "CanPurchaseOrderFulfil": true,
    "IsUnlinked": false,
    "RowId": "a1d1375c-29e7-40f8-9476-1daef216e038",
    "OrderId": "81876f65-0358-4a80-806e-ca3eab9dc125",
    "StockItemId": "959a5c08-57a3-45f5-9dda-eb256b3738b2"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}