Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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=[
  "b28dc5a8-4a5e-4f2f-b7cf-2a0aa2fb99f1"
]&fulfilmentCenter=379f4da7-ef45-440a-9b6b-ee3dbc0cd832&pkPostalServiceId=84fe096f-e201-486d-9252-c3fb2bafdbef

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": "5fe8ab2c-5737-41cf-9d33-7a2f8d1f135c",
        "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": "2021-07-29T09:24:51.6718567+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2021-07-29T09:24:51.6718567+01:00",
    "ScheduledDelivery": {
      "From": "2021-07-29T09:24:51.6718567+01:00",
      "To": "2021-07-29T09:24:51.6718567+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "73d81692-19e5-43fe-b86d-1264684e5c28",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "28eb7b02-f0e2-4974-b7cd-4836727095af",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "8152eb40-edac-4f5c-bd74-e3a387774004",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "a05380d5-92d2-4e10-852a-0cfe93448d1d",
    "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": "4b8304d8-36eb-4186-b7ba-fb888cf50869"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "Tax": 4.1,
    "TotalCharge": 5.1,
    "PaymentMethod": "sample string 6",
    "PaymentMethodId": "58e4befe-9cdb-4214-bff6-2290ddb9b3dc",
    "ProfitMargin": 8.1,
    "TotalDiscount": 9.1,
    "Currency": "sample string 10",
    "CountryTaxRate": 11.1,
    "ConversionRate": 12.1
  },
  "TaxInfo": {
    "TaxNumber": "sample string 1"
  },
  "FolderName": [
    "sample string 1"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Fulfillment": {
    "FulfillmentState": 0,
    "PurchaseOrderState": 1
  },
  "Items": [
    {
      "ItemId": "53a29ab9-8aaa-4743-bd87-4cd6f5b90a7c",
      "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": "5e565d67-2eaf-444a-9046-a3f962129ab3",
        "Rowid": "ed564f6e-fddb-4f73-9634-f6d55ee4bf91",
        "pkPurchaseId": "e68abd86-87dc-4a25-b3cf-d1b713277fef",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "8bae8533-d78b-4741-b6a1-ab451da41bbe",
        "DateOfDelivery": "2021-07-29T09:24:51.6728569+01:00",
        "QuotedDeliveryDate": "2021-07-29T09:24:51.6728569+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "e38c6efb-718b-4662-980d-c4bab179d5b2"
      },
      "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": "7b7d9bf3-ac6e-4911-a3f2-5622252095d9",
      "AdditionalInfo": [
        {
          "pkOptionId": "84db95d7-c5aa-477d-9369-70018bacdf6b",
          "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": "3f8e5969-774c-414b-8bd7-272c61ca5a00",
          "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": "15fd4475-7524-417e-a02e-622c63d50d3e",
          "LogicalDelete": true
        }
      ],
      "RowId": "2b8d4a6d-d128-4d4d-9fc6-607abaeb8865",
      "OrderId": "9a09bc4b-389a-4f5d-b298-53b411971243",
      "StockItemId": "f7c8c9cd-89a2-479a-bc87-a5ce2c5b238a"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "ab03960b-c71c-4886-bc53-e75eccfd153f"
}