Voucher KiotViet icon

Voucher KiotViet

Quản lý voucher và chiến dịch khuyến mãi từ KiotViet

Lấy Voucher Theo Mã

AI-generated

Overview

This node interacts with the KiotViet API to retrieve voucher information based on a voucher code. It is useful for scenarios where you need to fetch details of a specific voucher by its unique code, such as validating a voucher during a sales process or checking voucher details for promotional campaigns.

Use Case Examples

  1. Fetch voucher details by entering the voucher code to verify its validity and discount information before applying it to a customer's order.
  2. Retrieve voucher information to display in a customer loyalty or rewards system based on the voucher code provided.

Properties

Name Meaning
Mã Voucher The unique code of the voucher to retrieve its details.

Output

JSON

  • voucherId - The unique identifier of the voucher.
  • voucherCode - The code of the voucher.
  • voucherName - The name or title of the voucher.
  • discountType - Type of discount applied by the voucher (e.g., fixed amount or percentage).
  • discountValue - The value of the discount provided by the voucher.
  • startDate - The start date of the voucher's validity.
  • endDate - The end date of the voucher's validity.
  • status - The current status of the voucher (e.g., active, expired).

Dependencies

  • KiotViet API with API key credential

Troubleshooting

  • Ensure the voucher code is correctly entered and exists in the KiotViet system to avoid 'voucher not found' errors.
  • Check API credentials and network connectivity if the node fails to connect to the KiotViet API.
  • If the API returns an error, verify that the voucher code is valid and that the voucher is active and not expired.

Links

  • KiotViet API Documentation - Official API documentation for KiotViet, useful for understanding voucher-related endpoints and parameters.

Discussion