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=1d44a960-b0ea-42d1-ae57-eadd39134ba9&newOrders=[
  {
    "Items": [
      {
        "RowId": "3fa59377-6067-4cee-9766-d63be69e999c",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "3fa59377-6067-4cee-9766-d63be69e999c",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "017c066f-3f54-473f-9d70-692446c4effe"
  },
  {
    "Items": [
      {
        "RowId": "3fa59377-6067-4cee-9766-d63be69e999c",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "3fa59377-6067-4cee-9766-d63be69e999c",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "017c066f-3f54-473f-9d70-692446c4effe"
  }
]&type=sample string 1&fulfilmentLocationId=1c0f4501-d196-4a63-a4a4-ae121cc543df

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": "8d55ab4d-161d-4c48-bfa2-e36f7e555cde",
          "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-06-12T09:27:52.5329816+01:00",
      "Source": "sample string 14",
      "SubSource": "sample string 15",
      "SiteCode": "sample string 16",
      "HoldOrCancel": true,
      "DespatchByDate": "2019-06-12T09:27:52.5329816+01:00",
      "ScheduledDelivery": {
        "From": "2019-06-12T09:27:52.5329816+01:00",
        "To": "2019-06-12T09:27:52.5329816+01:00"
      },
      "HasScheduledDelivery": true,
      "Location": "633921f9-9f32-4296-b554-58921eefe146",
      "NumItems": 20,
      "StockAllocationType": 0
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "1eabaff6-1ea9-4899-b600-5e60b9fd0f3f",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "b2070d79-73da-45e3-9010-c05097cab482",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "ca42e797-e051-41f3-a7d5-4871d61b6f14",
      "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": "e257d849-ff22-4d69-9bae-4a8676d49dc0"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "f629e4e6-ef05-4536-9c35-868dc06d50a2",
      "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": "a2978f48-1208-4342-ba61-db19008f4fee",
        "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": "c15b18e6-dc14-4f3c-9e14-a72329bf6b59",
          "Rowid": "501d2b23-56be-4aaa-be12-c0fca94a40a9",
          "pkPurchaseId": "16c3b672-1779-45f9-a9b5-3125879e0bc8",
          "ExternalInvoiceNumber": "sample string 4",
          "fkSupplierId": "543bcad0-debb-4154-924e-e1b64ffd35ce",
          "DateOfDelivery": "2019-06-12T09:27:52.5329816+01:00",
          "QuotedDeliveryDate": "2019-06-12T09:27:52.5329816+01:00",
          "SupplierName": "sample string 8",
          "fkLocationId": "34feeb8f-2ede-4490-bf7e-7dd983f04c18"
        },
        "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": "13a82168-19fb-4232-a46c-1342fb5510e9",
        "AdditionalInfo": [
          {
            "pkOptionId": "61e04881-8708-4287-aad6-45e9481ff29f",
            "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": "cf25138b-4a93-4e1a-92cf-31754834315e",
            "BatchId": 1,
            "OrderItemBatchId": 1
          },
          {
          }
        ],
        "InventoryTrackingType": 33,
        "isBatchedStockItem": false,
        "IsWarehouseManaged": true,
        "HasPurchaseOrders": true,
        "CanPurchaseOrderFulfil": true,
        "IsUnlinked": false,
        "RowId": "0c287b74-cf78-4b62-944a-db302d5f7330",
        "OrderId": "2291ba7c-e23f-45de-b539-eb9204e49d0f",
        "StockItemId": "d3b40811-d5da-424c-97c7-527806fbfe2e"
      },
      {
      }
    ],
    "HasItems": true,
    "OrderId": "f539b368-e685-4bec-8ceb-7b9bf0baf6a2"
  },
  {
  }
]