Shopee SDK API Reference - v1.11.0
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Get detailed information about a voucher

      Parameters

      Returns Promise<GetVoucherResponse>

      The response containing comprehensive voucher information

      The response includes:

      • Basic voucher details (ID, code, name, type, etc.)
      • Usage information (total quantity, current usage)
      • Timing details (start time, end time, display time)
      • Reward specifics (reward type, discount amount/percentage, min basket price)
      • Display settings (channels where voucher is shown)
      • For product vouchers: list of applicable items
    • Get a list of vouchers with pagination

      Parameters

      • params: GetVoucherListParams

        Parameters for retrieving voucher list

        Parameters for getting a list of vouchers

        • Optionalpage_no?: number

          Specifies the page number of data to return. Default 1, range 1-5000

        • Optionalpage_size?: number

          Maximum number of entries to retrieve per page. Default 20, range 1-100

        • status: VoucherStatus

          The status filter for retrieving voucher list

      Returns Promise<GetVoucherListResponse>

      The response containing a paginated list of vouchers

      The response includes:

      • Pagination information (more: boolean indicating if there are more pages)
      • A list of vouchers with details such as ID, code, name, type, usage statistics, timing, and reward information