Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Orders /AddOrderService

Allows 150 calls per minute

Response: UpdateOrderItemResult



Add a service to an order

Parameters

NameTypeDescription
orderIdGuidOrder id
serviceStringService
costDoubleCost
taxRateDoubleTax rate
fulfilmentCenterGuidCurrent fulfilment center

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Orders/AddOrderService

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

orderId=3c826cea-1c76-4248-b699-9e61bcf11efe&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=9a3060c5-f803-402f-8cc9-41b9abb9653f

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "Tax": 4.1,
    "TotalCharge": 5.1,
    "PaymentMethod": "sample string 6",
    "PaymentMethodId": "f352ca26-4c80-4807-8c25-9903191ab141",
    "ProfitMargin": 8.1,
    "TotalDiscount": 9.1,
    "Currency": "sample string 10",
    "CountryTaxRate": 11.1,
    "ConversionRate": 12.1
  },
  "Item": {
    "ItemId": "1397119a-534b-490e-ba06-62166b69ef9d",
    "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": "999f436e-858a-45ef-8585-cd32f80682d3",
      "Rowid": "1bd6b4dc-5177-4828-a03a-13ce3e7c26a4",
      "pkPurchaseId": "88844008-01f4-4d1b-9065-50e4e9f78e72",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "12a1b93b-8b0f-4bac-8edf-a16e2c8e964e",
      "DateOfDelivery": "2021-07-29T09:24:51.6058569+01:00",
      "QuotedDeliveryDate": "2021-07-29T09:24:51.6058569+01:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "191f9fef-3c4b-4e7a-bc4a-0f6850660f5f"
    },
    "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": "fcdecbc8-a348-4ce8-baaf-3eae0f819b71",
    "AdditionalInfo": [
      {
        "pkOptionId": "c540b5ea-1854-4dc3-8aba-a1ebefd689d6",
        "Property": "sample string 2",
        "Value": "sample string 3"
      }
    ],
    "StockLevelIndicator": 29,
    "ShippingCost": 30.1,
    "PartShippedQty": 31,
    "ItemName": "sample string 32",
    "BatchNumberScanRequired": true,
    "SerialNumberScanRequired": true,
    "BinRack": "sample string 35",
    "BinRacks": [
      {
        "Quantity": 1,
        "BinRack": "sample string 2",
        "Location": "cff1abd2-f8cf-4653-a7e1-20ddf7ad79d8",
        "BatchId": 1,
        "OrderItemBatchId": 1
      }
    ],
    "InventoryTrackingType": 36,
    "isBatchedStockItem": false,
    "IsWarehouseManaged": true,
    "IsUnlinked": false,
    "StockItemIntId": 39,
    "Boxes": [
      {
        "BoxId": 1,
        "StockItemIntId": 2,
        "BoxName": "sample string 3",
        "Width": 4.0,
        "Height": 5.0,
        "Length": 6.0,
        "Weight": 7.0,
        "ValuePercentage": 8.0,
        "Barcode": "sample string 9",
        "PackagingTypeId": "cff786de-356c-494a-a28f-c1a8ad748b98",
        "LogicalDelete": true
      }
    ],
    "RowId": "85faae31-96be-476a-b620-c7f451908e8c",
    "OrderId": "fd26a4da-5121-49f7-9503-2239d7c65ac8",
    "StockItemId": "efa6cea5-29cb-4efa-b2cb-4c9d53d994e9"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}