Back

Search

Search

Methods

Inventory

Orders

Orders /SplitOrder

Response: List<OpenOrder>



Split a specific order

Parameters

NameTypeDescription
orderIdGuidOrder id
newOrdersOrderSplit[]New orders
typeStringSplit type
fulfilmentLocationIdGuidCurrent fulfilment center

HTTP Endpoint

Server /Orders / SplitOrder

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SplitOrder 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

orderId=8496e0b4-c884-4b7e-9980-110b4331e2c7&newOrders=[
  {
    "Items": [
      {
        "RowId": "35c2100d-f557-4390-9bee-5accc7e9ea4f",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "35c2100d-f557-4390-9bee-5accc7e9ea4f",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "ace3d2bc-a75c-4610-a2c8-29fa5e6001e7"
  },
  {
    "Items": [
      {
        "RowId": "35c2100d-f557-4390-9bee-5accc7e9ea4f",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "35c2100d-f557-4390-9bee-5accc7e9ea4f",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "ace3d2bc-a75c-4610-a2c8-29fa5e6001e7"
  }
]&type=sample string 1&fulfilmentLocationId=c0985b84-e01a-40b0-a071-cb893da0febe

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": "b9e3ceb7-3d29-41d2-8ea9-be6f361a47a3",
          "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.7189939+01:00",
      "Source": "sample string 14",
      "SubSource": "sample string 15",
      "SiteCode": "sample string 16",
      "HoldOrCancel": true,
      "DespatchByDate": "2019-10-09T15:11:44.7189939+01:00",
      "ScheduledDelivery": {
        "From": "2019-10-09T15:11:44.7189939+01:00",
        "To": "2019-10-09T15:11:44.7189939+01:00"
      },
      "HasScheduledDelivery": true,
      "Location": "b5b4c20f-b715-46d1-a1c2-f7a8d4bbcf24",
      "NumItems": 20,
      "StockAllocationType": 0
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "e5494d52-a465-43b1-8157-2ae395c2b054",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "3bcec76a-1f14-4666-b252-00bfc0cbbf89",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "6fa304eb-89a9-433a-b52d-c0b9c0762532",
      "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": "b8cde4f7-9209-4e6e-9b2d-3ca8855d69cd"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "9f5f67e1-b0ad-4197-bffa-32de5cfe77dc",
      "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": "377d044b-60fb-4b43-9f64-d5b881be824d",
        "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": "3036960e-20d0-4554-827a-170a3dc9d51d",
          "Rowid": "7ca15564-abc4-492e-b1e9-4b10dc51b97a",
          "pkPurchaseId": "ee7d6919-2634-476c-91ca-2b806b077133",
          "ExternalInvoiceNumber": "sample string 4",
          "fkSupplierId": "51c36d6c-6821-4d2c-a74c-6ad9c2a100f2",
          "DateOfDelivery": "2019-10-09T15:11:44.7189939+01:00",
          "QuotedDeliveryDate": "2019-10-09T15:11:44.7189939+01:00",
          "SupplierName": "sample string 8",
          "fkLocationId": "0767f3fb-573b-4500-8705-f1ad38d7b74d"
        },
        "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": "d3f36c41-6fff-4881-a921-8369bbc21f78",
        "AdditionalInfo": [
          {
            "pkOptionId": "c34dbbe6-0dc6-4a24-a122-756579f31a2e",
            "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": "fa10d949-53a4-430f-9f8c-dac8e18948ab",
            "BatchId": 1,
            "OrderItemBatchId": 1
          },
          {
          }
        ],
        "InventoryTrackingType": 33,
        "isBatchedStockItem": false,
        "IsWarehouseManaged": true,
        "HasPurchaseOrders": true,
        "CanPurchaseOrderFulfil": true,
        "IsUnlinked": false,
        "RowId": "74fc7a9c-f895-4934-8c07-b9e90f167487",
        "OrderId": "04659e84-767e-4684-b3f6-bf2f0b669edf",
        "StockItemId": "c3472c29-21d9-4d0c-ba63-e03521b7c0c7"
      },
      {
      }
    ],
    "HasItems": true,
    "OrderId": "531207f2-6b0a-4e2d-bdfb-5ceafc8f2e7a"
  },
  {
  }
]