Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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=27095a8f-c213-465a-8456-c689ea9c66b7&packagingSplit=[
  {
    "pkBinId": "6e19d1f4-0064-424e-b7cf-5d4d7b79167c",
    "pkPostalServiceId": "8e0d37c3-5859-4c15-aa76-984126cbe034",
    "PackagingWeight": 3.0,
    "fkPackagingTypeId": "16f14fc2-49fe-4ca0-bd3e-ae2b9431ac42",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "d52df2fc-0f14-42f5-9b25-e241dc89d55a",
            "BatchNumber": "sample string 2",
            "fkBinId": "c0fa0301-5c77-4d06-bf97-5bdd57e2485b",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "5a682675-d38a-44ac-a3ed-914efe563ff4",
        "BoxId": 1,
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.0,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      }
    ],
    "TotalWeight": 7.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,
    "Tax": 4.1,
    "TotalCharge": 5.1,
    "PaymentMethod": "sample string 6",
    "PaymentMethodId": "0ee7a5f7-5c88-4f49-8b48-7b476c8e38cd",
    "ProfitMargin": 8.1,
    "TotalDiscount": 9.1,
    "Currency": "sample string 10",
    "CountryTaxRate": 11.1,
    "ConversionRate": 12.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "4e71c50a-f3d8-487b-ad61-2c287efedd84",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "ad012d27-6919-4b85-bcef-bd11c1e9a130",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "baded96b-bc6a-46fc-b206-a09339a00d8f",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}