Back

Search

Search

Methods

Inventory

Orders

Orders /SplitOrder

Response: List<OpenOrder>


Parameters

NameTypeDescription
orderIdGuid
newOrdersOrderSplit[]
typeString
fulfilmentLocationIdGuid

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=936db4d4-bb87-4827-95d1-db7b0423afa6&newOrders=[
  {
    "Items": [
      {
        "RowId": "1257a4d8-2a38-43e7-b790-de24254f8303",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "1257a4d8-2a38-43e7-b790-de24254f8303",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "dadbbff7-8da5-4d34-b982-b4160e6e423e"
  },
  {
    "Items": [
      {
        "RowId": "1257a4d8-2a38-43e7-b790-de24254f8303",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      },
      {
        "RowId": "1257a4d8-2a38-43e7-b790-de24254f8303",
        "Quantity": 2,
        "Weight": 3.1,
        "UnitCost": 4.1
      }
    ],
    "PostalServiceId": "dadbbff7-8da5-4d34-b982-b4160e6e423e"
  }
]&type=sample string 1&fulfilmentLocationId=857e09ec-25d8-4b2a-807b-1e11f6657c18

Response

This is an example response. Results may vary depending on your data.

[
  {
    "OrderId": "ed5cc593-8cdd-498b-907e-45b0958439eb",
    "NumOrderId": 2,
    "GeneralInfo": {
      "Status": 1,
      "LabelPrinted": true,
      "LabelError": "sample string 3",
      "InvoicePrinted": true,
      "PickListPrinted": true,
      "IsRuleRun": true,
      "Notes": 7,
      "PartShipped": true,
      "Marker": 64,
      "ReferenceNum": "sample string 9",
      "SecondaryReference": "sample string 10",
      "ExternalReferenceNum": "sample string 11",
      "ReceivedDate": "2018-02-19T16:57:08.2125404+00:00",
      "Source": "sample string 13",
      "SubSource": "sample string 14",
      "SiteCode": "sample string 15",
      "HoldOrCancel": true,
      "DespatchByDate": "2018-02-19T16:57:08.2125404+00:00",
      "Location": "73366ab1-bee0-4494-abb9-a40347a62c21",
      "NumItems": 19
    },
    "ShippingInfo": {
      "Vendor": "sample string 1",
      "PostalServiceId": "7ac89dff-3ec2-4a70-aede-fdf82d02742e",
      "PostalServiceName": "sample string 3",
      "TotalWeight": 4.1,
      "ItemWeight": 5.1,
      "PackageCategoryId": "263fe9b2-7935-4e99-b93e-317d7e764767",
      "PackageCategory": "sample string 7",
      "PackageTypeId": "3aa0f481-fa6e-440a-9da1-44127f681599",
      "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",
        "FullName": "sample string 9",
        "Company": "sample string 10",
        "PhoneNumber": "sample string 11",
        "CountryId": "9cf013ce-fc2e-454b-9e66-b498dacca38b"
      },
      "BillingAddress": {
      }
    },
    "TotalsInfo": {
      "Subtotal": 1.1,
      "PostageCost": 2.1,
      "Tax": 3.1,
      "TotalCharge": 4.1,
      "PaymentMethod": "sample string 5",
      "PaymentMethodId": "6dedf2c8-361f-47d6-bf8b-9da6bd106e2c",
      "ProfitMargin": 7.1,
      "TotalDiscount": 8.1,
      "Currency": "sample string 9",
      "CountryTaxRate": 10.1,
      "ConversionRate": 11.1
    },
    "FolderName": [
      "sample string 1",
      "sample string 2"
    ],
    "Items": [
      {
        "OrderId": "23944cf7-60d4-415c-8e6b-67603f62e724",
        "ItemId": "85c1d355-e998-4211-b2d1-fb3ea29263c5",
        "StockItemId": "bf115c51-f8d9-4b6c-a120-8577c1319b05",
        "ItemNumber": "sample string 4",
        "SKU": "sample string 5",
        "ItemSource": "sample string 6",
        "Title": "sample string 7",
        "Quantity": 8,
        "CategoryName": "sample string 9",
        "CompositeAvailablity": 1,
        "RowId": "557d4a3c-0d37-4bee-957e-6a7c15eb2cc8",
        "StockLevelsSpecified": true,
        "OnOrder": 12,
        "InOrderBook": 1,
        "Level": 13,
        "MinimumLevel": 1,
        "AvailableStock": 14,
        "PricePerUnit": 15.1,
        "UnitCost": 16.1,
        "Discount": 17.1,
        "Tax": 22.1,
        "TaxRate": 18.1,
        "Cost": 19.1,
        "CostIncTax": 20.1,
        "CompositeSubItems": [
          {
          },
          {
          }
        ],
        "IsService": true,
        "SalesTax": 22.1,
        "TaxCostInclusive": true,
        "PartShipped": true,
        "Weight": 25.1,
        "BarcodeNumber": "sample string 26",
        "Market": 27,
        "ChannelSKU": "sample string 28",
        "ChannelTitle": "sample string 29",
        "DiscountValue": 17.490939881456391,
        "HasImage": true,
        "ImageId": "54eb38e5-6ec0-49b1-8283-8e47dbb3b6d9",
        "AdditionalInfo": [
          {
            "pkOptionId": "f5c3ea92-9fea-4931-807d-cd14dedc6bc6",
            "Property": "sample string 2",
            "Value": "sample string 3"
          },
          {
          }
        ],
        "StockLevelIndicator": 30,
        "BatchNumberScanRequired": true,
        "SerialNumberScanRequired": true,
        "BinRack": "sample string 33",
        "BinRacks": [
          {
            "Quantity": 1,
            "BinRack": "sample string 2",
            "Location": "38a994d4-d7a9-45f5-81f9-9a19bb675d44"
          },
          {
          }
        ],
        "InventoryTrackingType": 34,
        "isBatchedStockItem": false
      },
      {
      }
    ]
  },
  {
  }
]