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

    Interface UpdateStockRequest

    Request parameters for update_stock

    Use this API to update one item_id for each call, but still can support updating multiple model_ids stock of the same item_id (If you need batch modification, please call multiple times)This API will update only "seller_stock".Whenever there is a promotion ongoing or upcoming, the total stock must be larger than or equal to real-time “reserved_stock” promotion stock (Please check v2.get_item_promotion API for more details). Items that are deleted will not be allowed to modify stock.

    interface UpdateStockRequest {
        item_id: number;
        stock_list: UpdateStockStock[];
    }
    Index

    Properties

    Properties

    item_id: number

    ID of item.

    stock_list: UpdateStockStock[]

    Length should be between 1 to 50.