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=59fda537-749f-46cf-9894-bb39de03b47e&packagingSplit=[
  {
    "pkBinId": "4a660d20-5964-4db8-8af1-1f23607788d1",
    "pkPostalServiceId": "c7f6f8ca-729b-4767-adbd-474bd434e61c",
    "PackagingWeight": 3.0,
    "fkPackagingTypeId": "e777bd90-4405-4364-a297-bbaaca65f919",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "225081ed-e234-478c-9d56-ec19977d1c29",
            "BatchNumber": "sample string 2",
            "fkBinId": "4add0b36-855c-436f-b571-e3755863722c",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "d6764155-6525-4594-b76b-362b1f1a52e3",
        "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": "74fbba8d-fe6c-4012-8953-f76c024cb6f3",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "5bbc8323-69ef-480a-8c58-77700e2a00b4",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "db0cbb2c-29f1-4f65-8a27-c6f30706f09b",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "d3c89aec-59db-4d7f-9821-ce71b4cd6d86",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}