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=[
  "6a3f14d2-8607-4781-8c41-0403ceacbe30",
  "177947f3-12f2-4be4-bbf9-2e8e41ec4d3b"
]&fulfilmentCenter=5760f2e1-3d37-4dcd-a4ba-410c3a298198&pkPostalServiceId=3996fcbc-6c29-4cca-87b1-f31d4a61b8c8

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": "ef5c44a4-590a-4926-93d9-efdda8f024ba",
        "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-10-09T15:11:44.7737048+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-10-09T15:11:44.7737048+01:00",
    "ScheduledDelivery": {
      "From": "2019-10-09T15:11:44.7737048+01:00",
      "To": "2019-10-09T15:11:44.7737048+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "1f9befc4-97a7-4dd7-a557-7dd88cc7873b",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "3450bb4a-33e8-4e7d-9674-a0b0805d90ce",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "946ebf87-fcbc-4fbb-ab1d-fad583489869",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "453d07ae-b4f8-4345-85d9-365a4470a981",
    "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": "a4b8f9c5-a3ff-4c01-819b-dec029c5159e"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "b48dfe1f-cb57-4f0c-aef9-f8e1ed41859f",
    "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": "50b16862-3439-455a-b44b-f89271dbfee7",
      "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": "814ca818-1a99-415b-8801-056b454267fd",
        "Rowid": "6712227d-3d7d-4968-90ec-046d2752d9d3",
        "pkPurchaseId": "2cfd4d07-beab-4585-b6e7-0c22f67f5ba9",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "7c143fa6-6272-43ee-8df1-93dba18b7ea6",
        "DateOfDelivery": "2019-10-09T15:11:44.7737048+01:00",
        "QuotedDeliveryDate": "2019-10-09T15:11:44.7737048+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "9830f875-bcba-43a8-a66c-31131d75d65f"
      },
      "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": "736161f5-f10b-4d54-b386-8aab4447d7f3",
      "AdditionalInfo": [
        {
          "pkOptionId": "73ed381d-cdb5-4862-b28a-333e6f80c9ab",
          "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": "347db217-cda3-4b48-82f1-90429ca06eeb",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "d944349b-a0e0-45a4-944c-6228e7484dbf",
      "OrderId": "1449d22e-fb90-4d8e-b88a-fb838c53821f",
      "StockItemId": "cd0a8dcc-f02e-4634-b9b8-8be01b5e9158"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "251ac8fb-0473-44f0-b1a9-711f54370873"
}