Skip to main content




The query call sends a query expression by specifying the object to query, the fields to retrieve from that object, and any filters to determine whether a given object should be queried.  This SOAP API reference describes this call.


Zuora has a SQL-like query language you can use to construct those queries, passing them through the queryString.

Once the call is made, the API executes the query against the specified object and returns a query response object to your application. Your application can then iterate through rows in the query response to retrieve information.

The < character in query calls

The character, <, indicates to the Zuora API the beginning mark of an element. Unless that is your intent, substitute these characters for the < character: &lt;

The character, >, does not require substitution.

Example request

select id,accountId,autorenew,initialTerm,renewalTerm,termEndDate,termStartDate from Subscription where accountId='2c92a0gc4030cg1b01392af7533f48a6' and status='active' and subscriptionStartDate &lt;= '2012-08-15' and subscriptionEndDate >= '2012-08-15='

Example response



This call has the following limitations:

  • All keywords must be in lower case.
  • The number of records returned is limited to 2000 records (100 records for WSDL v5 and earlier).