Get an Account Lookup
get
/rest/v19/pricingSetup/lookups/accounts/{lookupId}
Use this endpoint to retrieve a customer account using the specified lookup Id.
Request
Path Parameters
Query Parameters
-
fields: string
This parameter filters the resource attributes. Only the specified attributes are returned, which means that if no attributes are specified, all attributes are returned.
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : AccountLookup
Type:
Show Source
object-
createdBy:
Created By
Title:
Created ByRead Only:trueThe details of the user who created the record. -
description:
string
-
groupAccessEnabled:
boolean()
Title:
Group Access EnabledRead Only:trueIndicates whether the user has access to the groups segment -
id:
string()
Title:
IdRead Only:trueThe unique identifier of the account. Usually a number or a string depending on the integration. -
lastModifiedBy:
Last Modified By
Title:
Last Modified ByRead Only:trueThe details of the user who modified the record. -
links:
array Links
Title:
LinksRead Only:trueThe link relations associated with the resource instance. -
lookupCode:
string()
Title:
Customer IdRead Only:trueThe customer Identifier of the account. -
meaning:
string()
Title:
Company NameRead Only:trueThe company name of the account. -
segmentLevelAccessType:
string()
Title:
Segment-level Access TypeRead Only:trueSegment-level Access Type
Nested Schema : Created By
Title:
Created ByRead Only:
trueThe details of the user who created the record.
Match All
The details of the user who created the record.
Show Source
Nested Schema : Last Modified By
Title:
Last Modified ByRead Only:
trueThe details of the user who modified the record.
Match All
The details of the user who modified the record.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksRead Only:
trueThe link relations associated with the resource instance.
Show Source
Nested Schema : UserDetails
Type:
Show Source
object-
emailId:
string()
Title:
Email IdEmail Id of the user -
firstName:
string()
Title:
First NameFirst Name of the user -
lastName:
string()
Title:
Last NameLast Name of the user
Examples
The following examples show how to retrieve a customer account using the specified lookup Id by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/pricingSetup/lookups/accounts/38452139
Response Body Sample
{
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/pricingSetup/lookups/accounts/38452139"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/pricingSetup/lookups/accounts"
}
],
"id": "38452139",
"lookupCode": "Customer_Platinum1",
"meaning": "Customer_Platinum1"
}