Query Enterprise Recharge Records
Endpoint Path
http
GET /api/enterprise/:id/recharge-recordsQuota 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/enterprise/1001/recharge-records?p=1&page_size=20'
GET 'https://neolink.com/backend/api/enterprise/1001/recharge-records?p=1&page_size=20&record_type=manual_topup'
GET 'https://neolink.com/backend/api/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 | []EnterpriseRechargeRecord | Yes | Recharge record array | See table below |
EnterpriseRechargeRecord Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| id | int | Yes | Record ID | Unique identifier |
| enterprise_id | int | Yes | Enterprise ID | Enterprise identifier |
| enterprise_name | string | Yes | Enterprise name | Enterprise display name |
| amount | int64 | Yes | Recharge amount | Quota amount recharged; see Quota Calculation above |
| balance_before | int64 | Yes | Balance before | Previous balance |
| balance_after | int64 | Yes | Balance after | New balance |
| order_id | string | Yes | Order ID | Transaction order ID |
| status | int | Yes | Status | 1=Completed; 2=Pending; 3=Failed |
| operator_id | int | Yes | Operator ID | Admin who processed recharge |
| operator_name | string | Yes | Operator name | Admin display name |
| created_time | int64 | Yes | Creation time | Unix second timestamp |
| remark | string | No | 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": ""
}
]
}
}