分页读取账单和资金记录

​

所需权限:billing:read。使用绑定目标工作区的 OpenAPI Key,以 Authorization: Bearer <OpenAPI Key> 鉴权。

Query Parameters
  • type
    Type: string
  • from
    Type: string

    RFC3339时间或YYYY-MM-DD日期(UTC)。

  • to
    Type: string

    RFC3339为不包含的结束时刻;YYYY-MM-DD包含该日,按UTC解析。

  • page
    Type: integer
    min:  
    1

    Integer numbers.

  • page_size
    Type: integer
    min:  
    1
    max:  
    100

    Integer numbers.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/bills
curl 'https://openapi.apigo.ai/v1/bills?type=&from=2026-01-01T00%3A00%3A00Z&to=2026-01-08T00%3A00%3A00Z&page=1&page_size=20' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "code": 0,
  "message": "string",
  "data": {
    "items": [
      {
        "id": "string",
        "time": "2026-10-19T02:14:25.583Z",
        "type": "string",
        "amount_usd": 1,
        "balance_after_usd": 1,
        "billing_day": "2026-10-19",
        "timezone": "string",
        "invoice_id": "string",
        "status": "string",
        "note": "string",
        "source": "string",
        "source_ref": "string"
      }
    ],
    "total": 0,
    "page": 1,
    "page_size": 1
  }
}