Shopee SDK API Reference - v2.8.0
    Preparing search index...

    Interface AddAllProductsToOpenCampaignRequest

    Request parameters for add_all_products_to_open_campaign

    Add all eligible products into the Open Campaign. We will only return the general error that caused the whole task failure, without returning the specific error for each product in the v2.ams.get_open_campaign_batch_task_result API. If you want to get the result for each products, you can use v2.ams.batch_add_products_to_open_campaign by pagination manually, or check the product status by using the GET API after the task progress turn to 100%.

    interface AddAllProductsToOpenCampaignRequest {
        commission_rate: number;
        period_end_time?: number | Date;
        period_start_time?: number | Date;
    }
    Index

    Properties

    commission_rate: number

    Commission Rate, 1.1 means 1.1%, support two decimal places

    period_end_time?: number | Date

    Period end time, in seconds, if missing, will set 32503651199 (2999-12-31 23:59:59) represent of no limit

    period_start_time?: number | Date

    Period start time, in seconds, if missing, will set 10 minutes later