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=f317a9f0-08b4-4529-87b5-38c8109054b2&packagingSplit=[
  {
    "pkBinId": "14a33d06-5d89-4bd9-add5-e934fa90482f",
    "pkPostalServiceId": "22b521c4-4f54-4b57-b06e-d50dbf17659c",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "2775269b-cb73-425a-baed-01ed76eb74a0",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "0940ff4b-55e8-4664-94d9-94a4355ee431",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "0940ff4b-55e8-4664-94d9-94a4355ee431",
        "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": "14a33d06-5d89-4bd9-add5-e934fa90482f",
    "pkPostalServiceId": "22b521c4-4f54-4b57-b06e-d50dbf17659c",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "2775269b-cb73-425a-baed-01ed76eb74a0",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "0940ff4b-55e8-4664-94d9-94a4355ee431",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "8101a4f3-23d7-495d-afa1-7e2cdb0c36a5",
            "BatchNumber": "sample string 2",
            "fkBinId": "10ad9d4a-243d-4944-acd6-2bd387602fb4",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "0940ff4b-55e8-4664-94d9-94a4355ee431",
        "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": "28a273dd-dd79-4831-bbbe-0e88019a1705",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "feae4f7c-722b-4d51-a335-8bdf9fc124e6",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "3fe8ca14-bd9a-44ca-b72f-8a41abe1cfa0",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "89ebca11-fadd-4ed6-9b08-0ea22b9a0724",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}