Đơn Đặt Hàng KiotViet icon

Đơn Đặt Hàng KiotViet

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

Lấy Theo ID

AI-generated

Overview

This node interacts with the KiotViet API to manage purchase orders. Specifically, for the 'Lấy Theo ID' (Get By ID) operation, it retrieves a purchase order from KiotViet by its unique ID. This is useful for scenarios where you need to fetch detailed information about a specific purchase order, such as for review, processing, or integration with other systems.

Use Case Examples

  1. Fetching a purchase order by its ID to display order details in a custom dashboard.
  2. Retrieving purchase order information to synchronize with an external inventory or accounting system.

Properties

Name Meaning
ID ĐơN ĐặT Hàng The unique identifier of the purchase order to retrieve.

Output

JSON

  • id - The unique identifier of the purchase order.
  • branchId - The ID of the branch where the order was placed.
  • supplierId - The ID of the supplier for the purchase order.
  • purchaseOrderDetails - Details of the products in the purchase order, including product IDs, quantities, and prices.
  • description - Notes or description associated with the purchase order.
  • discount - Discount amount applied to the purchase order.
  • status - Current status of the purchase order (e.g., Processing, Completed, Canceled).
  • createdAt - Timestamp when the purchase order was created.

Dependencies

  • KiotViet API key credential

Troubleshooting

  • Ensure the purchaseOrderId parameter is provided and is a valid integer; otherwise, the API call will fail.
  • Check that the KiotViet API credentials are correctly configured and have the necessary permissions to access purchase order data.
  • If the purchase order ID does not exist, the node will likely return an error or empty result; verify the ID before use.

Links

Discussion