Lấy Danh Sách
AI-generatedOverview
This node interacts with the KiotViet API to manage return orders. Specifically, for the 'Lấy Danh Sách' (Get All) operation, it retrieves a list of return orders from KiotViet. It supports fetching either all return orders or a limited number based on user input, and allows filtering by return date range. This is useful for scenarios where users need to monitor or process return orders in bulk, such as generating reports or syncing return data with other systems.
Use Case Examples
- Fetch all return orders without limit.
- Fetch up to 50 return orders filtered by a specific return date range.
Properties
| Name | Meaning |
|---|---|
| Lấy Toàn Bộ | Determines whether to fetch all return orders or limit the number of results. |
| Giới Hạn | Specifies the maximum number of return orders to fetch when not fetching all. |
| Bộ Lọc | Filters to apply when fetching return orders, including 'Từ Ngày Trả' (From Return Date) and 'Đến Ngày Trả' (To Return Date). |
Output
JSON
id- The unique identifier of the return order.code- The code of the return order.returnDate- The date when the return was made.customerName- Name of the customer who made the return.items- List of items included in the return order.
Dependencies
- KiotViet API with API key credential
Troubleshooting
- Ensure the KiotViet API credentials are correctly configured and valid.
- If the node fails to fetch data, check network connectivity and API rate limits.
- When using filters, ensure date formats are correct to avoid empty results.
- Common error messages include authentication failures and invalid parameter errors; verify credentials and input parameters accordingly.
Links
- KiotViet API Documentation - Official API documentation for KiotViet, useful for understanding available endpoints and parameters.