Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /MergeOrders

Allows 150 calls per minute

Response: OpenOrder



Merge a list of orders into a new one

Parameters

NameTypeDescription
ordersToMergeList<Guid>Orders to merge
fulfilmentCenterGuidCurrent fulfilment center
pkPostalServiceIdGuidPostal service id

Permissions

GlobalPermissions.OrderBook.OpenOrders.MergeOrdersNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/MergeOrders

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

ordersToMerge=[
  "f0ca6481-dec1-4a4f-ac3b-a535a899be79"
]&fulfilmentCenter=77afe307-4e7e-4032-ae79-c108c98228c6&pkPostalServiceId=7f1bc9ee-7ff7-455a-833a-9a3d43ab1c98

Response

This is an example of the response JSON. Results will 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": "b776fed3-43e0-43c1-888f-a147009e0495",
        "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": "2022-09-05T15:10:05.2344442+03:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2022-09-05T15:10:05.2344442+03:00",
    "ScheduledDelivery": {
      "From": "2022-09-05T15:10:05.2344442+03:00",
      "To": "2022-09-05T15:10:05.2344442+03:00"
    },
    "HasScheduledDelivery": true,
    "Location": "a441168c-866e-43ca-9ac3-5abdba88c308",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "32cc183d-523e-4f56-89bc-772c78ed36b9",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "c4f6c6c1-98d4-4392-b212-dfa78da3ef02",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "7db775af-7cf4-4cee-8f00-75f179144548",
    "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": "9a0e8a51-baa0-4046-b2ac-528853b5475e"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "6515fb8b-d32e-45a9-89fa-0850b825d05c",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "TaxInfo": {
    "TaxNumber": "sample string 1"
  },
  "FolderName": [
    "sample string 1"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Fulfillment": {
    "FulfillmentState": 0,
    "PurchaseOrderState": 1
  },
  "Items": [
    {
      "ItemId": "c6f391b4-2990-41d7-b2b0-16b17a7a89dd",
      "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": "a8e2ee6f-8580-411f-a062-521d6e148dd3",
        "Rowid": "a011c96a-79b4-4b8b-b29f-24e915fa6d0a",
        "pkPurchaseId": "4b34aa32-6e0a-42e0-bfd7-ed099da68af6",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "f599b79a-5cd0-4764-8693-21ed86daffd9",
        "DateOfDelivery": "2022-09-05T15:10:05.2344442+03:00",
        "QuotedDeliveryDate": "2022-09-05T15:10:05.2344442+03:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "e366df71-86b4-423c-a55d-c2174f614529"
      },
      "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": "d77c3fa8-eed8-4742-a457-83bcd5112d58",
      "AdditionalInfo": [
        {
          "pkOptionId": "c80027a4-edb8-41f7-8713-2b3d7920d979",
          "Property": "sample string 2",
          "Value": "sample string 3"
        }
      ],
      "StockLevelIndicator": 29,
      "ShippingCost": 30.1,
      "PartShippedQty": 31,
      "ItemName": "sample string 32",
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 35",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "b4160767-deb6-4924-9eea-10bf30cb5e44",
          "BatchId": 1,
          "OrderItemBatchId": 1
        }
      ],
      "InventoryTrackingType": 36,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "IsUnlinked": false,
      "StockItemIntId": 39,
      "Boxes": [
        {
          "BoxId": 1,
          "StockItemIntId": 2,
          "BoxName": "sample string 3",
          "Width": 4.0,
          "Height": 5.0,
          "Length": 6.0,
          "Weight": 7.0,
          "ValuePercentage": 8.0,
          "Barcode": "sample string 9",
          "PackagingTypeId": "9c5fa1a5-1d58-4f1b-ab7b-231d7eec531e",
          "LogicalDelete": true
        }
      ],
      "RowId": "2fa26356-889f-4f21-b75c-fadea934e121",
      "OrderId": "8dac07b6-2010-4442-a08d-ef2131bbf659",
      "StockItemId": "dee752f1-6e62-414a-a36a-63bee600e89f"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "12a48cb8-3a27-46f9-8daa-b2fd0cc11b5c"
}