---
title: "QueryMore"
method: POST
path: "/v1/action/queryMore"
tags: ["Actions"]
---

# QueryMore

`POST /v1/action/queryMore`

Use queryMore to request additional results from a previous query call. If your initial query call returns more than 2000 results, you can use queryMore to query for the additional results.


Any `queryLocator` results greater than 2,000, will only be stored by Zuora for 5 days before it is deleted.


 This call sends a request for additional results from an initial query call. If the initial query call returns more than 2000 results, you can use the `queryLocator` returned from query to request the next set of results.


**Note:** Zuora expires queryMore cursors after 15 minutes of activity.


To use queryMore, you first construct a query call. By default, the query call will return up to 2000 results. If there are more than 2000 results, query will return a boolean `done`, which will be marked as `false`, and a `queryLocator`, which is a marker you will pass to queryMore to get the next set of results.

## Query parameters

- `rejectUnknownFields` boolean

## Headers

- `Idempotency-Key` string
- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Track-Id` string
- `X-Zuora-WSDL-Version` string
- `Zuora-Version` string

## Request body

- ProxyActionqueryMoreRequest
  - `conf` object — Configuration of the query result.
    - `batchSize` integer — Defines the batch size of the query result. The range is 1 - 2000 (inclusive). If a value higher than 2000 is submitted, only 2000 results are returned.
  - `queryLocator` string, required — A marker passed to QueryMore to get the next set of results.

## Response `200`

OK

- ProxyActionqueryMoreResponse
  - `done` boolean — Indicates whether the returned records contain all the query results. * If the `queryLocator` field is returned, this field is set to `false`. * If no `queryLocator` field is returned, this field is set to `true`.
  - `queryLocator` string — A marker passed to QueryMore to get the next set of results.
  - `records` ZObject[] — A list of queried results.
  - `size` integer — The number of the returned query results.

## Other responses

- `401` — Unauthorized

---

[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)
