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=9447478e-abcf-4bad-a108-1cacfdec1d34&newOrders=[
  {
    "Items": [
      {
        "RowId": "9f8fe3b2-968e-4190-bf07-94487b4df403",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "9f8fe3b2-968e-4190-bf07-94487b4df403",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "55233129-e0a5-4385-9bc3-41967a7aea2f"
  },
  {
    "Items": [
      {
        "RowId": "9f8fe3b2-968e-4190-bf07-94487b4df403",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "9f8fe3b2-968e-4190-bf07-94487b4df403",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "55233129-e0a5-4385-9bc3-41967a7aea2f"
  }
]&type=sample string 1&fulfilmentLocationId=a3f6f881-a5b9-481a-97e8-a7355206c9a2

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": "0f909600-ecd4-4761-a5d1-d93dedd5cc43",
          "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-11-28T09:46:01.16024+00:00",
      "Source": "sample string 14",
      "SubSource": "sample string 15",
      "SiteCode": "sample string 16",
      "HoldOrCancel": true,
      "DespatchByDate": "2019-11-28T09:46:01.16024+00:00",
      "ScheduledDelivery": {
        "From": "2019-11-28T09:46:01.16024+00:00",
        "To": "2019-11-28T09:46:01.16024+00:00"
      },
      "HasScheduledDelivery": true,
      "Location": "e35fa34d-3b23-4df6-8373-7c548751e18d",
      "NumItems": 20,
      "StockAllocationType": 0
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "5d9042e7-a93f-426c-9ebf-36cbd8349fff",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "03902110-2a8a-4f36-923e-26dd139d5550",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "b58dd08f-d8de-4d36-9610-5318b421a1e2",
      "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": "dfa5cc66-e774-4a60-98af-a59f3f57bb2e"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "a4040af3-82f6-4581-87bb-c16e60d9c961",
      "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": "20365515-6388-4bbb-b1a6-2bf3fc4c59e0",
        "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": "fde6467a-3d1d-4aa7-ba7f-1e2b89691d3e",
          "Rowid": "f08a852c-9709-45f9-b09d-5c8ca62c731d",
          "pkPurchaseId": "5ac2492a-2479-4158-8068-e4c549dbac18",
          "ExternalInvoiceNumber": "sample string 4",
          "fkSupplierId": "6d1538c7-5f7f-4df3-88a2-5c37d199d549",
          "DateOfDelivery": "2019-11-28T09:46:01.16024+00:00",
          "QuotedDeliveryDate": "2019-11-28T09:46:01.16024+00:00",
          "SupplierName": "sample string 8",
          "fkLocationId": "5ad69307-eccc-4af5-a330-31db6061913d"
        },
        "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": "afd6400f-003e-434c-b83c-bad7d07b4d88",
        "AdditionalInfo": [
          {
            "pkOptionId": "d9c8e57a-4610-41e0-9c92-45130a4dd269",
            "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": "497bf5a6-216e-4e61-8350-7ea54419909e",
            "BatchId": 1,
            "OrderItemBatchId": 1
          },
          {
          }
        ],
        "InventoryTrackingType": 33,
        "isBatchedStockItem": false,
        "IsWarehouseManaged": true,
        "HasPurchaseOrders": true,
        "CanPurchaseOrderFulfil": true,
        "IsUnlinked": false,
        "RowId": "4e2ba71d-c588-4939-a745-5fcca5aec27f",
        "OrderId": "0bc2cdc9-2f11-4406-b299-d6f1a2ca3efa",
        "StockItemId": "854daf33-bea6-4218-ae17-3175369f6516"
      },
      {
      }
    ],
    "HasItems": true,
    "OrderId": "f2652e11-be63-4e09-9078-1a85ddfeb46e"
  },
  {
  }
]