Hủy
AI-generatedOverview
This node manages orders from KiotViet, specifically focusing on the 'Cancel' operation in this context. It allows users to cancel an existing order by providing the order ID and an optional cancellation reason. This is useful in scenarios where an order needs to be invalidated due to customer request, stock issues, or other business reasons.
Use Case Examples
- Cancel an order by specifying its ID and providing a reason for cancellation to keep order records accurate and up-to-date.
- Use the node to automate order cancellations in workflows triggered by external events such as payment failures or customer cancellations.
Properties
| Name | Meaning |
|---|---|
| ID ĐơN Hàng | The unique identifier of the order to be canceled. |
| Lý Do Hủy | The reason for canceling the order, which can be used for record-keeping or customer communication. |
Output
JSON
id- The unique identifier of the canceled order.status- The status of the order after cancellation.message- Any message or confirmation returned by the API regarding the cancellation.
Dependencies
- KiotViet API with appropriate API key credentials
Troubleshooting
- Ensure the order ID provided is valid and exists in the KiotViet system; invalid IDs will cause errors.
- The cancel operation requires the KiotViet API to support cancellation; if the API does not support it, the node will throw an error.
- Network or authentication issues with the KiotViet API can cause failures; verify API credentials and network connectivity.