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=[
  "6a8f3d4d-ef47-465f-9e86-db185110f109",
  "6b054129-b3ab-4c51-8857-add2b010edc3"
]&fulfilmentCenter=3c5ae982-3e56-4d3b-8131-8cb2c0ea1001&pkPostalServiceId=4cfd7c6c-a237-4193-bdb6-e8dff4bde2db

Response

This is an example response. Results may vary depending on your data.

{
  "OrderId": "b1c82382-7f07-4c6d-94e2-0f0508a0c0d2",
  "NumOrderId": 2,
  "GeneralInfo": {
    "Status": 1,
    "LabelPrinted": true,
    "LabelError": "sample string 3",
    "InvoicePrinted": true,
    "PickListPrinted": true,
    "IsRuleRun": true,
    "Notes": 7,
    "PartShipped": true,
    "Marker": 64,
    "ReferenceNum": "sample string 9",
    "SecondaryReference": "sample string 10",
    "ExternalReferenceNum": "sample string 11",
    "ReceivedDate": "2018-02-19T16:57:08.2255755+00:00",
    "Source": "sample string 13",
    "SubSource": "sample string 14",
    "SiteCode": "sample string 15",
    "HoldOrCancel": true,
    "DespatchByDate": "2018-02-19T16:57:08.2255755+00:00",
    "Location": "6af8627e-a316-485b-90cf-364142a0cade",
    "NumItems": 19
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "1b52fb28-3316-49c6-9b12-697d50570e43",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "123407b2-45bc-487c-a8ce-dd78c00e238a",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "6c58838c-7908-46e3-8de3-e7a50643da49",
    "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",
      "FullName": "sample string 9",
      "Company": "sample string 10",
      "PhoneNumber": "sample string 11",
      "CountryId": "05b182b7-fcb6-47b1-bb7d-17e351e477be"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "6aeef983-d268-4461-88f3-9833ab1dc848",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "FolderName": [
    "sample string 1",
    "sample string 2"
  ],
  "Items": [
    {
      "OrderId": "0acd79fa-f321-4814-8f21-c4c5232f58c5",
      "ItemId": "40c63de9-d821-4144-a5ad-f22aa79b33ab",
      "StockItemId": "03de08c2-7e9a-4e69-b72c-9bc5e792d778",
      "ItemNumber": "sample string 4",
      "SKU": "sample string 5",
      "ItemSource": "sample string 6",
      "Title": "sample string 7",
      "Quantity": 8,
      "CategoryName": "sample string 9",
      "CompositeAvailablity": 1,
      "RowId": "40c99112-2f1f-488a-b6f5-cb8963c3f4c1",
      "StockLevelsSpecified": true,
      "OnOrder": 12,
      "InOrderBook": 1,
      "Level": 13,
      "MinimumLevel": 1,
      "AvailableStock": 14,
      "PricePerUnit": 15.1,
      "UnitCost": 16.1,
      "Discount": 17.1,
      "Tax": 22.1,
      "TaxRate": 18.1,
      "Cost": 19.1,
      "CostIncTax": 20.1,
      "CompositeSubItems": [
        {
        },
        {
        }
      ],
      "IsService": true,
      "SalesTax": 22.1,
      "TaxCostInclusive": true,
      "PartShipped": true,
      "Weight": 25.1,
      "BarcodeNumber": "sample string 26",
      "Market": 27,
      "ChannelSKU": "sample string 28",
      "ChannelTitle": "sample string 29",
      "DiscountValue": 17.490939881456391,
      "HasImage": true,
      "ImageId": "d8f9ae4b-e417-4b26-81ee-f42dc75e0006",
      "AdditionalInfo": [
        {
          "pkOptionId": "0119f212-4952-4406-876d-fd6ec58da281",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 30,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 33",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "91cea94e-f233-4cbc-8a6e-575612bd941f"
        },
        {
        }
      ],
      "InventoryTrackingType": 34,
      "isBatchedStockItem": false
    },
    {
    }
  ]
}