Get Accounts

get

/rest/v19/accounts

This action returns the list of accounts.

Request

Supported Media Types
Query Parameters
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : accounts-collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : accounts
Type: object
Show Source
Back to Top

Examples

The following example returns the list of accounts by submitting a GET request to the REST resource using cURL.

curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/accounts

Response Body Sample

The following example shows the contents of the response body in JSON format:

{ {
    "hasMore": false,
    "links": [{
        "rel": "self",
        "href": "https://sitename.oracle.com/rest/v19/accounts"
      }
    ],
    "items": [{
        "firstName": "Jones Pizza",
        "phone": "2135555555",
        "companyName": " Jones Pizza",
        "customerId": "100",
        "email": "ljones@jonespizza.net",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/accounts/100"
          }
        ]
      }, {
        "firstName": "Smith Trucking",
        "phone": "8475555555",
        "companyName": "Smith Trucking Incorporated",
        "customerId": "102",
        "email": "jsmith@smithtruck.com",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/accounts/102"
          }
        ]
      }, {
        "firstName": "Jackson Rentals",
        "phone": "1235555555",
        "companyName": "Jackson Rentals",
        "customerId": "103",
        "email": "mwjackson@jacksonrental.com",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/accounts/103"
          }
        ]
      }, {
        "firstName": "Morris Foods",
        "phone": "3215555555",
        "companyName": "Morris Foods",
        "customerId": "104",
        "email": "jmorris@morrisfoods.net",
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com/rest/v19/accounts/104"
          }
        ]
      }
    ]
  }
Back to Top