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=86c15a0d-2e62-403e-8f26-56679fcdd688&newOrders=[
  {
    "Items": [
      {
        "RowId": "5837f525-008f-4e54-b04b-0ffb1f261834",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "5837f525-008f-4e54-b04b-0ffb1f261834",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "e427fae8-08c4-4cd5-9c09-9c230e2bce90"
  },
  {
    "Items": [
      {
        "RowId": "5837f525-008f-4e54-b04b-0ffb1f261834",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "5837f525-008f-4e54-b04b-0ffb1f261834",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "e427fae8-08c4-4cd5-9c09-9c230e2bce90"
  }
]&type=sample string 1&fulfilmentLocationId=07a45bf4-de47-4562-9cf6-51cb1d08006d

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": null,
      "ReferenceNum": "sample string 10",
      "SecondaryReference": "sample string 11",
      "ExternalReferenceNum": "sample string 12",
      "ReceivedDate": "2018-10-03T11:12:36.095634+01:00",
      "Source": "sample string 14",
      "SubSource": "sample string 15",
      "SiteCode": "sample string 16",
      "HoldOrCancel": true,
      "DespatchByDate": "2018-10-03T11:12:36.095634+01:00",
      "ScheduledDelivery": {
        "From": "2018-10-03T11:12:36.095634+01:00",
        "To": "2018-10-03T11:12:36.095634+01:00"
      },
      "HasScheduledDelivery": true,
      "Location": "9e391d4a-2c89-46a4-a418-35c61385d514",
      "NumItems": 20,
      "StockAllocationType": 0
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "3f27fccb-c8a0-4e21-aaec-7306367821c3",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "30e497d6-01db-41ed-9165-c72bb17403ef",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "99035c70-5e29-43e7-ba1a-c60b46b4f6d9",
      "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": "0086b273-13cb-4f2e-8c26-94753cf3149d"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "33857a01-af63-4528-8cb4-c4ed0cdae51a",
      "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": "be5c744d-f947-4bb1-831a-f81ba6fa1058",
        "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,
        "InOrderBook": 1,
        "Level": 11,
        "MinimumLevel": 1,
        "AvailableStock": 12,
        "PricePerUnit": 13.1,
        "UnitCost": 14.1,
        "Discount": 15.1,
        "Tax": 20.1,
        "TaxRate": 16.1,
        "Cost": 17.1,
        "CostIncTax": 18.1,
        "CompositeSubItems": [
          {
          },
          {
          }
        ],
        "IsService": true,
        "SalesTax": 20.1,
        "TaxCostInclusive": true,
        "PartShipped": true,
        "Weight": 23.1,
        "BarcodeNumber": "sample string 24",
        "Market": 25,
        "ChannelSKU": "sample string 26",
        "ChannelTitle": "sample string 27",
        "DiscountValue": 10.222739018087856,
        "HasImage": true,
        "ImageId": "a479b07b-a835-49f2-8753-2f358b4d10fd",
        "AdditionalInfo": [
          {
            "pkOptionId": "8466048c-2d0c-4d8d-b271-d53b4091ecd9",
            "Property": "sample string 2",
            "Value": "sample string 3"
          },
          {
          }
        ],
        "StockLevelIndicator": 28,
        "BatchNumberScanRequired": true,
        "SerialNumberScanRequired": true,
        "BinRack": "sample string 31",
        "BinRacks": [
          {
            "Quantity": 1,
            "BinRack": "sample string 2",
            "Location": "8ed8ab15-d39a-4fa0-bcd5-955b1bdcdcb7",
            "BatchId": 1,
            "OrderItemBatchId": 1
          },
          {
          }
        ],
        "InventoryTrackingType": 32,
        "isBatchedStockItem": false,
        "HasPurchaseOrders": true,
        "CanPurchaseOrderFulfil": true,
        "IsUnlinked": false,
        "RowId": "41364291-5d6a-4868-89de-a5c6fce13923",
        "OrderId": "ea14e6c6-7c46-4684-878f-c16e8cde3483",
        "StockItemId": "f22fc22f-4e68-4985-adc7-3e154aea9e5b"
      },
      {
      }
    ],
    "HasItems": true,
    "OrderId": "ce0acbc7-866e-46e0-9133-33364ca77f8f"
  },
  {
  }
]