Đơn Đặt Hàng KiotViet icon

Đơn Đặt Hàng KiotViet

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

Cập Nhật

AI-generated

Overview

This node updates an existing purchase order in the KiotViet system. It is useful for scenarios where you need to modify details of a purchase order such as the products included, their quantities, prices, or additional fields like notes and discounts. For example, if a supplier changes the price or quantity of items after the order is created, this node allows you to update the order accordingly.

Use Case Examples

  1. Updating the quantity and price of products in an existing purchase order.
  2. Adding or modifying notes and discount fields for a purchase order.

Properties

Name Meaning
ID ĐơN ĐặT Hàng The unique identifier of the purchase order to update.
Chi Tiết ĐơN Hàng Details of the products in the purchase order, including product ID, quantity, and price.
Trường Bổ Sung Additional optional fields for the purchase order such as notes and discount amount.

Output

JSON

  • success - Indicates if the cancellation operation was successful (only for cancel operation).
  • purchaseOrderDetails
    • ``
      * productId - ID of each product in the updated purchase order.
      * quantity - Quantity of each product in the updated purchase order.
      * price - Price of each product in the updated purchase order.
  • description - Optional notes about the purchase order.
  • discount - Optional discount amount applied to the purchase order.

Dependencies

  • KiotViet API with authentication credentials

Troubleshooting

  • Ensure the purchaseOrderId is provided and is a valid integer; otherwise, the update will fail.
  • Verify that product IDs and quantities are correctly formatted as integers and prices as floats to avoid data type errors.
  • If the API returns an error, check the API credentials and network connectivity.
  • If the node is set to continue on fail, errors will be returned in the output JSON with an error message property.

Links

  • KiotViet API Documentation - Official API documentation for KiotViet, useful for understanding purchase order endpoints and data structures.

Discussion