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=86cdaeec-c95d-4ebb-bffb-f7730cd122ea&newOrders=[
  {
    "Items": [
      {
        "RowId": "0be2a22f-0dbe-4efe-b30e-95862ff75686",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "0be2a22f-0dbe-4efe-b30e-95862ff75686",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "e26dfb51-7c78-4c82-a24d-79039a1425cc"
  },
  {
    "Items": [
      {
        "RowId": "0be2a22f-0dbe-4efe-b30e-95862ff75686",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "0be2a22f-0dbe-4efe-b30e-95862ff75686",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "e26dfb51-7c78-4c82-a24d-79039a1425cc"
  }
]&type=sample string 1&fulfilmentLocationId=1d288ac9-d0fb-4134-9173-7bf8cc6b8433

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": "d6915245-bd5b-41ab-bec7-8b323a13626a",
          "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-07-23T15:31:56.4715755+01:00",
      "Source": "sample string 14",
      "SubSource": "sample string 15",
      "SiteCode": "sample string 16",
      "HoldOrCancel": true,
      "DespatchByDate": "2019-07-23T15:31:56.4715755+01:00",
      "ScheduledDelivery": {
        "From": "2019-07-23T15:31:56.4715755+01:00",
        "To": "2019-07-23T15:31:56.4715755+01:00"
      },
      "HasScheduledDelivery": true,
      "Location": "5bd6731a-5a5f-41a5-89d9-1c822cb491ad",
      "NumItems": 20,
      "StockAllocationType": 0
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "dbc8e7fd-6760-4cb3-89cb-5f41b6c73759",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "5c2c413e-b90b-4532-965c-8a46dc3a55cf",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "de138c5a-9f5c-4fcc-bac4-bd924b9aeb79",
      "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": "40743f71-78aa-4e3b-b3f0-0513bfc30db7"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "2178d03e-313c-43e7-a7f2-b1833a02dd58",
      "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": "f285c3b3-0699-4d43-81c9-d519d31297c5",
        "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": "f5c3ef53-27d0-4b57-b9ef-01025c2009b3",
          "Rowid": "d9d20182-7d3e-499a-823e-541632c1de6d",
          "pkPurchaseId": "13d035b8-84b3-432c-b212-6b745196e87d",
          "ExternalInvoiceNumber": "sample string 4",
          "fkSupplierId": "ae441ce8-0cde-44f0-9879-8b3464a888d3",
          "DateOfDelivery": "2019-07-23T15:31:56.4715755+01:00",
          "QuotedDeliveryDate": "2019-07-23T15:31:56.4715755+01:00",
          "SupplierName": "sample string 8",
          "fkLocationId": "1c0fcecd-f07b-42b6-a7af-a189a48adec6"
        },
        "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": "af8e846f-251f-4347-be9c-3a15b2e40ef2",
        "AdditionalInfo": [
          {
            "pkOptionId": "df85af03-95da-4675-87d9-6d763f4a8177",
            "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": "a995bc07-ea05-43cb-831d-b62fdea67ed0",
            "BatchId": 1,
            "OrderItemBatchId": 1
          },
          {
          }
        ],
        "InventoryTrackingType": 33,
        "isBatchedStockItem": false,
        "IsWarehouseManaged": true,
        "HasPurchaseOrders": true,
        "CanPurchaseOrderFulfil": true,
        "IsUnlinked": false,
        "RowId": "f1d09311-53e5-4939-90fc-71b1518ab78b",
        "OrderId": "4d110a73-ba81-430b-8985-81d2a910310a",
        "StockItemId": "b9214ecc-087e-4635-92fb-8afda50dfd38"
      },
      {
      }
    ],
    "HasItems": true,
    "OrderId": "7cc28526-f178-40a2-8d5b-1dda2f4e48cd"
  },
  {
  }
]