交易管理
Authorizations
AuthorizationstringRequired
使用从 /thirdPartyLogin 接口获取的 userToken 进行身份验证。
在请求头中添加:
Authorization: Bearer {userToken}
示例:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMjM0LCJ1c2VyX2tleSI6InVzZXJAZXhhbXBsZS5jb20iLCJleHAiOjE2OTgyMDMzOTV9.xxxxx
注意:
/thirdPartyLogin接口不需要 Authorization header(用于获取 token)- 其他所有接口都需要在请求头中携带 Authorization header
- Token 过期后需要重新调用
/thirdPartyLogin获取新 Token
Body
trans_idintegerRequiredExample:
交易记录ID(与order_id二选一)
12345order_idstringOptionalExample:
第三方订单号(与trans_id二选一)
open_card_12345_39_abc123Responses
200
查询成功
application/json
400
请求参数错误
application/json
Responseany
401
未授权
application/json
404
交易记录不存在
application/json
500
服务器内部错误
application/json
post
/getRecordDetailAuthorizations
AuthorizationstringRequired
使用从 /thirdPartyLogin 接口获取的 userToken 进行身份验证。
在请求头中添加:
Authorization: Bearer {userToken}
示例:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMjM0LCJ1c2VyX2tleSI6InVzZXJAZXhhbXBsZS5jb20iLCJleHAiOjE2OTgyMDMzOTV9.xxxxx
注意:
/thirdPartyLogin接口不需要 Authorization header(用于获取 token)- 其他所有接口都需要在请求头中携带 Authorization header
- Token 过期后需要重新调用
/thirdPartyLogin获取新 Token
Query parameters
pageintegerOptionalDefault:
页码(从1开始)
1Example: 1page_numintegerOptionalDefault:
每页数量
20Example: 20trans_typestring · enumOptionalExample:
交易类型筛选(recharge、payment、open_card)
rechargePossible values: card_binding_idintegerOptionalExample:
卡片绑定ID筛选
12345start_datestringOptionalExample:
开始日期(格式:YYYY-MM-DD 或时间戳)
2024-10-01end_datestringOptionalExample:
结束日期(格式:YYYY-MM-DD 或时间戳)
2024-10-31Responses
200
查询成功
application/json
400
请求参数错误
application/json
Responseany
401
未授权
application/json
500
服务器内部错误
application/json
get
/userTransAuthorizations
AuthorizationstringRequired
使用从 /thirdPartyLogin 接口获取的 userToken 进行身份验证。
在请求头中添加:
Authorization: Bearer {userToken}
示例:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMjM0LCJ1c2VyX2tleSI6InVzZXJAZXhhbXBsZS5jb20iLCJleHAiOjE2OTgyMDMzOTV9.xxxxx
注意:
/thirdPartyLogin接口不需要 Authorization header(用于获取 token)- 其他所有接口都需要在请求头中携带 Authorization header
- Token 过期后需要重新调用
/thirdPartyLogin获取新 Token
Query parameters
transaction_idstringRequiredExample:
交易ID
tx_123456Responses
200
查询成功
application/json
400
请求参数错误
application/json
Responseany
401
未授权
application/json
500
服务器内部错误
application/json
get
/userTransRecordLast updated