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=87f1dc86-dea5-4462-b55a-2f4959b87eb3&packagingSplit=[
  {
    "pkBinId": "4994c3bb-446c-4c5f-89ae-72d9e65cc959",
    "pkPostalServiceId": "0cc44482-3af0-46dd-b3fc-44f06b1482b8",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "a85975cb-ebfb-4baa-a361-46a8d8314ca2",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "54668fff-18c0-43e0-b78c-cc091aef8b13",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "54668fff-18c0-43e0-b78c-cc091aef8b13",
        "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": "4994c3bb-446c-4c5f-89ae-72d9e65cc959",
    "pkPostalServiceId": "0cc44482-3af0-46dd-b3fc-44f06b1482b8",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "a85975cb-ebfb-4baa-a361-46a8d8314ca2",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "54668fff-18c0-43e0-b78c-cc091aef8b13",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "6fba939f-a957-4061-a907-8aa0a00c286a",
            "BatchNumber": "sample string 2",
            "fkBinId": "8b086453-d880-46f7-9f37-5320f065d910",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "54668fff-18c0-43e0-b78c-cc091aef8b13",
        "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": "e3118621-d17c-4d68-b763-f39594472520",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "d39e3a38-2171-49b3-9050-11aeb1861733",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "f9657e55-aa77-4f07-9d50-ad33b0bb8edb",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "ce8b840d-c586-43b9-b6d2-5798322bfab4",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}