轻易云
注册体验

领星ERP获取 access - token和refresh - token接口

所属平台
领星ERP
类型
WebAPI
作用
QUERY
接口版本
1.0
适配器
\Adapter\LingXing\LXQueryAdapter
授权方式
OTHER
描述
授权 · POST · 请求参数 2 个(必填 2) · 响应参数 6 个 · 限流令牌桶容量 100
更新日期
2026-11-21

获取 access - token和refresh - token

POST/api/auth-server/oauth/access-token
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/api/auth-server/oauth/access-token"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 100,
    "text": ""
  },
  "responseExample": {
    "code": "200",
    "msg": "OK",
    "data": {
      "access_token": "4dcaa78e-b52d-4325-bc35-571021bb0787",
      "refresh_token": "da5b5047-e6d1-496c-ab4d-d5425a6a66e4",
      "expires_in": 7199
    }
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1appIdappIdstring—必填AppID,在ERP开放接口菜单中获取
2appSecretappSecretstring—必填AppSecret,在ERP开放接口菜单中获取

接口响应参数

序号字段名称类型默认值必填描述
1code状态码integer200必填状态码
2msg消息提示string—必填消息提示
3data响应数据object—必填响应数据
3.1access_tokenaccess_tokenstring—必填access_token,请求令牌token
3.2refresh_tokenrefresh_tokenstring—必填refresh_token,可以使用它来给access_token延续有效期
3.3expires_inaccess_token过期时间string 必填access_token过期时间

领星ERP的接口:获取 access - token和refresh - token(/api/auth-server/oauth/access-token),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。