授权接口

申请授权码

GET /oauth/authorize

Paramters

Name
Type
Description

client_id

string

联系技术支持获取

response_type

String

固定‘code’

结果对象属性描述

property name
type
description

merNo

Integer

商户号

code

String

授权码

获取Access_token

POST /oauth/token

<Description of the endpoint>

Body

Name
Type
Description

client_id

string

联系技术支持获取

client_secret

string

客户端密码,联系技术支持获取

code

string

页面跳转带回去的值

grant_type

string

授权类型,固定‘authorization_code’

redirect_uri

string

提供给平台的 redirect_uri

结果对象属性描述

property name
type
description

access_token

String

access_token,请求时带的令牌

expires_in

Integer

access_token有效期,时间单位秒(s)

refresh_token

String

refresh_token,刷新令牌

refresh_expires_in

Integer

refresh_token有效期,时间单位秒(s)

token_type

String

access_token类型

Last updated