Query Enterprise Recharge Records
Endpoint Path
http
GET /api/open/enterprise/:id/recharge-recordsRate 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: from theamountfield in recharge records returned 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.
Request Parameters
| Field | Type | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| id | int | Yes | Enterprise ID | Path parameter | 1001 |
| p | int | No | Page number | Default 1 | 1 |
| page_size | int | No | Records per page | Default 10, max 100 | 20 |
Request Example
json
GET 'https://neolink.com/backend/api/open/enterprise/1001/recharge-records?p=1&page_size=20'
GET 'https://neolink.com/backend/api/open/enterprise/1001/recharge-records?p=1&page_size=20&record_type=manual_topup'
GET 'https://neolink.com/backend/api/open/enterprise/1001/recharge-records?page_size=10&record_type=redemption'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 | PagedRechargeRecord | Yes | Paged recharge records | See table below |
PagedRechargeRecord 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 recharge records |
| items | []RechargeRecord | Yes | Record array | See table below |
RechargeRecord Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| id | int | Yes | Record ID | Database unique identifier |
| type | string | Yes | Recharge type | topup=online top-up; redemption=redemption code; manual_topup=admin top-up; admin_quota_adjust=admin adjust; manual_credit=credit adjust |
| time | int64 | Yes | Operation time | Unix seconds |
| amount | int64 | Yes | Quota change | Increase/decrease; see Quota Calculation |
| operator | string | Yes | Operator | User or system account |
| remark | string | Yes | Remark | Additional notes |
Response Example
json
{
"success": true,
"message": "",
"data": {
"page": 1,
"page_size": 20,
"total": 35,
"items": [
{
"id": 1,
"type": "redemption",
"time": 1711468800,
"amount": 100000,
"operator": "",
"remark": ""
}
]
}
}