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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Get detail of a shop discount activity

      Parameters

      • params: GetDiscountParams

        Parameters for retrieving discount details

        Parameters for getting a discount

        • [key: string]: string | number | boolean | undefined
        • discount_id: number

          Shopee's unique identifier for a discount activity

        • page_no: number

          Specifies the page number of data to return. Default 1

        • page_size: number

          Maximum number of entries to retrieve per page. Default 50

      Returns Promise<GetDiscountResponse>

      The response containing discount details

    • Get a list of discount activities with pagination

      Parameters

      • params: GetDiscountListParams

        Parameters for retrieving discount list

        Parameters for getting a list of discounts

        • [key: string]: string | number | boolean | undefined
        • discount_status: DiscountStatus

          The status of discount promotion

        • Optionalpage_no?: number

          Specifies the page number of data to return. Default 1

        • Optionalpage_size?: number

          Maximum number of entries to retrieve per page. Default 100, max 100

        • Optionalupdate_time_from?: number

          Update time from

        • Optionalupdate_time_to?: number

          Update time to

      Returns Promise<GetDiscountListResponse>

      The response containing a paginated list of discounts

      The response includes:

      • Pagination information (more: boolean indicating if there are more pages)
      • A list of discounts with basic details such as ID, name, status, start/end time, and source
    • Get SIP Overseas Discounts

      Parameters

      Returns Promise<GetSipDiscountsResponse>

      The response containing a list of SIP discounts

      Only regions that have upcoming/ongoing discounts will be returned. Use Primary shop's Shop ID to request - the API will return the list of Affiliate shops under this Primary shop that have set discounts, along with the discount details.

      The response includes:

      • discount_list: Array of discount information for each region
        • region: The region of the SIP affiliate shop
        • status: The status of the discount (upcoming/ongoing)
        • sip_discount_rate: The discount rate percentage
        • start_time: When the discount starts (UNIX timestamp)
        • end_time: When the discount ends (UNIX timestamp)
        • create_time: When the discount was created (UNIX timestamp)
        • update_time: When the discount was last updated (UNIX timestamp)
    • Set SIP Overseas Discount for SIP affiliate region

      Parameters

      Returns Promise<SetSipDiscountResponse>

      The response containing the created/updated discount details

      Use Primary shop's Shop ID to request. Provide the region and discount rate of the Affiliate shop to be set or update - the API will set or update the discount rate for that region's Affiliate shop.

      Notes:

      • The start time is 30 minutes after the discount is set
      • The end time is 180 days after the start time
      • Cannot edit the promotion within 15 minutes after an update
      • In VN region, discount rate cannot exceed 50%