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

    Interface GetAccessTokenRequest

    Request parameters for get_access_token

    Use the code from the authorization step to call this API to obtain the authorized shop_id, merchant_id, supplier_id, or user_id, and its corresponding access_token and refresh_token.

    interface GetAccessTokenRequest {
        code: string;
        main_account_id?: number;
        partner_id: number;
        shop_id?: number;
    }
    Index

    Properties

    code: string

    The code in redirect url after the authorization. Valid for one-time use, expires in 10 minutes

    main_account_id?: number

    The main_account_id of the seller that authorized the developer.

    partner_id: number

    Partner ID is assigned upon registration is successful. Required for all requests.

    shop_id?: number

    Shopee's unique identifier for a shop.