List all accounts

Returns a dictionary with a data property that contains an array of accounts, starting after the cursor, if used. Each entry in the array is a separate account object. If no more accounts are available, the resulting array will be empty. This request should never return an error.

Request
query Parameters
page_size
integer [ 1 .. 50 ]

The maximum number of results to return in a single page. If the specified page_size is less than 1 or greater than 50, Zuora will return a 400 error.

cursor
string

A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with next_page=W3sib3JkZXJ=, your subsequent call can include cursor=W3sib3JkZXJ= in order to fetch the next page of the list.

sort[]
Array of strings

A case-sensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. account_number.ASC) or descending (e.g. account_number.DESC). You cannot sort on properties in arrays. If the array-type properties are specified for the sort[] parameter, they are ignored.

expand[]
Array of strings

Allows you to expand responses by including related object information in a single call. See the 'Expand responses' section of the Quickstart API Tutorial for detailed instructions.

filter[]
Array of strings

A case-sensitive filter on the list. See the 'Filter lists' section of the Quickstart API Tutorial for detailed instructions.

Responses
200

Default Response

4XX

Default Response

get/accounts
Request samples

curl --request GET      --url 'https://rest.apisandbox.zuora.com/v2/accounts'      --header 'Authorization: Bearer d8a7f4d2a5ef4c3eba8618cf99593e26'      --header 'Content-Type: application/json'
Response samples
application/json
{
  • "next_page": "string",
  • "data": [
    ]
}