Happy Business Starts Here

Get All Objects via REST API

benjohnson
Honor Student

Get All Objects via REST API

Hello,

 

It is possible to get all objects of a particular type (using pagination) via the REST API?

 

Using the Accounts object as an example, I seem to only be able to return one Account based on its account-key.  I'd like to return all Accounts, preferably with a subset of fields.

 

I can certainly do this through Aqua, but I'd prefer to do it through REST if possible.

 

Thanks,

Ben

1 ACCEPTED SOLUTION

Accepted Solutions
Jyoti_Sinha
Support SME

Re: Get All Objects via REST API

Hi Ben,

 

As per my understanding of the scenario, you can use Query and QueryMore in REST. I am providing the documentation links for same below, I hope this helps. Please let me know if any specific details needed.

 

https://www.zuora.com/developer/api-reference/#operation/Action_POSTquery

 

https://www.zuora.com/developer/api-reference/#operation/Action_POSTqueryMore






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

3 REPLIES 3
Jyoti_Sinha
Support SME

Re: Get All Objects via REST API

Hi Ben,

 

As per my understanding of the scenario, you can use Query and QueryMore in REST. I am providing the documentation links for same below, I hope this helps. Please let me know if any specific details needed.

 

https://www.zuora.com/developer/api-reference/#operation/Action_POSTquery

 

https://www.zuora.com/developer/api-reference/#operation/Action_POSTqueryMore






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

adamfiner
New Student

Re: Get All Objects via REST API

Hello,

 

I'm looking to do the same thing but I don't think the proposed solution will work for me as I'm using a 3rd party tool and the options are limited (I'm not a developer).

 

I'd like to GET the account summary for ALL accounts.  I'm able to retrieve one account by specifying the ID in the call...

 

https://apisandbox-api.zuora.com/rest/v1/accounts/A00000001/summary

 

But is there any way to modify the call to get multiple/all accounts?

 

Many thanks in advance!

Yugandarchandr
Student

Re: Get All Objects via REST API

Hello did you find any soultion for this issue if yes please let me know