Skip to content

Query Personal & Enterprise Bills ​

Endpoint Path ​

http
GET /api/open/bills

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.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
yearintNoInvoice yearExample: 2026
monthintNoInvoice monthExample: 4 (April)
pageintNoPage numberDefault 1
limitintNoRecords per pageDefault 10, max 100

Request Example ​

json
GET 'https://neolink.com/backend/api/open/bills?year=2026&month=4&page=1&limit=10'

Return Information ​

FieldTypeRequiredDescriptionRemarks
successboolYesRequest success indicatorFixed value
messagestringYesError message (empty if successful)Fixed value
data[]InvoiceYesInvoice arraySee table below
totalintYesTotal countTotal invoices
pageintYesCurrent pagePage number
page_sizeintYesRecords per pagePage size

Invoice Object

FieldTypeRequiredDescriptionRemarks
idintYesInvoice IDUnique identifier
invoice_nostringYesInvoice numberInvoice serial number
enterprise_idintYesEnterprise IDEnterprise identifier
amountfloatYesInvoice amountTotal amount
tax_amountfloatYesTax amountTax included
statusintYesStatus1=Issued; 2=Mailed; 3=Received
billing_periodstringYesBilling periodPeriod covered by invoice
issued_timeint64YesIssue timeUnix second timestamp
due_dateint64YesDue dateUnix second timestamp

Response Example ​

json
{
  "success": true,
  "message": "",
  "data": {
    "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
  }
}