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

    Interface GetDiscountResponse

    Response for the get discount API

    interface GetDiscountResponse {
        error: string;
        message: string;
        request_id: string;
        response: {
            discount_id: number;
            discount_name: string;
            end_time: number;
            item_list: DiscountItemInfo[];
            more: boolean;
            start_time: number;
            status: string;
        };
        warning?: string
        | string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    error: string

    Error code if any error occurred

    message: string

    Error message if any error occurred

    request_id: string

    The identifier for an API request for error tracking

    response: {
        discount_id: number;
        discount_name: string;
        end_time: number;
        item_list: DiscountItemInfo[];
        more: boolean;
        start_time: number;
        status: string;
    }

    Type Declaration

    • discount_id: number

      Shopee's unique identifier for a discount activity

    • discount_name: string

      Title of the discount

    • end_time: number

      The end time of discount

    • item_list: DiscountItemInfo[]

      The items selected in this discount

    • more: boolean

      Indicates whether there are more items to retrieve

    • start_time: number

      The start time of discount

    • status: string

      The status of discount promotion

    warning?: string | string[]

    Warning message or list of warning messages