cURL
curl --request GET \ --url https://www.chenyu.cn/api/open/v2/recharge/list \ --header 'Authorization: Bearer <token>'
{ "code": 123, "msg": "<string>", "data": { "recharge_list": [ { "amount": 123, "trade_time": 123, "pay_time": 123, "trade_number": "<string>" } ], "total": 123 } }
查询充值记录列表
Documentation IndexFetch the complete documentation index at: https://chenyu.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://chenyu.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Show data
Show recharge_list
import requests url = "https://www.chenyu.cn/api/open/v2/recharge/list" headers = { "Authorization": "Bearer your_api_key" } params = { "page": "1", "page_size": "10", "trade_number": "TXN123456789" # 可选,按订单号筛选 } response = requests.get(url, headers=headers, params=params) result = response.json() if result['code'] == 0: recharge_data = result['data'] print(f"总记录数: {recharge_data['total']}") for record in recharge_data['recharge_list']: print(f"充值金额: {record['amount']}") print(f"交易编号: {record['trade_number']}") print(f"订单时间: {record['trade_time']}") print(f"支付时间: {record['pay_time']}") print("---") else: print(f"查询失败: {result['msg']}")
{ "code": 0, "msg": "查询成功", "data": { "recharge_list": [ { "amount": 500.00, "trade_time": 1705294225, "pay_time": 1705294270, "trade_number": "TXN20240115103025001" }, { "amount": 1000.00, "trade_time": 1704870015, "pay_time": 1704870065, "trade_number": "TXN20240110152015002" } ], "total": 25 } }