6. Cancel Package
You can use this method to cancel one or more item in Order Package.
- 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.
- If you would like to keep the package status same, "shouldKeepPreviousStatus field should be marked as "true", otherwise (if you send this field "false") new packages will be generated on "created" status.
- The default value of "shouldKeepPreviousStatus" is "false". If you do not send this field, it will be marked as "false"
- You need to send "storeFrontCode" as Header Parameter.
PUT updatePackage
Sample Service Request
{
"lines": [
{
"lineId": 0,
"quantity": 0
}
],
"reasonId":0,
"shouldKeepPreviousStatus": true
}Cancellation Reasons
| reasonId | name | description |
|---|---|---|
| 500 | Stock Out | It should be selected if the product cannot be supplied due to reasons such as out of stock and shipping delays. |
| 501 | Faulty/damaged product | It should be selected if the product cannot be sent because it is defective/defective/broken. |
| 502 | Wrong price | It should be selected in case the wrong price is fed. |
| 503 | Incorrect image/barcode/quantity | It should be selected in case there are different products defined with the same barcode in the Trendyol system, the product is listed with an incorrect image, the product information contains incorrect content (a 2-pack product is sold with a single product barcode, etc.). |
| 504 | Integration error | It should be selected in case of incorrect prices or problems in stock transfer due to the integration company. |
| 505 | Bulk purchase | It should be selected if a single product is purchased in bulk by the same customer after the discount on the product. |
| 506 | Force majeure | Natural disaster, illness, funeral, etc. should be selected in such cases. |
Updated 11 days ago