Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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

GET | 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=40dae1f8-d7ad-435c-94fd-4e01b40e68ed&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=95d86d28-49f7-40f4-9099-8bbf4fe026d7

Response

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

{
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "eb6745e4-ec1a-46b8-abef-59eb9fcadcfb",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "Item": {
    "ItemId": "4f223238-2be5-4780-852a-afe5e58fd2e0",
    "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": "e4cbe752-7cd9-47d4-ae0b-606a5d9b734b",
      "Rowid": "63174848-5edd-451f-88f1-993454ac7360",
      "pkPurchaseId": "07c6c9e9-fb19-4af8-bdc5-eac06ed7e0c7",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "2e376cf4-e797-4dd6-9de5-68699562c2fa",
      "DateOfDelivery": "2023-01-10T13:49:54.3150585+00:00",
      "QuotedDeliveryDate": "2023-01-10T13:49:54.3150585+00:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "1dd1098e-c0aa-44c2-9142-ee3f3faa77c9"
    },
    "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": "567c5e72-11b7-42bb-8f1f-a850e1ba5af6",
    "AdditionalInfo": [
      {
        "pkOptionId": "1678d193-4925-4d77-91f5-719650d9723f",
        "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": "467764a3-69ff-421b-b065-437d10558422",
        "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": "26c3dc2f-6178-414d-b70f-79cabba7d3e3",
        "LogicalDelete": true
      }
    ],
    "RowId": "fa4af7a1-8cb7-4ab7-b769-c67078c81522",
    "OrderId": "b55ae86e-fbc9-453c-b4d5-483d6388b152",
    "StockItemId": "f1227f0f-923e-48a1-9db5-aecff2cfb4b8"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}