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

    Interface InitTierVariationRequest

    Request parameters for init_tier_variation

    This API allows you to update the tier structure of a product. Defining only color creates one tier, while color + size creates two tiers (maximum supported). Supported changes include: no tier ↔ one/two tiers, one tier ↔ two/no tier, and two tiers ↔ one/no tier. For details, see Developer Guide. Please wait at least 5 seconds after creating an item before creating variants, as processing may be delayed.

    interface InitTierVariationRequest {
        item_id: number;
        model: InitTierVariationModel[];
        standardise_tier_variation?: InitTierVariationStandardiseTierVariation[];
    }
    Index

    Properties

    item_id: number

    ID of item

    Model info list, model number at most 50

    standardise_tier_variation?: InitTierVariationStandardiseTierVariation[]

    There is at least one standardise_tier_variation and tier_variation.If you want to update one tier/two tier to no tier, can just pass the tier_variation and standardise_tier_variation as [], and pass the model >> tier_index as [], meanwhile pass the original_price, seller_stock, etc., to set the price and stock for the modified product with no tier structure.