Skip to content

Query Personal & Enterprise Bills ​

Endpoint Path ​

http
GET /api/open/bills

Rate 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_rate

Where:

  • total_quota: from data.items.bills[].total_quota returned by this endpoint
  • quota_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 ​

FieldTypeRequiredDescriptionConstraints
yearintNoBill yearExample: 2026
monthintNoBill monthExample: 4 (April)
pintNoPage numberDefault 1
page_sizeintNoRecords per pageDefault 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 ​

FieldTypeRequiredDescriptionRemarks
successboolYesRequest success indicatorFixed value
messagestringYesError message (empty if successful)Fixed value
dataBillsPageDataYesPaged bill dataSee table below

BillsPageData Object

FieldTypeRequiredDescriptionRemarks
pageintYesCurrent pageStarts at 1
page_sizeintYesPage sizeMatches request pagination
totalintYesTotal billsMatching bill count
itemsobjectYesInner page payloadBill list is at items.bills; see below

items Object

FieldTypeRequiredDescriptionRemarks
bills[]BillYesBill arrayCurrent page; see below
totalintYesTotal billsSame meaning as outer data.total
pageintYesCurrent pageSame as outer
page_sizeintYesPage sizeSame as outer

Bill Object

FieldTypeRequiredDescriptionRemarks
idintYesBill IDDatabase unique identifier
bill_nostringYesBill numberFormat: BIL-YYYY-MM-NNN
bill_typeintYesBill type0=personal; 1=enterprise
target_idintYesTarget IDUser or enterprise ID
target_namestringYesTarget nameUser nickname or enterprise name
yearintYesBill yeare.g. 2026
monthintYesBill month1-12
statusintYesBill status0=pending confirm; 1=confirmed; 2=generation failed
total_quotaint64YesTotal quotaMonthly consumption; see Quota Calculation
total_feefloatYesTotal feeAmount 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
    }
  }
}