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=edb8627a-6923-46ae-8096-c95f0361c026&packagingSplit=[
  {
    "pkBinId": "5b371d0c-7c57-49a1-91cb-02042721f239",
    "pkPostalServiceId": "189de50c-02a2-46af-a428-280f3eedaf36",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "b6f315ad-6034-4e10-96a3-af36f3747d63",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "36030be8-c0a2-4f6b-a70f-0402fb363589",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "36030be8-c0a2-4f6b-a70f-0402fb363589",
        "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": "5b371d0c-7c57-49a1-91cb-02042721f239",
    "pkPostalServiceId": "189de50c-02a2-46af-a428-280f3eedaf36",
    "PackagingWeight": 3.1,
    "fkPackagingTypeId": "b6f315ad-6034-4e10-96a3-af36f3747d63",
    "Items": [
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "36030be8-c0a2-4f6b-a70f-0402fb363589",
        "Quantity": 2,
        "TrackingNumber": "sample string 3",
        "Weight": 4.1,
        "SKU": "sample string 5",
        "Title": "sample string 6",
        "IsBatched": true
      },
      {
        "AssignedBatches": [
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          },
          {
            "OrderItemRowId": "cf6c8daf-cb1f-4d43-96a8-fd0a7ab14717",
            "BatchNumber": "sample string 2",
            "fkBinId": "ce7d48f7-65c6-4f33-9ac1-da2e69e00b22",
            "fkOrderItemBatchId": 4,
            "Quantity": 5
          }
        ],
        "RowId": "36030be8-c0a2-4f6b-a70f-0402fb363589",
        "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": "895fd793-63f8-4f56-8a0b-8c29203d1d25",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "198cccd3-3416-41f4-8715-f38008c9b7a9",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "09ed318e-60e1-4ff3-bc53-fa7b39ab0cad",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "f9202244-ec0d-40c2-92ca-079627901282",
    "PackageType": "sample string 8",
    "PostageCost": 9.1,
    "PostageCostExTax": 10.1,
    "TrackingNumber": "sample string 11",
    "ManualAdjust": true
  }
}