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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Get Seller Center Current Inventory Page Data. This API provides detailed inventory information including sellable, reserved, and unsellable quantities across different warehouses.

      Parameters

      • params: GetCurrentInventoryParams

        Parameters for getting current inventory

        Parameters for getting current inventory

        • Optionalcategory_id?: number

          Category id (first-tier)

        • Optionalinbound_pending_approval?: number

          Inbound pending approval: Blank=All; 0=No; 1=Yes

        • Optionalkeyword?: string

          Bind value and search_type

        • Optionalnot_moving_tag?: number

          Not moving tag: Blank=All; 0=No; 1=Yes

        • Optionalpage_no?: number

          Page number (default: 1)

        • Optionalpage_size?: number

          Page size, 1-100 (default: 10)

        • Optionalproducts_with_inventory?: number

          Products with inventory: Blank=All; 0=No; 1=Yes

        • Optionalsearch_type?: number

          Search type: 0=All data; 1=Product Name; 2=SKU ID; 3=Variations; 4=Item ID

        • Optionalstock_levels?: string

          Stock levels: 1=Low Stock & No Sellable stock; 2=Low Stock & To replenish; 3=Low Stock & Replenished; 4=Excess

        • Optionalwhs_ids?: string

          Whs ID list, comma-separated

        • whs_region: string

          Warehouse region (required): BR, CN, ID, MY, MX, TH, TW, PH, VN, SG

      Returns Promise<GetCurrentInventoryResponse>

      A promise that resolves to the current inventory response containing:

      • cursor: Pagination cursor
      • item_list: List of items with inventory details

      When the API request fails or returns an error

    • Get Seller Center Expiry Report page data. This API provides information about expiring, expired, and damaged stocks.

      Parameters

      • params: GetExpiryReportParams

        Parameters for getting expiry report

        Parameters for getting expiry report

        • Optionalcategory_id_l1?: number

          Only Level 1 Category can be filtered

        • Optionalexpiry_status?: string

          Expiry status: 0=Expired, 2=Expiring, 4=expiry_blocked, 5=damaged, 6=normal (comma-separated)

        • Optionalitem_id?: string

          Item ID

        • Optionalitem_name?: string

          Item name

        • Optionalpage_no?: number

          Page number (default: 1)

        • Optionalpage_size?: number

          Page size, 1-40 (default: 10)

        • Optionalsku_id?: string

          SKU ID

        • Optionalvariation?: string

          Variation

        • Optionalwhs_ids?: string

          Whs IDs, comma-separated

        • whs_region: string

          Warehouse region (required): BR, CN, ID, MY, MX, TH, TW, PH, VN, SG

      Returns Promise<GetExpiryReportResponse>

      A promise that resolves to the expiry report response containing:

      • item_list: List of items with expiry information

      When the API request fails or returns an error

    • Get Seller Center Stock Aging page data. This API provides stock aging information showing how long items have been in stock.

      Parameters

      • params: GetStockAgingParams

        Parameters for getting stock aging

        Parameters for getting stock aging

        • Optionalaging_storage_tag?: number

          Aging storage tag: 0=false; 1=true

        • Optionalcategory_id?: number

          L1-level product category ID

        • Optionalexcess_storage_tag?: number

          Excess storage tag: 0=false; 1=true

        • Optionalkeyword?: string

          Bound with search_type

        • Optionalpage_no?: number

          Page number (default: 1)

        • Optionalpage_size?: number

          Page size, 1-100 (default: 10)

        • Optionalsearch_type?: number

          Search type: 1=Product Name; 2=SKU ID; 3=Variations; 4=Item ID

        • Optionalwhs_ids?: string

          Whs IDs, comma-separated

        • whs_region: string

          Warehouse region (required): BR, CN, ID, MY, MX, TH, TW, PH, VN, SG

      Returns Promise<GetStockAgingResponse>

      A promise that resolves to the stock aging response containing:

      • item_list: List of items with stock aging details

      When the API request fails or returns an error

    • Get Seller Center Stock Movement page data. This API provides stock movement information including inbound, outbound, and adjustments.

      Parameters

      • params: GetStockMovementParams

        Parameters for getting stock movement

        Parameters for getting stock movement

        • Optionalcategory_id_l1?: number

          L1-level category_id

        • end_time: string

          End date in YYYY-MM-DD format (required)

        • Optionalitem_id?: string

          Item ID

        • Optionalitem_name?: string

          Item name

        • Optionalpage_no?: number

          Page number (default: 1)

        • Optionalpage_size?: number

          Page size, 1-20 (default: 10)

        • Optionalsku_id?: string

          SKU ID

        • start_time: string

          Start date in YYYY-MM-DD format (required)

        • Optionalvariation?: string

          Variation

        • Optionalwhs_ids?: string

          Whs IDs, comma-separated

        • whs_region: string

          Warehouse region (required): BR, CN, ID, MY, MX, TH, TW, PH, VN, SG

      Returns Promise<GetStockMovementResponse>

      A promise that resolves to the stock movement response containing:

      • total: Total number of items
      • start_time: Start time
      • end_time: End time
      • query_end_time: Query end time
      • item_list: List of items with stock movement details

      When the API request fails or returns an error