Back

Search

Search

Methods

Inventory

Orders

Orders /SetOrderPackagingSplit

Response: UpdateTotalsResult



Split an order by packaging

Parameters

NameTypeDescription
orderIdGuidOrder id
packagingSplitList<OrderPackagingSplit>Order split

HTTP Endpoint

Server /Orders / SetOrderPackagingSplit

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/SetOrderPackagingSplit 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=f0a5ed78-ebfb-4d6d-8875-f19937b61763&packagingSplit=[
  {
    "pkBinId": "3a801ed6-2b3e-4e58-9167-04dae7e138e6",
    "pkPostalServiceId": "a55fea12-4984-4fc5-89d8-2cf3858bf01d",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "8541a47c-e63b-4d47-9eb0-ae55eb19e8d9",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "3610fd07-ca71-47fe-9c55-b5cf20b087dd",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "3610fd07-ca71-47fe-9c55-b5cf20b087dd",
        "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": "3a801ed6-2b3e-4e58-9167-04dae7e138e6",
    "pkPostalServiceId": "a55fea12-4984-4fc5-89d8-2cf3858bf01d",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "8541a47c-e63b-4d47-9eb0-ae55eb19e8d9",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "3610fd07-ca71-47fe-9c55-b5cf20b087dd",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "bb26a2b4-a4cc-46b0-bada-bfe293216535",
            "BatchNumber": "sample string 2",
            "fkBinId": "5a234c75-fe4f-40a6-934c-a2a34e54f8fa",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "3610fd07-ca71-47fe-9c55-b5cf20b087dd",
        "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"
  }
]

Response

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

{
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "2a1d40c5-eabc-422d-9722-f2a00598c512",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "86af095f-0404-4378-a650-04b955523d97",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "0c0a25ca-1a75-42f6-9956-dc3399542631",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "4f532252-75d7-4df4-8702-29de71c42f37",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}