Get Account
get
/rest/v16/accounts/{customerId}
This action returns the specified account information.
Request
Supported Media Types
- application/json
Path Parameters
-
customerId(required): string
The unique alternate identifier for the account.
Response
Supported Media Types
- application/json
Default Response
Root Schema : accounts
Type:
Show Source
object
-
_crm_custom_AddressLine1:
string
Title:
Address Line 1
-
_crm_custom_AddressLine2:
string
Title:
Address Line 2
-
_crm_custom_addressLine3:
string
Title:
Address Line 3
-
_crm_custom_City:
string
Title:
City
-
_crm_custom_Country:
string
Title:
Country
-
_crm_custom_county:
string
Title:
County
-
_crm_custom_oRCL_OSC_AddressLine1_c:
string
Title:
OSC Address Line 1
-
_crm_custom_oRCL_OSC_AddressLine2_c:
string
Title:
OSC Address Line 2
-
_crm_custom_oRCL_OSC_City_c:
string
Title:
OSC City
-
_crm_custom_oRCL_OSC_Country_c:
string
Title:
OSC Country
-
_crm_custom_oRCL_OSC_PostalCode_c:
string
Title:
OSC Postal Code
-
_crm_custom_oRCL_OSC_State_c:
string
Title:
OSC State
-
_crm_custom_PostalCode:
string
Title:
Postal Code
-
_crm_custom_State:
string
Title:
State
-
companyName:
string
Title:
Company Name
The name of the account. -
customerId:
string
Title:
Customer Id
The unique alternate identifier for the account party. -
customerRep:
string
Title:
Customer Representative
Name of Sales Account Owner. -
dateAdded:
string
Title:
Date Added
Date Added -
dateModified:
string
Title:
Date Modified
Date Modified -
email:
string
Title:
Email
The e-mail address of the account(s) primary contact. -
fax:
string
Title:
Fax
The fax number of the organization in the local format. The number should not include area code, country code, or extension. -
firstName:
string
Title:
First Name
The unique account name displayed on account related screens. -
id:
integer
Title:
Id
Id -
lastName:
string
Title:
Last Name
Last Name -
phone:
string
Title:
Phone
The phone number of the organization in the local format. The number should not include area code, country code, or extension.
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" } ] }