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
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.
partner_id
int64
Yes
2001887
The partner_id obtained from the App. This partner_id is inserted into the body.
shop_id
int64
No
322300222
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.
merchant_id
int64
No
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.
supplier_id
int64
No
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
int64
No
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.
Indicate error type if hit error. Empty if no error happened.
message
string
Indicate error details if hit error. Empty if no error happened.
request_id
string
The identifier for an API request for error tracking.
partner_id
int64
Returned when the API call is successful. The partner_id you used for this refresh.
principal_id
int64
Returned when the API call is successful.The principal_id for this refresh.
shop_id
int64
Returned when the API call is successful. The shop_id for this refresh.
merchant_id
int64
Returned when the API call is successful. The merchant_id for this refresh.
supplier_id
int64
Returned when the API call is successful. The supplier_id for this refresh.
user_id
int64
Returned when the API call is successful. The user_id for this refresh.
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.
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.
expire_in
timestamp
Returned when the API call is successful. The validity period of the access_token, in seconds.
The App is deleted, and you'll be unable to make any API call.
error_auth
App developer’s permissions for authorizations have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
error_param
There is no partner_id in query.
error_param
Invalid partner_id.
error_param
no timestamp
error_param
Invalid timestamp
error_param
There is no sign in query.
error_sign
Wrong sign.
invalid_partner_id
Invalid partner_id, please have a check.
error_auth
No permission to current api.
error_api_call_restricted
The App permission for api call have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
api_suspended
The API is offline. Please call v2 API instead.
error_limit
The total API call number made by your APP has reached the daily API call limit, please try again after 00: 00 (UTC+08:00)
error_rate_limit
Too many requests. You have reached the rate limit. Please try again later.
source_ip_undeclared
Request Source IP ({ip}) is undeclared. Please declare all your IP addresses in the Shopee Open Platform Console > App list > IP Address Whitelist
error_param
Permission denied. This API is currently offline or the request path is incorrect.
error_param
Partner_id is invalid, should be an integer between 0 and 4294967295.
error_param
no timestamp.
error_param
Timestamp is invalid, should be an integer between 0 and 4294967295.
error_param
Timestamp is expired.
error_partner_key_expired
Your API partner key has expired, please reset the Live API Partner Key in Console to get a new valid partner key to call open api.