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

    Interface RefreshAccessTokenRequest

    Request parameters for refresh_access_token

    Use this API to refresh the access_token after it expires. Refresh_token can be used once only, this API will also return a new refresh_token. Please use the new refresh_token for the next RefreshAccessToken call

    interface RefreshAccessTokenRequest {
        merchant_id?: number;
        partner_id: number;
        principal_id?: number;
        refresh_token: string;
        shop_id?: number;
        supplier_id?: number;
        user_id?: number;
    }
    Index

    Properties

    merchant_id?: number

    The merchant_id that granted authorization to your App. Only the shop_id or merchant_id or supplier_id or user_id can be selected as the input parameter, and they must be refreshed separately.

    partner_id: number

    The partner_id obtained from the App. This partner_id is inserted into the body.

    principal_id?: number

    Shopee's unique identifier for a principal.

    refresh_token: string

    Use refresh_token to get a new access_token. Each refresh_token is valid for 30 days, and can only be used once by either a shop_id or merchant_id or supplier_id or user_id.

    shop_id?: number

    The shop_id that granted authorization to your App. Only the shop_id or merchant_id or supplier_id or user_id can be selected as the input parameter, and they must be refreshed separately.

    supplier_id?: number

    The supplier_id that granted authorization to your App. Only the shop_id or merchant_id or supplier_id or user_id can be selected as the input parameter, and they must be refreshed separately.

    user_id?: number

    The user_id that granted authorization to your App. Only the shop_id or merchant_id or supplier_id or user_id can be selected as the input parameter, and they must be refreshed separately.