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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Cancel a compensation dispute. Sellers can only cancel compensation disputes, not normal disputes. This means sellers can only cancel disputes when return_status is ACCEPTED and compensation_status is COMPENSATION_REQUESTED.

      Parameters

      • params: CancelDisputeParams

        Parameters for cancelling dispute

        Parameters for cancelling dispute

        • Optionalemail?: string

          Email for contact

        • return_sn: string

          Return serial number

      Returns Promise<CancelDisputeResponse>

      A promise that resolves to the cancel dispute response containing:

      • return_sn: The return serial number

      When the API request fails or returns an error

    • Confirm refund for a return request.

      Parameters

      • params: ConfirmParams

        Parameters for confirming return

        Parameters for confirming return

        • return_sn: string

          Return serial number

      Returns Promise<ConfirmResponse>

      A promise that resolves to the confirm response containing:

      • return_sn: The confirmed return serial number

      When the API request fails or returns an error

    • Convert image files to URLs. Supports specific formats and pictures within 10MB.

      Parameters

      • params: ConvertImageParams

        Parameters for converting images

        Parameters for converting image

        • images: ImageToConvert[]

          Images to convert

        • Optionalreturn_sn?: string

          Return serial number

        • Optionalupload_image?: string

          Upload image content

      Returns Promise<ConvertImageResponse>

      A promise that resolves to the convert image response containing:

      • images: Array of converted image URLs

      When the API request fails or returns an error

    • Dispute a return request. Support raising dispute when return_status is REQUESTED/PROCESSING/ACCEPTED.

      Parameters

      • params: DisputeParams

        Parameters for disputing return

        Parameters for disputing return

        • dispute_reason: number

          Dispute reason

        • Optionaldispute_reason_id?: number

          Dispute reason ID

        • Optionaldispute_text_reason?: string

          Dispute text reason

        • email: string

          Email for contact

        • Optionalimage_list?: string[]

          Image list

        • Optionalimages?: string[]

          Images for dispute

        • return_sn: string

          Return serial number

      Returns Promise<DisputeResponse>

      A promise that resolves to the dispute response containing:

      • return_sn: The disputed return serial number

      When the API request fails or returns an error

    • Use this API to get detail information of many returns by shop ID.

      Parameters

      • params: GetReturnListParams

        Parameters for getting return list

        Parameters for getting return list

        • Optionalcreate_time_from?: number

          Create time from

        • Optionalcreate_time_to?: number

          Create time to

        • Optionalnegotiation_status?: string

          Negotiation status filter

        • page_no: number

          Page number

        • page_size: number

          Page size

        • Optionalseller_compensation_status?: string

          Seller compensation status filter

        • Optionalseller_proof_status?: string

          Seller proof status filter

        • Optionalstatus?: string

          Return status filter

        • Optionalupdate_time_from?: number

          Update time from

        • Optionalupdate_time_to?: number

          Update time to

      Returns Promise<GetReturnListResponse>

      A promise that resolves to the return list response containing:

      • more: Whether there are more pages
      • return: List of return details

      When the API request fails or returns an error

    • Get reverse and post-return logistics information of return request.

      For Normal RR, returns complete reverse logistics information. For In-transit RR and Return-on-the-Spot, only returns latest reverse logistics status without providing complete reverse logistics information.

      For seller_validation, only one segment of reverse (buyer to seller), use tracking_info. For warehouse_validation, two segments of reverse (buyer to warehouse and warehouse to seller), use post_return_logistics_tracking_info for the second segment.

      Parameters

      • params: GetReverseTrackingInfoParams

        Parameters for getting reverse tracking info

        Parameters for getting reverse tracking info

        • return_sn: string

          Shopee's unique identifier for a return/refund request (serial number of return)

      Returns Promise<GetReverseTrackingInfoResponse>

      A promise that resolves to the reverse tracking info response containing:

      • return_sn: Return serial number
      • return_refund_request_type: Type of return refund request (0=Normal RR, 1=In-transit RR, 2=Return-on-the-Spot)
      • validation_type: Whether seller or warehouse validates (seller_validation/warehouse_validation)
      • reverse_logistics_status: Latest reverse logistic status
      • reverse_logistics_update_time: Last update time of reverse logistics status
      • estimated_delivery_date_max/min: Estimated delivery dates (for Normal RR with integrated reverse logistics)
      • tracking_number: Tracking number for reverse logistics
      • tracking_info: Detailed tracking information list
      • post_return_logistics_status: Status for warehouse to seller logistics (warehouse_validation only)
      • post_return_logistics_update_time: Update time for post-return logistics
      • rts_tracking_number: Return to Seller tracking number
      • post_return_logistics_tracking_info: Tracking info for warehouse to seller logistics

      When the API request fails or returns an error

    • Get the list of shipping carriers and required parameters for uploading shipping proof. Only for TW and BR returns with is_seller_arrange = true.

      Parameters

      • params: GetShippingCarrierParams

        Parameters for getting shipping carriers

        Parameters for getting shipping carrier

        • return_sn: string

          Return serial number

      Returns Promise<GetShippingCarrierResponse>

      A promise that resolves to the shipping carrier response containing:

      • carrier_list: List of available shipping carriers with required fields

      When the API request fails or returns an error

    • Offer a solution to the buyer during negotiation.

      Parameters

      • params: OfferParams

        Parameters for offering solution

        Parameters for offering solution

        • Optionalproposed_adjusted_refund_amount?: number

          Proposed adjusted refund amount

        • Optionalproposed_solution?: string

          Proposed solution

        • Optionalrefund_amount?: number

          Refund amount

        • return_sn: string

          Return serial number

        • solution: number

          Solution to offer

      Returns Promise<OfferResponse>

      A promise that resolves to the offer response containing:

      • return_sn: The return serial number

      When the API request fails or returns an error

    • Query the evidence uploaded through the upload evidence API.

      Parameters

      • params: QueryProofParams

        Parameters for querying proof

        Parameters for querying proof

        • return_sn: string

          Return serial number

      Returns Promise<QueryProofResponse>

      A promise that resolves to the query proof response containing:

      • proof_text: Uploaded text evidence
      • proof_image: Uploaded image evidence
      • proof_video: Uploaded video evidence

      When the API request fails or returns an error

    • Upload shipping proof for seller-arranged returns. Only for TW and BR returns with is_seller_arrange = true. This is not to upload evidence for disputes.

      Parameters

      • params: UploadShippingProofParams

        Parameters for uploading shipping proof

        Parameters for uploading shipping proof

        • [key: string]: any

          Additional fields as key-value pairs

        • carrier_id: number

          Carrier ID

        • Optionalimage_id_list?: { image_id?: string }[]

          Image ID list

        • Optionalremarks?: string

          Remarks

        • return_sn: string

          Return serial number

        • Optionalreverse_logistics_carrier_id?: number

          Reverse logistics carrier ID

        • Optionalreverse_logistics_carrier_name?: string

          Reverse logistics carrier name

        • tracking_number: string

          Tracking number

      Returns Promise<UploadShippingProofResponse>

      A promise that resolves to the upload shipping proof response containing:

      • return_sn: The return serial number

      When the API request fails or returns an error