Query Personal & Enterprise Bills
Endpoint Path
http
GET /api/open/billsRate 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
total_quota is an internal unit. Convert to CNY as follows:
Amount (¥) = total_quota ÷ quota_per_unit × usd_exchange_rateWhere:
total_quota: fromdata.items.bills[].total_quotareturned 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: total_fee is already in CNY (yuan) and needs no conversion.
Request Parameters
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| year | int | No | Bill year | Example: 2026 |
| month | int | No | Bill month | Example: 4 (April) |
| p | int | No | Page number | Default 1 |
| page_size | int | No | Records per page | Default 10, max 100 |
Request Example
json
GET 'https://neolink.com/backend/api/open/bills?year=2026&month=4&p=1&page_size=10'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 | BillsPageData | Yes | Paged bill data | See table below |
BillsPageData Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| page | int | Yes | Current page | Starts at 1 |
| page_size | int | Yes | Page size | Matches request pagination |
| total | int | Yes | Total bills | Matching bill count |
| items | object | Yes | Inner page payload | Bill list is at items.bills; see below |
items Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| bills | []Bill | Yes | Bill array | Current page; see below |
| total | int | Yes | Total bills | Same meaning as outer data.total |
| page | int | Yes | Current page | Same as outer |
| page_size | int | Yes | Page size | Same as outer |
Bill Object
| Field | Type | Required | Description | Remarks |
|---|---|---|---|---|
| id | int | Yes | Bill ID | Database unique identifier |
| bill_no | string | Yes | Bill number | Format: BIL-YYYY-MM-NNN |
| bill_type | int | Yes | Bill type | 0=personal; 1=enterprise |
| target_id | int | Yes | Target ID | User or enterprise ID |
| target_name | string | Yes | Target name | User nickname or enterprise name |
| year | int | Yes | Bill year | e.g. 2026 |
| month | int | Yes | Bill month | 1-12 |
| status | int | Yes | Bill status | 0=pending confirm; 1=confirmed; 2=generation failed |
| total_quota | int64 | Yes | Total quota | Monthly consumption; see Quota Calculation |
| total_fee | float | Yes | Total fee | Amount due in yuan |
Response Example
json
{
"success": true,
"message": "",
"data": {
"page": 1,
"page_size": 10,
"total": 1,
"items": {
"bills": [
{
"id": 12345,
"bill_no": "BIL-2026-04-001",
"bill_type": 0,
"target_id": 100,
"target_name": "User Nickname",
"year": 2026,
"month": 4,
"status": 0,
"total_quota": 50000,
"total_fee": 250.00
}
],
"total": 1,
"page": 1,
"page_size": 10
}
}
}