KiotViet icon

KiotViet

Interact with KiotViet

Order → Get List Orders

AI-generated

Overview

This node interacts with the KiotViet API to retrieve a list of orders. It is useful for scenarios where you need to fetch multiple orders from the KiotViet system, such as for order management, reporting, or synchronization with other systems. For example, you can use it to get a paginated list of orders by specifying the page size and the current item ID to control the subset of orders returned.

Use Case Examples

  1. Fetch the first 20 orders to display in a dashboard.
  2. Retrieve orders in batches of 50 for processing in an external system.

Properties

Name Meaning
Page Size Specifies the number of orders to retrieve in one request, controlling the size of the result set.
Current Item ID Indicates the starting point or offset for the list of orders to fetch, useful for pagination.

Output

JSON

  • json - Contains the list of orders retrieved from the KiotViet API, including order details as provided by the API response.

Dependencies

  • Requires an API key credential for KiotViet API authentication to obtain an access token.

Troubleshooting

  • If the node throws an error 'Get access_token failed', it means the authentication with KiotViet API failed. Check the API credentials and ensure they are correctly configured.
  • If an unknown operation error occurs, verify that the operation parameter is set to 'getOrders' for this resource.
  • Pagination parameters (Page Size and Current Item ID) must be valid numbers; otherwise, the API request may fail.

Discussion