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=[
  "0c7e37f3-a0c4-4afb-8572-bfa9c2a224b1",
  "4d597692-524e-4d52-a77d-0021d853b219"
]&fulfilmentCenter=923a1ab4-19c9-49f6-a606-b73af352ec1c&pkPostalServiceId=5fde55d4-54a2-4b38-ade7-4702fd34df4e

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": "11a59f69-da73-42d6-826a-c19996e398ab",
        "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-06-12T09:27:52.5710082+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-06-12T09:27:52.5710082+01:00",
    "ScheduledDelivery": {
      "From": "2019-06-12T09:27:52.5710082+01:00",
      "To": "2019-06-12T09:27:52.5710082+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "929887ed-a088-4f21-b430-15dcba5ed962",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "047c94a3-4668-4956-a8c6-53c35d2311ef",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "d37460c0-5719-42ef-93d7-b64ffdffbc92",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "0c82df4f-aa8f-4d89-b3ee-b5575c6ef77e",
    "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": "52cb71ad-7564-417b-88d0-fd23f21d3865"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "6a413463-4970-401c-b063-fa3895a97e76",
    "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": "a0567502-035c-4944-86ab-5e2b9df3e8d3",
      "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": "97a46b4b-efa3-4d8c-8a8a-501d14ab93e5",
        "Rowid": "839a0739-7471-4a72-a03b-fb16ee811a8b",
        "pkPurchaseId": "18778bd9-16e9-4c4b-99d9-c1ebad4bf242",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "72ba60d5-95e0-402d-8717-e0d492bebcc2",
        "DateOfDelivery": "2019-06-12T09:27:52.5710082+01:00",
        "QuotedDeliveryDate": "2019-06-12T09:27:52.5710082+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "abbcd7af-f884-4d88-ad3f-34f36a354951"
      },
      "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": "77198466-a24f-4e38-84bc-18ac5a71b106",
      "AdditionalInfo": [
        {
          "pkOptionId": "a4a84ab3-46ea-4773-bbfc-8e5bffaf0d70",
          "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": "02acdcf2-5046-4dfd-8044-88377b4ce159",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "69ec9eac-6a18-4462-ba2d-d957212c055a",
      "OrderId": "dce6815d-3edd-4839-a8df-301cb775841d",
      "StockItemId": "ea125ec7-1fe0-4e0c-8283-e2206d8ded91"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "b8e0065b-ba36-4586-844b-350e5c77628a"
}