---
title: "Retrieve the results for an event store query"
method: GET
path: "/meters/event-store-queries/{queryId}"
tags: ["Event Store"]
---

# Retrieve the results for an event store query

`GET /meters/event-store-queries/{queryId}`

Retrieves paginated result rows and column metadata for a previously submitted Event Store query using its `queryId`, including total row count, row-level field values, and readiness status. Query execution is asynchronous.

## Path parameters

- `queryId` string, required

## Query parameters

- `pageSize` integer
- `page` integer

## Headers

- `Content-Type` string, required
- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Track-Id` string

## Response `200`

OK

- GetQueryResultsResponse
  - `success` boolean — Indicates whether the request was successful.
  - `data` QueryResult
    - `isFailed` boolean — A boolean flag indicating whether the query execution has failed.
    - `totalCount` integer — The total number of rows that match the conditions defined in the executed query.
    - `columns` object[] — A list containing details of each column in the store.
      - `name` string — The column name.
      - `logicalType` object — Logical type information for the column.
        - `type` string — The data type of the column (for example, VARCHAR, BIGINT, DECIMAL).
        - `nullable` boolean — Indicates whether the column can contain null values.
        - `length` integer — For string types, the maximum length.
        - `precision` integer — For DECIMAL types, the total number of digits.
        - `scale` integer — For DECIMAL types, the number of digits to the right of the decimal point.
      - `comment` string, nullable — Optional comment or description for the column.
    - `rows` object[] — The list of rows returned by the query.
      - `kind` string — The kind of change for the row (for example, INSERT).
      - `fields` unknown[] — The ordered list of field values for this row. Each position corresponds to a column in the columns array.
        - unknown
    - `message` string — Error message displayed for a failed query execution.
    - `ready` boolean — A boolean flag indicating whether the query execution has completed.

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
