1. 鉴权
Shanjing Ecommerce Api
latest
  • latest
  • 🇺🇸 English
  • 接入指南
    • 平台概述
    • 成为开发者
  • 淘宝&天猫 API
    • 鉴权
      • 获取 Token
      • 刷新 Token
        GET
    • 商品相关
      • 获取淘宝/天猫商品详情接口
      • 淘宝/天猫商品关键词搜索接口
      • 淘宝/天猫图片搜索同款商品接口
      • 上传图片到淘宝/天猫用于图搜商品
    • 订单相关
      • 淘宝/天猫撞库接口
      • 淘宝/天猫预创建订单接口
      • 淘宝/天猫正式创建订单接口
      • 淘宝/天猫取消订单接口
      • 淘宝/天猫查询订单接口
  1. 鉴权

刷新 Token

GET
/rest/taobao-global/auth/token/refresh
token 过期前,需要通过 refresh token 获取新的 token。

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://ecommerce-api.shanjing-inc.com/rest/taobao-global/auth/token/refresh?refresh_token=undefined' \
--header 'Authorization: Bearer <token>'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "expires_in": 0,
    "account_id": "string",
    "user_Id": "string",
    "seller_Id": "string",
    "short_code": "string",
    "account_platform": "string",
    "access_token": "string",
    "account": "string",
    "refresh_token": "string",
    "refresh_expires_in": "string",
    "error_code": "string"
}
🟢200接口异常错误
Modified at 2026-03-14 05:37:03
Previous
获取 Token
Next
获取淘宝/天猫商品详情接口
Built with