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=[
  "8750fabc-fe1e-433f-9648-948f985e8dd1",
  "fdea3a52-245c-44cb-acee-e5620bfdf25b"
]&fulfilmentCenter=a46ef21d-15fe-4872-8ab7-750242b219f7&pkPostalServiceId=5bbffd45-2317-4105-bb23-976a3460553e

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": "8a9a4c75-b8c0-4aa3-abde-2077bfb33ff4",
        "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-08-21T13:34:06.1857437+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-08-21T13:34:06.1857437+01:00",
    "ScheduledDelivery": {
      "From": "2019-08-21T13:34:06.1857437+01:00",
      "To": "2019-08-21T13:34:06.1857437+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "475a58f5-3cbf-4bc4-a368-75d7867522cf",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "6c371937-79a7-4093-a908-9690cf23ffd1",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "40f5aba4-5b7a-453d-b909-b95d0ab52eb2",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "9cf93f11-b62d-41cb-a943-37e8fbb1f6ad",
    "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": "81507a46-be75-414b-8658-aed6600d5e66"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "6a6ecfa8-6804-4634-b5b1-da859fc49833",
    "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": "0fd23df3-c243-49bc-a674-cb68201d1f2f",
      "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": "3975af53-1dd7-4f84-b7c2-9468b3f3f1f5",
        "Rowid": "6e8db847-8996-4048-8329-fb996e71890b",
        "pkPurchaseId": "996c510c-8b7b-49a7-aa4b-686e763717f5",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "f96f308b-aa15-4dd8-a5e5-ea000c4825de",
        "DateOfDelivery": "2019-08-21T13:34:06.1857437+01:00",
        "QuotedDeliveryDate": "2019-08-21T13:34:06.1857437+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "8d0f9ec1-777e-4ba7-85fb-8d0d4392ab6e"
      },
      "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": "697239f1-23c9-4b93-9e9f-f09271f3a7cf",
      "AdditionalInfo": [
        {
          "pkOptionId": "c773b861-43fd-40cd-83f1-f0d865f4d5bc",
          "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": "429c72a3-16d7-4398-b7c6-9e8810f7fe49",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "161827b7-8b49-49ed-a9c3-447945a7929b",
      "OrderId": "6c1b4dec-11a1-4939-af12-d46779701002",
      "StockItemId": "9aa9084d-971c-4949-94c7-96963eb720c9"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "d6e7e8f4-4d43-420d-bd56-ab2fb7c364ba"
}