Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /MergeOrders

Allows 150 calls per minute

Response: OpenOrder



Merge a list of orders into a new one

Parameters

NameTypeDescription
ordersToMergeList<Guid>Orders to merge
fulfilmentCenterGuidCurrent fulfilment center
pkPostalServiceIdGuidPostal service id

Permissions

GlobalPermissions.OrderBook.OpenOrders.MergeOrdersNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/MergeOrders

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.

ordersToMerge=[
  "328efb92-17cb-4513-b2b7-e1f9a6549752"
]&fulfilmentCenter=1c7e3bdc-6d95-4dcf-bfe1-a902f9f23cff&pkPostalServiceId=cdf2db6e-22d6-4d24-8113-064cdab02534

Response

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

{
  "NumOrderId": 1,
  "GeneralInfo": {
    "Status": 1,
    "LabelPrinted": true,
    "LabelError": "sample string 3",
    "InvoicePrinted": true,
    "PickListPrinted": true,
    "IsRuleRun": true,
    "Notes": 7,
    "PartShipped": true,
    "Marker": 64,
    "IsParked": true,
    "Identifiers": [
      {
        "IdentifierId": 1,
        "IsCustom": true,
        "ImageId": "b88bd0b0-dc3a-49b5-9248-500f1fa9dd85",
        "ImageUrl": "sample string 4",
        "Tag": "sample string 5",
        "Name": "sample string 6"
      }
    ],
    "ReferenceNum": "sample string 10",
    "SecondaryReference": "sample string 11",
    "ExternalReferenceNum": "sample string 12",
    "ReceivedDate": "2022-08-03T16:02:33.6845136+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2022-08-03T16:02:33.6845136+01:00",
    "ScheduledDelivery": {
      "From": "2022-08-03T16:02:33.6845136+01:00",
      "To": "2022-08-03T16:02:33.6845136+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "ce37280a-8e7f-48cf-bec2-ea1cda4491f9",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "73f6259f-2931-4b9c-a3af-f0a6eadaed66",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "6e9e48a7-9e1e-44c3-bd57-1e74ae8af8e6",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "9d0c9d0d-3e17-41b8-9a15-a0480663b181",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  },
  "CustomerInfo": {
    "ChannelBuyerName": "sample string 1",
    "Address": {
      "EmailAddress": "sample string 1",
      "Address1": "sample string 2",
      "Address2": "sample string 3",
      "Address3": "sample string 4",
      "Town": "sample string 5",
      "Region": "sample string 6",
      "PostCode": "sample string 7",
      "Country": "sample string 8",
      "Continent": "sample string 9",
      "FullName": "sample string 10",
      "Company": "sample string 11",
      "PhoneNumber": "sample string 12",
      "CountryId": "719c70de-0b5b-49c3-a857-e4309efa3716"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "684e7cad-a442-41ab-b34d-ad39c44024be",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "TaxInfo": {
    "TaxNumber": "sample string 1"
  },
  "FolderName": [
    "sample string 1"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Fulfillment": {
    "FulfillmentState": 0,
    "PurchaseOrderState": 1
  },
  "Items": [
    {
      "ItemId": "53d31d36-b60a-4848-b378-4732eb884406",
      "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": "e829f82a-4a2b-4c17-88e7-0c825acaec1f",
        "Rowid": "06f5ce8c-f0f4-401e-a384-758f95670182",
        "pkPurchaseId": "c9287808-7084-4453-bbaf-b23ef739ae90",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "25d47ae7-20fc-4bf9-94f9-a799695c14a9",
        "DateOfDelivery": "2022-08-03T16:02:33.6845136+01:00",
        "QuotedDeliveryDate": "2022-08-03T16:02:33.6845136+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "0d17c8d1-055b-432b-b617-6e4fd0675304"
      },
      "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": "a1dfc3e4-0b69-47ea-b5fe-8a452bcea187",
      "AdditionalInfo": [
        {
          "pkOptionId": "f7dceffe-0ab5-4628-bee6-d2ca65c477f5",
          "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": "5f25d6aa-2bcb-4479-a586-247713b3bfa1",
          "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": "de9c8925-dac3-45e7-9a04-91ae3f2e2ecd",
          "LogicalDelete": true
        }
      ],
      "RowId": "f90530b8-e606-4889-8f69-d32f6d355ca9",
      "OrderId": "963955f0-7f7d-409e-b95f-071d344f4b26",
      "StockItemId": "35b719b4-d537-40e0-9e01-0621f8315867"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "a26c20bb-72d1-4ff7-b13c-a377c2c6361c"
}