跳转到主要内容
POST
/
api
/
redemption
创建兑换码
curl --request POST \
  --url https://api.ldx.dev/api/redemption \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "name": "<string>",
  "key": "<string>",
  "status": 123,
  "quota": 123,
  "created_time": 123,
  "redeemed_time": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
id
integer
name
string
key
string
status
integer
quota
integer
created_time
integer
redeemed_time
integer

响应

200

成功