Hủy
AI-generatedOverview
This node operation cancels a purchase order in the KiotViet system. It is useful for scenarios where an existing purchase order needs to be invalidated or stopped, such as when an order is no longer needed or was created by mistake. For example, a user can input the purchase order ID to cancel that specific order directly from the workflow.
Use Case Examples
- Cancel a purchase order by providing its ID to stop further processing or shipment.
- Automate order management by canceling orders that meet certain criteria automatically.
Properties
| Name | Meaning |
|---|---|
| ID ĐơN ĐặT Hàng | The unique identifier of the purchase order to be canceled. |
Output
JSON
success- Indicates whether the cancellation was successful (true if canceled).
Dependencies
- Requires an API key credential for KiotViet API authentication.
Troubleshooting
- Common issues include providing an invalid or non-existent purchase order ID, which will cause the cancellation to fail.
- If the API credentials are incorrect or expired, the node will not be able to communicate with KiotViet and will throw an authentication error.
- Ensure the purchase order is in a state that allows cancellation; some orders may not be cancelable depending on their status.