Get Account

get

/rest/v16/accounts/{customerId}

This action returns the specified account information.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : accounts
Type: object
Show Source
Back to Top

Examples

The following example returns the specified account information by submitting a GET request to the REST resource using cURL.

curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/accounts/100

Response Body Sample

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

{
  "firstName": "Jones Pizza",
  "phone": "2135555555",
  "companyName": "Jones Pizza",
  "customerId": "100",
  "email": "ljones@jonespizza.net",
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/accounts/100"
    }
  ]
}
Back to Top