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

    Interface AddDiscountItemResponse

    Response for the add discount item API

    interface AddDiscountItemResponse {
        error: string;
        message: string;
        request_id: string;
        response: {
            count: number;
            discount_id: number;
            error_list: DiscountItemError[];
            warning?: 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: {
        count: number;
        discount_id: number;
        error_list: DiscountItemError[];
        warning?: string;
    }

    Type Declaration

    • count: number

      The number of items successfully added

    • discount_id: number

      Shopee's unique identifier for a discount activity

    • error_list: DiscountItemError[]

      List of items that failed to be added

    • Optionalwarning?: string

      Warning message if any

    warning?: string | string[]

    Warning message or list of warning messages