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.

Get

Endpoint URL

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

GET https://eu-ext.linnworks.net/api/Orders/AddOrderService?orderId=4ff6cc2d-77aa-467b-b95d-4d8501e13b11&service=sample%20string%201&cost=1.1&taxRate=1.1&fulfilmentCenter=1ef9ffff-a418-414a-bdba-e811bab742cb

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

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=4ff6cc2d-77aa-467b-b95d-4d8501e13b11&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=1ef9ffff-a418-414a-bdba-e811bab742cb

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": "33ed5a07-c7a9-494f-ae92-1f2db66e2755",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "Item": {
    "ItemId": "a9b4a049-d2a8-45ad-9319-b21d246bef70",
    "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": "5dc4239f-845c-4aca-a359-9dc9eb8c2e8d",
      "Rowid": "0f4b3f49-ac9d-4598-b131-7693b2c7c480",
      "pkPurchaseId": "813c36a2-ef88-4f4f-abb1-99b79340d8fc",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "aee93ad9-305c-415c-95ae-4f67c1caf9d0",
      "DateOfDelivery": "2022-01-13T12:45:49.2707895+00:00",
      "QuotedDeliveryDate": "2022-01-13T12:45:49.2707895+00:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "d5010be7-73ba-45b8-9ba6-91738b4ffa3a"
    },
    "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": "9b5b43f7-a954-43e8-b6d9-12e795cc712e",
    "AdditionalInfo": [
      {
        "pkOptionId": "6e09246a-0061-4748-92c4-8170dfa419d1",
        "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": "46b9fc62-5b21-42e0-b595-2e3259338aff",
        "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": "c5e8cc45-d954-4fef-8d9e-23c68800c84d",
        "LogicalDelete": true
      }
    ],
    "RowId": "fdf9e330-b497-4663-98d0-184029545bb1",
    "OrderId": "b8ac90d2-b788-4f37-a7ba-aee85b54f3db",
    "StockItemId": "5460cdf6-9b79-4c47-8ac9-34cdab19282d"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}