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=e0db84ba-d851-44d8-9707-592ff0446a86&service=sample string 1&cost=1.1&taxRate=1.1&fulfilmentCenter=880ca9bf-f7d3-4332-adc6-1fbc16cc64ff

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": "72279397-1e99-4496-9cbc-ef1e72928a1c",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "Item": {
    "ItemId": "2e09e886-4ec4-4ce5-b912-e620c945a7b0",
    "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": "595ddab9-f400-4bf7-b995-4eb8179a8901",
      "Rowid": "2360048c-93b3-4310-9c43-826629bba44c",
      "pkPurchaseId": "443191e2-5759-422c-b2be-d9871e6cf63d",
      "ExternalInvoiceNumber": "sample string 4",
      "fkSupplierId": "fe51d223-37d3-4777-8845-eaf7a2b7eb0d",
      "DateOfDelivery": "2022-09-05T15:10:05.1901458+03:00",
      "QuotedDeliveryDate": "2022-09-05T15:10:05.1901458+03:00",
      "SupplierName": "sample string 8",
      "fkLocationId": "eaea5578-b27d-46f5-9c81-dc7c779a6bbf"
    },
    "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": "b31eacc2-a6bd-4f8f-b1a9-0d4b7bcad4bf",
    "AdditionalInfo": [
      {
        "pkOptionId": "fa2b95f7-8d6b-4a9d-977e-765ce4b65de7",
        "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": "aeede22d-71a8-4eab-a527-73c8bd969aa1",
        "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": "e8a9caa3-2ae0-4d09-a964-628f98e37e43",
        "LogicalDelete": true
      }
    ],
    "RowId": "daff73e7-254d-4683-b683-9e12f9f0894f",
    "OrderId": "e50615a8-1722-4f20-ba1a-485ccdd15f3b",
    "StockItemId": "9d0b7edd-35fc-4a38-b85a-754594bf71ad"
  },
  "ItemWeight": 1.1,
  "TotalWeight": 2.1
}