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=608b9e3c-b193-49ee-9159-72b457d56398&packagingSplit=[
  {
    "pkBinId": "dee1d065-56e7-4074-ad45-6fe34ce080ed",
    "pkPostalServiceId": "0ffda897-50b8-434f-af4d-ca1c8652a5cb",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "aa70abda-df0b-49b7-ba9e-182939f63e64",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "908eb495-edb3-4730-9811-06cc2a4be18b",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "908eb495-edb3-4730-9811-06cc2a4be18b",
        "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": "dee1d065-56e7-4074-ad45-6fe34ce080ed",
    "pkPostalServiceId": "0ffda897-50b8-434f-af4d-ca1c8652a5cb",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "aa70abda-df0b-49b7-ba9e-182939f63e64",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "908eb495-edb3-4730-9811-06cc2a4be18b",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "587f3a68-03e4-42f9-9021-6f8f03a09489",
            "BatchNumber": "sample string 2",
            "fkBinId": "88d2f92c-b9c9-4b8d-9b35-b229431d131f",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "908eb495-edb3-4730-9811-06cc2a4be18b",
        "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": "3c5c66f6-ad26-4932-bdb1-d691b5c51014",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "027534e4-5370-4f56-b40a-53d2a32543bc",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "06cb50cf-6aeb-4207-a39d-5358563b737a",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "4ae5f888-999e-416f-8885-27a4eea36ab4",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}