Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /SetOrderPackagingSplit

Allows 150 calls per minute

Response: UpdateTotalsResult



Split an order by packaging

Parameters

NameTypeDescription
orderIdGuidOrder id
packagingSplitList<OrderPackagingSplit>Order split

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/SetOrderPackagingSplit

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

orderId=08976d1e-6937-42cc-afcb-cafad2ab5b74&packagingSplit=[
  {
    "pkBinId": "d6b1eba8-bc19-4126-9877-bb003f2c6c3b",
    "pkPostalServiceId": "202c0a9d-5fdd-49f6-b9f4-887f2ae56fa5",
    "PackagingWeight": 3.0,
    "fkPackagingTypeId": "c6c82fca-44be-4fc5-958b-56a97bd18850",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "518bb1d1-90c4-46bb-8652-3707ba9d21ce",
            "BatchNumber": "sample string 2",
            "fkBinId": "11b04aff-f158-42dc-ad51-4a1af92c418b",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "2f9267c6-12a3-426b-9ccc-3eaf06b72835",
        "BoxId": 1,
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.0,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      }
    ],
    "TotalWeight": 5.0,
    "Width": 6.0,
    "Height": 7.0,
    "Depth": 8.0,
    "TrackingNumbers": "sample string 3"
  }
]

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "bd7182f8-1c87-41d3-84a5-3f39de266eff",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "5e0d0096-c49f-4647-ba4f-16c40c0f20f8",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "b25b122f-a900-4e9a-8ddd-1bf730496974",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "ef1ecfc8-3aec-43f0-8c6b-72f3a595020d",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}