List Locations

The List Locations API will allow you to fetch a list of locations within Zenput. For historical reasons, sometimes you'll see the word account in place of location. Both terms refer to the same entities.

Below is a sample call and a full description of input parameters, and success and error output formats.

$ curl -H 'X-API-TOKEN: your-api-token-goes-here' \
    'https://www.zenput.com/api/v1/accounts/list_accounts/?start=0&limit=10'

Input parameters
All input parameters are optional.

NameTypeDescription
search_querytextQuery to search first name and last name.
startintegerThe index of the first row to return, used with limit, to define a page of results.
limitintegerThe number of users to return, used with start, to define a page of results. The default value is 100.
order_byOne of "name", "address", "city", "country", "email", "state", "zipcode"Sort order of result. A value may be prefixed by a - to specify a descending sort.
countbooleanIf true, result will include a count of found users without regard to any start or limit values.

Output format, success

{
    "status": 200,
    "count": count-of-accounts-found,
    "results": [
      {},
      ...
      {}
    ],
    "success": true
}

Output format, failure

{
    "status": 500,
    "message": "Cannot get account list",
    "exception": "Technical error details appear here",
    "success": false
}