SAP Cloud Platform Open Connectors

GET /accounts

GET /accounts

Retrieve a list of accounts.

Query Parameters

where
The CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for accounts created on or after 'Jan 15, 2014’, the search expression will be where=createdDate >= ‘2014-01-15’. When this parameter is omitted, all accounts are returned in a paginated fashion.
offset
The record offset at which to begin the paginated results, defaults to 0
pageSize
The page size for the paginated results, defaults to 200

Response Fields

Example Request

curl -X GET \
https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts?where=defaultAccount%3D%60false%60&offset=0&pageSize=100 \
-H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \

Example Response

[
  {
    "status": "paid",
    "environment": "production",
    "active": true,
    "createdDate": "2017-12-21",
    "id": 163647,
    "name": "Docs Account 2",
    "description": "Docs Account 2",
    "companyId": 59632,
    "externalId": "168l8ya5k73",
    "defaultAccount": false,
    "type": "CompanyAccount"
  },