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=[
  "159c1fd6-3bb5-4312-a271-5d58d1ab5c0c",
  "cba589fb-8f0d-461b-9975-e2d81ae85225"
]&fulfilmentCenter=0ce7292e-247a-4dfb-a6d9-2c9b81bef387&pkPostalServiceId=29bdad8e-04bb-48db-875d-e25c91a99502

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": null,
    "ReferenceNum": "sample string 10",
    "SecondaryReference": "sample string 11",
    "ExternalReferenceNum": "sample string 12",
    "ReceivedDate": "2018-10-03T11:12:36.1256548+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2018-10-03T11:12:36.1256548+01:00",
    "ScheduledDelivery": {
      "From": "2018-10-03T11:12:36.1256548+01:00",
      "To": "2018-10-03T11:12:36.1256548+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "9a95b053-b5b7-4dca-9c13-7b2d1e59e721",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "81417f1c-8c15-4f02-b843-8cf640b280d4",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "7318df2c-77e7-458b-97f9-d1ac5cbf63bc",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "634e1a65-ccbf-4659-81b1-a04351a27e09",
    "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": "ab983ee1-2580-4833-b2fc-b2cf7aaed2f6"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "7782d8cb-e6ff-4920-9a93-d2e6c35a14dc",
    "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": "ae7cf7e2-5a86-41c0-b662-f8bc148b5316",
      "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,
      "InOrderBook": 1,
      "Level": 11,
      "MinimumLevel": 1,
      "AvailableStock": 12,
      "PricePerUnit": 13.1,
      "UnitCost": 14.1,
      "Discount": 15.1,
      "Tax": 20.1,
      "TaxRate": 16.1,
      "Cost": 17.1,
      "CostIncTax": 18.1,
      "CompositeSubItems": [
        {
        },
        {
        }
      ],
      "IsService": true,
      "SalesTax": 20.1,
      "TaxCostInclusive": true,
      "PartShipped": true,
      "Weight": 23.1,
      "BarcodeNumber": "sample string 24",
      "Market": 25,
      "ChannelSKU": "sample string 26",
      "ChannelTitle": "sample string 27",
      "DiscountValue": 10.222739018087856,
      "HasImage": true,
      "ImageId": "a9664fe0-f528-4d80-864e-3c4f5484b157",
      "AdditionalInfo": [
        {
          "pkOptionId": "cc673857-e7f8-4b17-ab78-81e1d28cb4c8",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 28,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 31",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "f4f85010-ef66-46e7-85b2-47ac07a19024",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 32,
      "isBatchedStockItem": false,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "3227f617-efec-4377-8368-f4e9c9b19ffa",
      "OrderId": "aa7b60d1-5eea-47fa-af0a-bd44dc1d3b4b",
      "StockItemId": "1fe1fe3e-a172-414e-ba1d-882a65c9dbf9"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "b6b8b78e-168b-4f10-9d29-e1e3106f57e5"
}