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=[
  "6b3b6595-d4e9-4165-8e6a-a2bf6f495a6b"
]&fulfilmentCenter=bf998e80-d3dc-4728-8cd5-70ebca9dc3ed&pkPostalServiceId=676b6a54-a7a3-40a1-9c19-1e5e0672a890

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": "c82e082c-68ae-45cf-b0e6-e13ca44a5772",
        "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": "2023-01-10T13:49:54.3520333+00:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2023-01-10T13:49:54.3520333+00:00",
    "ScheduledDelivery": {
      "From": "2023-01-10T13:49:54.3520333+00:00",
      "To": "2023-01-10T13:49:54.3520333+00:00"
    },
    "HasScheduledDelivery": true,
    "Location": "6e53e31b-6af8-47ac-8600-9718ca6a7069",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "60c021d9-0581-40e5-943d-7906377941cf",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "0f0d651f-611a-42cd-adb1-ef58adf0cd1a",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "c7c2bcb8-774d-42b0-8b5b-d2387a6ffbc3",
    "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": "6b849fae-dcce-4262-99f7-4aa8569c33ab"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "1b9861f7-ab28-4989-9071-4afa9d164e71",
    "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": "834a0d98-cd7d-4a2a-8603-326490a399d2",
      "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": "97d7033b-d828-4e9e-b0ab-c9916dd44faa",
        "Rowid": "95eede6c-d597-4d66-b93f-cdd8e66412d2",
        "pkPurchaseId": "33f852ab-7359-424e-ab68-b2871ba3ae1e",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "b5c5a6f5-cdc0-4ec6-9e6e-4278faaf00a0",
        "DateOfDelivery": "2023-01-10T13:49:54.3520333+00:00",
        "QuotedDeliveryDate": "2023-01-10T13:49:54.3520333+00:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "13cef143-12ef-41e7-9c55-1b48c4570577"
      },
      "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": "1c4c9672-4637-42f6-8578-75a0d830653d",
      "AdditionalInfo": [
        {
          "pkOptionId": "d6eba873-058c-4321-a732-63a1da148b33",
          "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": "4d5d7c00-6786-46e6-ab33-5e2d72a7c57d",
          "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": "dd3de198-d525-486b-8834-3cdf532d8396",
          "LogicalDelete": true
        }
      ],
      "RowId": "73b958cc-5890-484f-ba22-15b50e8c4b70",
      "OrderId": "4819a158-6814-464b-a665-7a8a7f6e518b",
      "StockItemId": "7f256682-df05-4b34-9557-6c0a71a8f45f"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "f9a16e6b-7395-40d3-b056-05d0daa2b2ea"
}