Post query with API version
Learn how to use the Submit an aggregate query job API operation with the apiVersion query parameter to ensure consistent query performance.
Use the Submit an aggregate query job API operation with the apiVersion query parameter to submit an aggregate query with a specified API version.
For integration purposes, specify the apiVersion to ensure consistent and reliable query performance. For many other reporting purposes you do not have to specify the apiVersion and by default, AQuA uses the latest Zuora API version to execute the query.
The following sections provides JSON examples to use this API operation.
Example 1
This example shows submitting a JSON request with the apiVersion = 58.0.
HTTP request:
POST https://www.zuora.com/apps/api/batch-query/
POST https://apisandbox.zuora.com/apps/api/batch-query/
JSON request:
Successful JSON response:
Example 2
This example shows submitting a JSON request with the apiVersion= 19.0.
HTTP request:
POST https://www.zuora.com/apps/api/batch-query/
POST https://apisandbox.zuora.com/apps/api/batch-query/
JSON response with error: