Back

Search

Search

Methods

Inventory

Orders

Orders /GetOrderPackagingSplit

Response: List<OrderPackagingSplit>



Get a possible order split by packaging

Parameters

NameTypeDescription
orderIdGuidOrder id
openOrdersOnlyBooleanWhether to search open orders only, or all orders

HTTP Endpoint

Server /Orders / GetOrderPackagingSplit

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/GetOrderPackagingSplit 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=ab792408-3024-46f1-aa2f-6ead2fc99570&openOrdersOnly=true

Response

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

[
  {
    "pkBinId": "d7183fad-8024-4fdb-a603-0774893aea9a",
    "pkPostalServiceId": "d747af5b-075d-411c-a467-dbe01ef6068e",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "86771d2d-d2f7-4796-9ded-5dcef6e5f5ae",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "852dc131-5e48-4668-a233-bbc2a22fc127",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "852dc131-5e48-4668-a233-bbc2a22fc127",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      }
    ],
    "TotalWeight": 11.299999999999999,
    "TrackingNumbers": "sample string 3sample string 3"
  },
  {
    "pkBinId": "d7183fad-8024-4fdb-a603-0774893aea9a",
    "pkPostalServiceId": "d747af5b-075d-411c-a467-dbe01ef6068e",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "86771d2d-d2f7-4796-9ded-5dcef6e5f5ae",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "852dc131-5e48-4668-a233-bbc2a22fc127",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e0779b01-18d7-4f6d-82a3-dabeb3805090",
            "BatchNumber": "sample string 2",
            "fkBinId": "cfe0061e-96d1-4b83-8348-67bfb231b2bc",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "852dc131-5e48-4668-a233-bbc2a22fc127",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      }
    ],
    "TotalWeight": 11.299999999999999,
    "TrackingNumbers": "sample string 3sample string 3"
  }
]