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=4b022e38-7792-4da8-81f6-9b1dd84ea5b5&openOrdersOnly=true

Response

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

[
  {
    "pkBinId": "7c56ab46-4197-475c-99e7-a14a98d9beb4",
    "pkPostalServiceId": "2995ae29-b32a-40b7-bfd6-41510a7d8715",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "bef09910-dacb-4167-94cc-d2a722c9a641",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "b909bd29-7e58-4805-b25e-010bb6382ac0",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "b909bd29-7e58-4805-b25e-010bb6382ac0",
        "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": "7c56ab46-4197-475c-99e7-a14a98d9beb4",
    "pkPostalServiceId": "2995ae29-b32a-40b7-bfd6-41510a7d8715",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "bef09910-dacb-4167-94cc-d2a722c9a641",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "b909bd29-7e58-4805-b25e-010bb6382ac0",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "15572264-c435-4163-b1a2-0b04d4c04a53",
            "BatchNumber": "sample string 2",
            "fkBinId": "e6d23481-9e17-4d99-b4fe-01a95ac9351e",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "b909bd29-7e58-4805-b25e-010bb6382ac0",
        "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"
  }
]