Tạo Mới
AI-generatedOverview
This node manages purchase orders in KiotViet, specifically focusing on creating new purchase orders. It is useful for automating the creation of purchase orders by specifying branch ID, supplier ID, order details including products, quantities, and prices, as well as additional fields like notes and discounts. Practical examples include automating purchase order creation in inventory management or procurement workflows.
Use Case Examples
- Creating a new purchase order for a specific branch and supplier with multiple products and quantities.
- Adding notes and discounts to a purchase order during creation.
Properties
| Name | Meaning |
|---|---|
| ID Chi Nhánh | ID of the branch placing the order, required for creating a purchase order. |
| ID Nhà Cung Cấp | ID of the supplier for the purchase order, required for creating a purchase order. |
| Chi Tiết ĐơN Hàng | Details of the order including multiple products, each with product ID, quantity, and price. |
| Trường Bổ Sung | Additional optional fields for the purchase order such as notes and discount amount. |
Output
JSON
branchId- ID of the branch placing the order.supplierId- ID of the supplier for the purchase order.purchaseOrderDetails- Array of products with their IDs, quantities, and prices included in the order.description- Optional notes for the purchase order.discount- Optional discount amount applied to the purchase order.success- Indicates successful creation of the purchase order (if applicable).
Dependencies
- Requires KiotViet API credentials for authentication and access to the purchase order endpoints.
Troubleshooting
- Common issues include invalid or missing branchId or supplierId, which are required fields for creating a purchase order.
- Errors may occur if product IDs or quantities are not properly formatted as integers or prices as floats.
- API authentication errors if the KiotViet API credentials are not correctly configured.
- If the node fails, enabling 'Continue On Fail' allows processing of subsequent items without stopping the workflow.