Cancel Order Package Item (updatePackage)

Cancel Order Package Item

The endpoint and body of the Cancel Order Package Item Service is updated. Until August 31, 2021, the old and new service will be active together. After August 31, the old service will be closed for use. You need to revise your systems to work with the new service.

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

NOTE: Each order package has a PackageID value. If one of the item is cancelled in the package,the package will be split automatically and new PackageID will be generated and assigned to the new package.

PUT updatePackage - NEW SERVİCE

PROD : https://api.trendyol.com/integration/oms/core/sellers/{sellerId}/shipment-packages/{shipmentPackageId}/items/unsupplied

STAGE : https://stageapi.trendyol.com/integration/oms/core/sellers/{sellerId}/shipment-packages/{shipmentPackageId}/items/unsupplied

{
 "lines": [
   {
     "lineId": 0,
     "quantity": 0
   }
 ],
"reasonId":0
 }
reasonId name description
500 Stock Out It should be selected if the product cannot be supplied due to out of stock and delay in shipping.
501 Defective Product If the product cannot be sent because it is defective, it should be selected.
502 Incorrect Price It should be selected in case of feeding the wrong price.
504 Integration Problem It should be selected in case of problems experienced in incorrect price or stock transfer due to the integration company.
505 Bulk purchase It should be chosen if it is purchased from a single product and in bulk by the same customer after the discount on the product.
506 Force Majeure Natural disaster, illness, funeral, etc. should be chosen in cases
  • PUT updatePackage - OLD SERVİCE (WILL BE DEACTİVATED ON 31 August)

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

{
  "lines": [
    {
      "lineId": {id},
      "quantity": 1
    }
  ],
  "params": {},
  "status": "UnSupplied"
}