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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: ShopeeConfig

    Methods

    • Trigger income report generation.

      Parameters

      • params: GenerateIncomeReportParams

        Parameters for generating income report

        Parameters for generating income report

        • Optionalcurrency?: string

          Currency for the report

        • end_time: number

          End time for the report (timestamp)

        • Optionalrelease_time_from?: number

          Release time from

        • Optionalrelease_time_to?: number

          Release time to

        • start_time: number

          Start time for the report (timestamp)

      Returns Promise<GenerateIncomeReportResponse>

      A promise that resolves to the generate income report response

      When the API request fails or returns an error

    • This API is applicable for Cross Border (CB) sellers only to get the detailed payout transaction data, both released and to-be released transaction can be found in here.

      Parameters

      • params: GetBillingTransactionInfoParams

        Parameters for getting billing transaction info

        Parameters for getting billing transaction info

        • billing_transaction_info_type: number

          Billing transaction info type

        • cursor: string

          Cursor for pagination

        • Optionalencrypted_payout_ids?: string[]

          Encrypted payout IDs

        • page_size: number

          Page size, max 100

      Returns Promise<GetBillingTransactionInfoResponse>

      A promise that resolves to the billing transaction info response

      When the API request fails or returns an error

    • Use this API to fetch the accounting detail of order.

      Parameters

      • params: GetEscrowDetailParams

        Parameters for getting escrow detail

        Parameters for getting escrow detail

        • order_sn: string

          Shopee's unique identifier for an order

      Returns Promise<GetEscrowDetailResponse>

      A promise that resolves to the escrow detail response containing:

      • order_sn: Order identifier
      • buyer_user_name: Username of buyer
      • return_order_sn_list: List of return order numbers
      • order_income: Detailed breakdown of order income including:
        • escrow_amount: Expected amount seller will receive
        • buyer_total_amount: Total amount paid by buyer
        • items: List of items with pricing details
        • fees and adjustments: Various fees, taxes and adjustments
      • buyer_payment_info: Payment details from buyer's perspective

      When the API request fails or returns an error:

      • error_param: Missing or invalid parameters
      • error_auth: Authentication or permission errors
      • error_server: Internal server errors
      • error_not_found: Order income details not found
    • Use this API to fetch the accounting list of order.

      Parameters

      • params: GetEscrowListParams

        Parameters for getting escrow list

        Parameters for getting escrow list

        • Optionalpage_no?: number

          The page number, min: 1, default: 1

        • Optionalpage_size?: number

          Number of pages returned, max: 100, default: 40

        • release_time_from: number

          Query start time (timestamp)

        • release_time_to: number

          Query end time (timestamp)

      Returns Promise<GetEscrowListResponse>

      A promise that resolves to the escrow list response containing:

      • escrow_list: List of escrow orders with order_sn, payout_amount, and escrow_release_time
      • more: Indicates whether there are more pages

      When the API request fails or returns an error

    • This API is applicable for Cross Border (CB) sellers only to get the shop's payout data.

      Parameters

      • params: GetPayoutDetailParams

        Parameters for getting payout detail

        Parameters for getting payout detail (deprecated, use getPayoutInfo instead)

        • Optionalpage_no?: number

          Page number, default 1

        • Optionalpage_size?: number

          Page size, max 100, default 40

        • payout_time_from: number

          Payout time from (timestamp)

        • payout_time_to: number

          Payout time to (timestamp)

      Returns Promise<GetPayoutDetailResponse>

      A promise that resolves to the payout detail response

      Use getPayoutInfo instead

      When the API request fails or returns an error

    • This is a new API which applicable for Cross Border (CB) sellers only to get the shop's payout data, will be used for the original API v2.get_payout_details replacement.

      Parameters

      • params: GetPayoutInfoParams

        Parameters for getting payout info

        Parameters for getting payout info

        • Optionalcursor?: string

          Pagination cursor

        • Optionalpage_no?: number

          Page number, default 1

        • Optionalpage_size?: number

          Page size, max 100, default 40

        • payout_time_from: number

          Payout time from (timestamp)

        • payout_time_to: number

          Payout time to (timestamp)

      Returns Promise<GetPayoutInfoResponse>

      A promise that resolves to the payout info response

      When the API request fails or returns an error

    • Use this API to get the transaction records of wallet. Only applicable for local shops.

      Parameters

      • params: GetWalletTransactionListParams

        Parameters for getting wallet transaction list

        Parameters for getting wallet transaction list

        • Optionalcreate_time_from?: number

          The start time of the query, timestamp

        • Optionalcreate_time_to?: number

          The end time of the query, timestamp

        • Optionalmoney_flow?: string

          Indicates whether user wants to return only MONEY_IN or MONEY_OUT transactions

        • page_no: number

          Specifies the starting entry of data to return in the current call. Default is 1

        • page_size: number

          The number of records returned per page, min 1, max 100, default 40

        • Optionaltransaction_tab_type?: string

          Transaction tab type filter. Only 1 value can be provided per request

        • Optionaltransaction_type?: string

          Transaction type filter

        • Optionalwallet_type?: string

          This field indicates the wallet type

      Returns Promise<GetWalletTransactionListResponse>

      A promise that resolves to the wallet transaction list response

      When the API request fails or returns an error