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=c707dc2d-b40e-41d1-9dca-acb5ca24c7b0&openOrdersOnly=true

Response

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

[
  {
    "pkBinId": "fa0fd69c-d5b6-4ad7-b2a1-0ea947bee61c",
    "pkPostalServiceId": "562187e5-2557-4bf6-accf-b29588e1f045",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "996110be-ae9a-4b1f-be03-a446e5fa1505",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "92b6f03f-8130-4d3d-abf1-c23ea4856ab4",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "92b6f03f-8130-4d3d-abf1-c23ea4856ab4",
        "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": "fa0fd69c-d5b6-4ad7-b2a1-0ea947bee61c",
    "pkPostalServiceId": "562187e5-2557-4bf6-accf-b29588e1f045",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "996110be-ae9a-4b1f-be03-a446e5fa1505",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "92b6f03f-8130-4d3d-abf1-c23ea4856ab4",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "e9835feb-dcfd-442c-b219-eb57406d56f4",
            "BatchNumber": "sample string 2",
            "fkBinId": "7b9010ac-f8ea-441e-9930-bff1e2e641d2",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "92b6f03f-8130-4d3d-abf1-c23ea4856ab4",
        "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"
  }
]