Back

Search

Search

Methods

Inventory

Orders

Orders /MergeOrders

Response: OpenOrder



Merge a list of orders into a new one

Parameters

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

HTTP Endpoint

Server /Orders / MergeOrders

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/MergeOrders HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

ordersToMerge=[
  "3f8bf741-0ff1-47ed-8e8b-de21d76b2de2",
  "b2d7ead6-ed7c-4874-be8f-b8578a7cedd6"
]&fulfilmentCenter=6380a7f2-8f71-4559-adf3-c307cae9b127&pkPostalServiceId=001b1bd8-b601-4f4c-bfb2-449334b0f80f

Response

This is an example response. Results may 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": "cc5b2a80-0bf6-4e39-87e6-440abf46d258",
        "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": "2019-11-28T09:46:01.2020812+00:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-11-28T09:46:01.2020812+00:00",
    "ScheduledDelivery": {
      "From": "2019-11-28T09:46:01.2020812+00:00",
      "To": "2019-11-28T09:46:01.2020812+00:00"
    },
    "HasScheduledDelivery": true,
    "Location": "758c42f2-9433-468e-a904-2b278e980f96",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "592e7208-4078-4459-9c10-62e81a5faed2",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "e12eddb3-6625-4e9e-9898-91de320b7d0c",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "85d2f44a-7ee2-43e5-b0df-336083a4e1f8",
    "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": "8f287418-480b-46af-93f2-600b94d397c3"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "97407980-b060-4cc5-8b0f-d51278d8611e",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "FolderName": [
    "sample string 1",
    "sample string 2"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Items": [
    {
      "ItemId": "f4eb89da-ba2e-4776-b040-3059645d2c53",
      "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": "da37435d-6c62-46a5-b15f-7c773b8adafb",
        "Rowid": "185ff764-3528-4736-b0a0-e1ac8e312ab5",
        "pkPurchaseId": "0f3168b8-6d1d-469c-8a96-f07f33774371",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "9c43344e-d267-45a5-8c5f-bf7ac7308010",
        "DateOfDelivery": "2019-11-28T09:46:01.2020812+00:00",
        "QuotedDeliveryDate": "2019-11-28T09:46:01.2020812+00:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "274deca0-b75b-44d0-8151-e765ebc84402"
      },
      "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": "a08ca13a-c0b4-44f7-af44-11d9c31c6b12",
      "AdditionalInfo": [
        {
          "pkOptionId": "e91b36a8-ac27-46ff-924a-eabeb0bc0144",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 29,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 32",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "fdd1852b-7850-464f-bb02-b0875c185b53",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "3bca8aa8-74d7-4089-89a0-ceed5a72c8c5",
      "OrderId": "798f276c-946c-46b3-aed1-36d52945c127",
      "StockItemId": "66270e93-585d-40a8-a3d2-e3940dadcc7d"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "09a23a13-8a47-4cb7-bd52-bf820891d0f6"
}