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=e6093c20-31b5-4c88-810b-928950d02f50&packagingSplit=[
  {
    "pkBinId": "0599f807-0736-40d2-ac29-6bedc3095160",
    "pkPostalServiceId": "5bd10c4a-a7f7-46c3-bd1f-33f7414b52b3",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "841587b5-8e6e-42d2-bc9d-03ccbcaa459d",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8de65fb4-65ff-41a6-9840-25fe39541c07",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8de65fb4-65ff-41a6-9840-25fe39541c07",
        "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": "0599f807-0736-40d2-ac29-6bedc3095160",
    "pkPostalServiceId": "5bd10c4a-a7f7-46c3-bd1f-33f7414b52b3",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "841587b5-8e6e-42d2-bc9d-03ccbcaa459d",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8de65fb4-65ff-41a6-9840-25fe39541c07",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "41a83812-a2c0-47c5-a92e-cb42bfec4455",
            "BatchNumber": "sample string 2",
            "fkBinId": "42c9865a-8170-4131-9d65-7f9be0d0076a",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "8de65fb4-65ff-41a6-9840-25fe39541c07",
        "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": "ce9732ab-a9c4-43d1-88b8-52a1ef694825",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "59f9aed4-d0f2-4712-a5dc-992df90bf5ac",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "9abf5e05-131d-4423-ad51-83f79ec93425",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "5175ced1-dbe1-40f7-afff-a6a37413a287",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}