POST api/Split

Splits the contents of a parcel into two new parcels with their own tracking numbers. To split a parcel more than two ways, simply call this service again on the newly split parcels.

Parameters

* Required
Property Description
TrackingNumber (String)
* The tracking number of the parcel you'd like to split.
SkuList (List)
* The items and quantities to copy into the first split. The difference will become the second split.
Sku (String)
* The sku of the item
Quantity (Int16)
The quantity of the item
Discount (Decimal)
If the original order has a discount, you can specify how much of the discount to carry over to the second parcel. If this is more than the original discount, it will be capped at the original discount (and the first split will have a discount of 0).
Key (Guid)
* Your i-parcel API key (visible in your Dashboard via the Integrate link.)

Request body formats

application/json, text/json

Sample:
{
  "TrackingNumber": "sample string 1",
  "SkuList": [
    {
      "Sku": "sample string 1",
      "Quantity": 2
    },
    {
      "Sku": "sample string 1",
      "Quantity": 2
    },
    {
      "Sku": "sample string 1",
      "Quantity": 2
    }
  ],
  "Discount": 2.0,
  "Key": "ca167a38-0979-440c-ae2c-99d8c5403cb5"
}

application/xml, text/xml

Sample:
<SplitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalAccessLibrary.Models">
  <Key xmlns="http://schemas.datacontract.org/2004/07/GlobalAccessLibrary.Models.WebRequest">ca167a38-0979-440c-ae2c-99d8c5403cb5</Key>
  <Discount>2</Discount>
  <SkuList xmlns:d2p1="http://schemas.datacontract.org/2004/07/GlobalAccessLibrary.Models.WebRequest">
    <d2p1:SkuQty>
      <d2p1:Quantity>2</d2p1:Quantity>
      <d2p1:Sku>sample string 1</d2p1:Sku>
    </d2p1:SkuQty>
    <d2p1:SkuQty>
      <d2p1:Quantity>2</d2p1:Quantity>
      <d2p1:Sku>sample string 1</d2p1:Sku>
    </d2p1:SkuQty>
    <d2p1:SkuQty>
      <d2p1:Quantity>2</d2p1:Quantity>
      <d2p1:Sku>sample string 1</d2p1:Sku>
    </d2p1:SkuQty>
  </SkuList>
  <TrackingNumber>sample string 1</TrackingNumber>
</SplitRequest>