/app/lite/token

generate Legend lite token and url

Token generate rules

English

  • Each user can have only one available token for each type. The old token will become invalid when a new one is generated.
  • The initial expiration time is 30 minutes. expires=1800
  • If the request parameters callback_url and payload are changed, a new token will be generated. Otherwise, the valid token will be reused.
  • The expires_at field represents the token's expiration time in UTC.

中文

  • 每个用户在单个 type 中,同一时间只有一个有效 token,生成新 token 时,旧 token 将会自动失效;
  • token 默认有效期是 30分钟,expires=1800
  • 如果请求参数 callback_urlpayload 有变化,将会生成新 token,否则将复用有效 token;
  • 接口返回 expires_at 为 token 的 UTC 过期时间。
Body Params
string
required

user_id 用户id

string
enum
required

Legend Pay Lite Type

Allowed:
string
payload
object
Headers
string
required
Defaults to 12.34.56.78

User's most recent access/login IP address

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json