bills

Fetch bills matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
from_dateISODateTimeNo

Inclusive start of the date range, in ISO-8601 datetime format.

to_dateISODateTimeNo

Inclusive end of the date range, in ISO-8601 datetime format.

statusStringNo

Filter by status; use values returned by the corresponding status field.

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

BillsQueryResult

Query

query bills(
  $from_date: ISODateTime,
  $to_date: ISODateTime,
  $status: String,
  $analyze: Boolean
) {
  bills(
    from_date: $from_date,
    to_date: $to_date,
    status: $status,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...BillConnectionFragment
    }
  }
}

Variables

{
  "from_date": "2026-07-09T15:30:00Z",
  "to_date": "2026-07-09T15:30:00Z",
  "status": "pending",
  "analyze": true
}

Response

{
  "data": {
    "bills": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "QmlsbDoxMjM0"}]
    }
  }
}