Đơn Đặt Hàng KiotViet icon

Đơn Đặt Hàng KiotViet

Quản lý đơn đặt hàng từ KiotViet

Lấy Danh Sách

AI-generated

Overview

This node interacts with the KiotViet API to retrieve a list of purchase orders. It supports filtering the list by order status and creation date, and allows users to either fetch all matching results or limit the number of results returned. This is useful for managing and monitoring purchase orders in bulk, such as fetching all orders currently being processed or completed within a specific date range.

Use Case Examples

  1. Fetch all purchase orders with status 'Processing' created between two dates.
  2. Retrieve up to 50 purchase orders with status 'Completed'.
  3. Get all purchase orders without any filters.

Properties

Name Meaning
Lấy Toàn Bộ Whether to return all results or only up to a given limit.
Giới Hạn Maximum number of purchase orders to return when not returning all.
Bộ Lọc Filters to narrow down the purchase orders list by status and creation date.

Output

JSON

  • id - Unique identifier of the purchase order.
  • branchId - ID of the branch where the order was placed.
  • supplierId - ID of the supplier for the purchase order.
  • purchaseOrderDetails - Details of products in the purchase order including product ID, quantity, and price.
  • status - Current status of the purchase order (e.g., Processing, Completed, Canceled).
  • createdDate - Date when the purchase order was created.

Dependencies

  • KiotViet API with API key credential

Troubleshooting

  • Ensure the API credentials are correctly configured to avoid authentication errors.
  • If no results are returned, check the filter criteria for correctness and date format (YYYY-MM-DD).
  • Limit parameter must be a positive integer; otherwise, the node may throw an error.
  • Network issues or API downtime can cause request failures; retry or check API status.

Discussion