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

    Interface RefreshAccessTokenResponseData

    Response data payload for refresh_access_token

    interface RefreshAccessTokenResponseData {
        access_token?: string;
        expire_in?: number | Date;
        merchant_id?: number;
        partner_id?: number;
        principal_id?: number;
        refresh_token?: string;
        shop_id?: number;
        supplier_id?: number;
        user_id?: number;
    }
    Index

    Properties

    access_token?: string

    Returned when the API call is successful. Each new access_token is a dynamic token that can be used multiple times. It expires after 4 hours.

    expire_in?: number | Date

    Returned when the API call is successful. The validity period of the access_token, in seconds.

    merchant_id?: number

    Returned when the API call is successful. The merchant_id for this refresh.

    partner_id?: number

    Returned when the API call is successful. The partner_id you used for this refresh.

    principal_id?: number

    Returned when the API call is successful.The principal_id for this refresh.

    refresh_token?: string

    New refresh_tokenReturned when the API call is successful. Use a 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

    Returned when the API call is successful. The shop_id for this refresh.

    supplier_id?: number

    Returned when the API call is successful. The supplier_id for this refresh.

    user_id?: number

    Returned when the API call is successful. The user_id for this refresh.