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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Get the late orders to take action to avoid order cancellation and penalty points

      Parameters

      • Optionalparams: GetLateOrdersParams

        Optional request parameters

        Parameters for the get late orders API

        • Optionalpage_no?: number

          Specifies the page number of data to return in the current call. Starting from 1. Default is 1.

        • Optionalpage_size?: number

          Maximum number of entries to return in a single "page" of data. The limit is between 1 and 100. Default is 10.

      Returns Promise<GetLateOrdersResponse>

      Response containing late orders information

      This API returns a list of orders that are late for shipping and require immediate attention to avoid potential cancellations and resulting penalty points. Each late order record includes:

      • The order SN (order number)
      • The shipping deadline timestamp
      • The number of days the order is late by

      The response is paginated - use page_no and page_size to navigate through the results. The total_count field indicates the total number of late orders across all pages.

      Use this API to prioritize shipping for late orders and take action to minimize late shipment rates, which can affect your shop's performance metrics and potentially result in penalties or restrictions on your shop.

    • Get the listings that have issues and need improvement

      Parameters

      • Optionalparams: GetListingsWithIssuesParams

        Optional request parameters

        Parameters for the get listings with issues API

        • Optionalpage_no?: number

          Specifies the page number of data to return in the current call. Starting from 1. Default is 1.

        • Optionalpage_size?: number

          Maximum number of entries to return in a single "page" of data. The limit is between 1 and 100. Default is 10.

      Returns Promise<GetListingsWithIssuesResponse>

      Response containing listings with issues

      This API returns details of problematic listings that need improvement. Each listing record includes:

      • The item ID of the problematic listing
      • The reason for the issue, with possible values including:
        • Prohibited (1): Listing violates Shopee's prohibited items policy
        • Counterfeit (2): Listing is flagged as potentially counterfeit
        • Spam (3): Listing is identified as spam content
        • Inappropriate Image (4): Listing contains inappropriate images
        • Insufficient Info (5): Listing lacks required information
        • Mall Listing Improvement (6): Mall listing requiring improvement
        • Other Listing Improvement (7): Other issues requiring attention

      The response is paginated - use page_no and page_size to navigate through the results. The total_count field indicates the total number of listings with issues across all pages.

      Use this API to identify listings that need improvement to maintain good shop health and avoid potential penalties or restrictions on your shop.

    • Get the Affected Orders / Relevant Listings / Relevant Violations details of metrics

      Parameters

      • params: GetMetricSourceDetailParams

        Request parameters

        Parameters for the get metric source detail API

        • metric_id: number

          ID of metric. Supported values: 1: Late Shipment Rate (All Channels) 3: Non-Fulfilment Rate (All Channels) 12: Pre-order Listing % 15: Days of Pre-order Listing Violation 25: Fast Handover Rate 28: On-time Pickup Failure Rate Violation Value 42: Cancellation Rate (All Channels) 43: Return-refund Rate (All Channels) 52: Severe Listing Violations 53: Other Listing Violations 85: Late Shipment Rate (NDD) 88: Non-fulfilment Rate (NDD) 91: Cancellation Rate (NDD) 92: Return-refund Rate (NDD) 97: % NDD Listings 2001: Fast Handover Rate - SLS 2002: Fast Handover Rate - FBS 2003: Fast Handover Rate - 3PF

        • Optionalpage_no?: number

          Specifies the page number of data to return in the current call. Starting from 1. Default is 1.

        • Optionalpage_size?: number

          Maximum number of entries to return in a single "page" of data. The limit is between 1 and 100. Default is 10.

      Returns Promise<GetMetricSourceDetailResponse>

      Response containing detailed information about the metric

      This API returns detailed information about specific metrics, including affected orders, relevant listings, or violation details. The response structure varies based on the metric_id provided:

      • Non-Fulfillment Rate metrics (3, 88): Returns nfr_order_list with affected orders
      • Cancellation Rate metrics (42, 91): Returns cancellation_order_list with affected orders
      • Return-refund Rate metrics (43, 92): Returns return_refund_order_list with affected orders
      • Late Shipment Rate metrics (1, 85): Returns lsr_order_list with late shipment details
      • Fast Handover Rate metrics (25, 2001-2003): Returns fhr_order_list with handover details
      • On-time Pickup Failure Rate (28): Returns opfr_day_detail_data_list with daily violation data
      • Listing Violations (52, 53): Returns violation_listing_list with problematic listings
      • Pre-order Listing Violation (15): Returns pre_order_listing_violation_data_list with daily data
      • Pre-order Listing % (12): Returns pre_order_listing_list with pre-order listings
      • NDD Listings % (97): Returns ndd_listing_list with NDD-enabled listings

      The response is paginated - use page_no and page_size to navigate through the results. The total_count field indicates the total number of items available across all pages.

      Use this API to identify specific orders or listings that are affecting your shop's performance metrics and take corrective actions.

    • Get the penalty point records generated in the current quarter

      Parameters

      • Optionalparams: GetPenaltyPointHistoryParams

        Optional request parameters

        Parameters for the get penalty point history API

        • Optionalpage_no?: number

          Specifies the page number of data to return in the current call. Starting from 1. Default is 1.

        • Optionalpage_size?: number

          Maximum number of entries to return in a single "page" of data. The limit is between 1 and 100. Default is 10.

        • Optionalviolation_type?: number

          Filter by specific violation type. See ViolationType enum for values.

      Returns Promise<GetPenaltyPointHistoryResponse>

      Response containing penalty point records

      This API returns detailed records of penalty points that have been issued to the shop during the current quarter. Each record includes:

      • The time when the penalty points were issued
      • The number of points (both original and current after any adjustments via appeals)
      • A unique reference ID for the penalty
      • The type of violation that triggered the penalty

      Use this API to track and analyze penalty points history, which can help in:

      • Understanding what types of violations are impacting your shop health
      • Monitoring the effects of appeals on penalty points
      • Tracking progress over time in reducing violations

      The response is paginated - use page_no and page_size to navigate through the results. You can also filter by violation_type to focus on specific types of issues.

      Note: Penalty points reset at the beginning of each quarter (on the first Monday).

    • Get the punishment records generated in the current quarter

      Parameters

      • params: GetPunishmentHistoryParams

        Request parameters

        Parameters for the get punishment history API

        • Optionalpage_no?: number

          Specifies the page number of data to return in the current call. Starting from 1. Default is 1.

        • Optionalpage_size?: number

          Maximum number of entries to return in a single "page" of data. The limit is between 1 and 100. Default is 10.

        • punishment_status: PunishmentStatus

          The status of punishment to retrieve. 1: Ongoing punishments 2: Ended punishments

      Returns Promise<GetPunishmentHistoryResponse>

      Response containing punishment records

      This API returns detailed records of punishments that have been applied to the shop during the current quarter. Each punishment record includes:

      • The time when the punishment was issued
      • Start and end times of the punishment period
      • Type of punishment (e.g., listing restrictions, marketing restrictions)
      • Reason for the punishment (typically indicates the tier level)
      • A unique reference ID for the punishment
      • For listing limit punishments: the specific listing limit value
      • For order limit punishments: the percentage applied to order limits

      You can retrieve either ongoing punishments (punishment_status=1) or ended punishments (punishment_status=2).

      Common punishment types include:

      • Listings not displayed in search or category browsing
      • Unable to create or edit listings
      • Unable to join marketing campaigns
      • No shipping subsidies
      • Account suspension
      • Listing limit reductions
      • Order limits

      The response is paginated - use page_no and page_size to navigate through the results.

      Use this API to understand current restrictions on your shop and when they will expire.

    • Get the information of shop penalty

      Returns Promise<GetShopPenaltyResponse>

      Response containing penalty points and ongoing punishments

      This API returns the seller's shop penalty information, including:

      • Penalty points that remain on record till the end of a quarter (reset on the first Monday of each quarter)

        • Overall penalty points total
        • Points from non-fulfillment rate issues
        • Points from late shipment issues
        • Points from listing violations
        • Points from OPFR (Order Pick-up Failure Rate) violations
        • Points from other violations
      • List of ongoing punishments with details about:

        • Punishment tier (1-5)
        • Days left in the punishment period
        • Name of the punishment (e.g., "deboost")

      Use this API to monitor your shop's health status and take proactive measures to address any issues that could affect your shop's performance.

    • Get data metrics of shop performance

      Returns Promise<GetShopPerformanceResponse>

      Response containing shop performance metrics

      This API returns comprehensive data metrics about a shop's performance across three key dimensions:

      1. Fulfillment Performance - Metrics related to order processing and logistics:

        • Late Shipment Rate
        • Non-Fulfillment Rate
        • Preparation Time
        • Fast Handover Rate
        • Cancellation Rate
        • Return-refund Rate
        • On-time Pickup Failure Rate
      2. Listing Performance - Metrics related to product listings quality:

        • Severe Listing Violations (Prohibited, Counterfeit/IP infringement, Spam)
        • Pre-order Listing percentage and days in violation
        • Other Listing Violations
      3. Customer Service Performance - Metrics related to customer interactions:

        • Chat Response Rate
        • Response Time
        • Shop Rating
        • Non-Responded Chats

      The response includes both overall performance ratings and detailed metrics with:

      • Current and previous period performance values
      • Target values with comparators (e.g., "<", ">=") to meet performance standards
      • Units of measurement (percentage, number, days, etc.)
      • Parent-child relationship between metrics

      Use this API to gain insights into shop performance and identify areas for improvement to maintain good shop health.