Query Personal Top-up Records
Endpoint Path
http
GET /api/open/user/topup/selfRate Limit
This endpoint follows Authentication Overview · Rate Limits: default max 10 requests per user per minute (shared with most other Open query APIs). Exceeding the limit returns HTTP 429.
Quota Calculation
amount is the quota change (internal unit). Convert to CNY as follows:
Amount (¥) = amount ÷ quota_per_unit × usd_exchange_rateWhere:
amount: fromdata.items[].amountreturned by this endpointquota_per_unit,usd_exchange_rate,quota_display_type: from Query Conversion Parameters (GET /api/open/status)
If quota_display_type = USD, omit × usd_exchange_rate.
Note: money is already the paid amount in yuan and needs no conversion.
Request Parameters
| Field | Type | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| p | int | No | Page number | Default 1 | 1 |
| page_size | int | No | Records per page | Default 10, max 100 | 20 |
| keyword | string | No | Search keyword | Search transaction number or remark | "trade_123" |
| record_type | string | No | Record type filter | topup / redemption, etc. | "topup" |
Request Example
json
GET 'https://neolink.com/backend/api/open/user/topup/self?p=1&page_size=20'
GET 'https://neolink.com/backend/api/open/user/topup/self?p=1&page_size=20&record_type=redemption'
GET 'https://neolink.com/backend/api/open/user/topup/self?page_size=10&keyword=trade_123'Return Information
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| success | bool | Yes | Request success indicator | Fixed value |
| message | string | Yes | Error message (empty if successful) | Fixed value |
| data | PagedTopupRecord | Yes | Paged top-up records | See table below |
PagedTopupRecord Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| page | int | Yes | Current page | Starts at 1 |
| page_size | int | Yes | Page size | Actual page size |
| total | int | Yes | Total records | Matching records |
| items | []TopupRecord | Yes | Record array | See table below |
TopupRecord Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| id | int | Yes | Record ID | Database unique identifier |
| record_type | string | Yes | Record type | Only topup=top-up order (online/admin); redemption=redemption code. No deduction |
| trade_no | string | Yes | Trade number | Third-party payment trade no. |
| payment_method | string | Yes | Payment method | Online channels such as alipay/wechat; admin top-up=manual_topup; admin adjust=admin_quota_adjust; redemption=redemption. Admin top-up/adjust is distinguished here, not by record_type |
| amount | int64 | Yes | Quota change | Increase/decrease; see Quota Calculation |
| money | float | Yes | Amount | Paid amount in yuan |
| status | string | Yes | Status | success / pending / failed |
| create_time | int64 | Yes | Created at | Unix seconds |
| remark | string | Yes | Remark | Additional notes |
Response Example
json
{
"success": true,
"message": "",
"data": {
"page": 1,
"page_size": 20,
"total": 45,
"items": [
{
"id": 101,
"record_type": "topup",
"trade_no": "2026070812345678",
"payment_method": "alipay",
"amount": 5000000,
"money": 500.0,
"status": "success",
"create_time": 1752028800,
"remark": ""
}
]
}
}