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=f7dc6b9a-2c58-465e-94a2-5abe992f44ad&openOrdersOnly=true

Response

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

[
  {
    "pkBinId": "5d224fa9-14d1-4038-95ba-7d137e50de18",
    "pkPostalServiceId": "9a0e1d78-f85e-4d57-ad8d-f17bcb6507da",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "d7df6ee6-7265-41de-b7d0-b14fd63cecdf",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8d97b212-897a-4712-b7a2-d180ca8eadcc",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8d97b212-897a-4712-b7a2-d180ca8eadcc",
        "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": "5d224fa9-14d1-4038-95ba-7d137e50de18",
    "pkPostalServiceId": "9a0e1d78-f85e-4d57-ad8d-f17bcb6507da",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "d7df6ee6-7265-41de-b7d0-b14fd63cecdf",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8d97b212-897a-4712-b7a2-d180ca8eadcc",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "2a204990-2394-48d6-897d-ee43d84c7a87",
            "BatchNumber": "sample string 2",
            "fkBinId": "e160d8b6-51ab-43b4-bb4e-579028d58b11",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8d97b212-897a-4712-b7a2-d180ca8eadcc",
        "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"
  }
]