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=26623c14-e9a3-48d1-941f-e1bf0ff415f7&openOrdersOnly=true

Response

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

[
  {
    "pkBinId": "bb4b6e41-8eb5-49c7-9a40-6a43af3fb734",
    "pkPostalServiceId": "e460f2ec-eaf0-4957-a06b-5b95362ad2a1",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "935281ef-bf93-4cdd-8e18-f54435df37e7",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "7b578308-8b12-4fb4-a88c-6a7dfdee758d",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "7b578308-8b12-4fb4-a88c-6a7dfdee758d",
        "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": "bb4b6e41-8eb5-49c7-9a40-6a43af3fb734",
    "pkPostalServiceId": "e460f2ec-eaf0-4957-a06b-5b95362ad2a1",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "935281ef-bf93-4cdd-8e18-f54435df37e7",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "7b578308-8b12-4fb4-a88c-6a7dfdee758d",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "69406c46-4a5a-474d-8c9f-317f9800d3c5",
            "BatchNumber": "sample string 2",
            "fkBinId": "57e08671-ab11-45e9-aa3a-9cad7e8f13e9",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "7b578308-8b12-4fb4-a88c-6a7dfdee758d",
        "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"
  }
]