Split Order Package Item (splitShipmentPackage)

Split Order Package Item

Use this method to spilt one or more item in Order Package.

Each order package has a PackageID value. If one of the item is split in the package,the package status will be "Unpack" automatically and new PackageID will be generated and assigned tothe new package. Therefore, you must get orders with this endpoint

You can make your development according to Dividing Order Packages with Multiple Barcodes service. The other services will be closed by the end of the year.

Dividing Order Packages with Multiple Barcodes

After using this service, new packages depending on the order number will be generated asynchronously. For this reason, you have to fetch the new generated packages from the getShipmentPackages again.

With this method, you can process the products included in an order package with the quantity and orderLineId value of the relevant barcode in the package.

NOT: If there is a product(s) that you exclude while requesting, that product(s) will be created in a separate and new package.

  • POST splitMultiPackageByQuantity

https://api.trendyol.com/sapigw/suppliers/{supplierId}/shipment-packages/{shipmentPackageId}/split-packages

  • Body


{
  "splitPackages": [
    {
      "packageDetails": [
        {
          "orderLineId": 12345,
          "quantities": 2
        },
        {
          "orderLineId": 123456,
          "quantities": 1
        }
      ]
    },
    {
      "packageDetails": [
        {
          "orderLineId": 123,
          "quantities": 1
        },
        {
          "orderLineId": 1234,
          "quantities": 1
        }
      ]
    }
  ]
}
  • POST splitShipmentPackage

https://api.trendyol.com/sapigw/suppliers/{supplierId}/shipment-packages/{shipmentPackageId}/split

  • Body

{
  "orderLineIds": [{orderLineId}]
}

Split Order Package Item ( Creating Multiple Packages with a Single Request )

After using this service, new packages depending on the order number will be generated asynchronously. For this reason, you have to fetch the new generated packages from the getShipmentPackages again.

  • POST splitShipmentPackage

https://api.trendyol.com/sapigw/suppliers/{supplierId}/shipment-packages/{shipmentPackageId}/multi-split

  • Body

{
    "splitGroups": [{
            "orderLineIds": [
                3, 5, 6
            ]
        },
        {
            "orderLineIds": [
                7, 8, 9
            ]
        }

    ]
}

In this example, there will be 3 packages; First ,one package for 3,5,6 orderLines in the package. Second, another package for 7,8,9 orderLines, and third, one package for the remaining orderLines.

All orderLines in a package should not be sent to this service. The final package for the remaining orderlines will be created by the system automatically.

Split Order Packages Based On Barcode

After using this service, new packages depending on the order number will be generated asynchronously. For this reason, you have to fetch the new generated packages from the getShipmentPackages again.

  • POST splitShipmentPackageByQuantity

https://api.trendyol.com/sapigw/suppliers/{supplierId}/shipment-packages/{shipmentPackageId}/quantity-split

  • Body

{
  "quantitySplit": [
    {
      "orderLineId": 0,
      "quantities": [
       2,2
      ]
    }
  ]
}