Đơn Hàng KiotViet icon

Đơn Hàng KiotViet

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

Cập Nhật

AI-generated

Overview

This node manages orders in the KiotViet system, specifically supporting the update operation for orders. It allows users to update an existing order by specifying the order ID, the list of products in the order with details such as product ID, quantity, price, discount, and notes, as well as additional optional fields like customer ID, order description, and total discount for the order. This is useful for scenarios where order details need to be modified after creation, such as adjusting quantities, prices, or adding notes to products in the order.

Use Case Examples

  1. Updating an existing order to change product quantities and prices.
  2. Adding a discount or note to products within an order.
  3. Modifying the customer ID or description associated with an order.

Properties

Name Meaning
ID ĐơN Hàng The unique identifier of the order to update.
Sản Phẩm Trong ĐơN The list of products in the order, each with product ID, quantity, price, discount, and notes.
Trường Bổ Sung Additional optional fields for the order such as customer ID, description, and total discount.

Output

JSON

  • id - The unique identifier of the updated order.
  • orderDetails - Array of updated order product details including productId, quantity, price, discount, and note.
  • customerId - The customer ID associated with the order, if provided.
  • description - Description of the order, if provided.
  • discount - Total discount applied to the order, if provided.

Dependencies

  • KiotViet API with authentication credentials

Troubleshooting

  • Ensure the order ID provided exists and is valid; otherwise, the update will fail.
  • Verify that the product IDs in the order products list are valid and exist in the KiotViet system.
  • Check that the API credentials are correctly configured and have permissions to update orders.
  • If the update operation is not supported by the API version used, an error will be thrown indicating this limitation.

Discussion