listLegalApprovers
get
/ccstore/v1/organizations/{id}/legalApprovers
List Legal Approvers. This operation is used to get the collection of contacts having the legal approver role for the given organizationId. Optionally takes X-CCOrganization to specify current Organization of logged in user. It can also be used to return the list on a searched string and in a sorted order against various properties of profile.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the Organization to which legal approvers are to be retrieved
Query Parameters
-
limit: string
This is the field to determine number of records to be fetched per REST call.
-
offset: string
This field determines the offset/starting index from which data to be fetched.
-
q: string
Query string built as per the SCIM standards that helps to search entered string across contact properties, 'firstName', 'lastName', 'email'
-
sort: string
This field determines the sort order of the list to be fetched.
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
-
X-CCOrganization: string
Current organization context of the logged in user
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listLegalApprovers_response
Type:
Show Source
object
-
items:
array items
list of shopper profiles
-
limit:
string
Number of records to be fetched.
-
total:
string
Total number of records present in database matching the searched string.
Nested Schema : items
Type:
Show Source
object
-
email:
string
the email address of the profile
-
firstName:
string
the first name of the profile
-
id:
string
the id of the profile to retrieve
-
lastName:
string
the last name of the profile
-
repositoryId:
string
the id of the profile
-
roles:
array roles
List of user roles
-
secondaryOrganizations:
array secondaryOrganizations
Secondary organizations for the profile
Nested Schema : secondaryOrganizations
Type:
array
Secondary organizations for the profile
Show Source
Nested Schema : items
Type:
Show Source
object
-
associations:
array associations
Associations of the role with the organization member
-
function:
string
Function of the role. Present only if type is organizationalRole
-
id:
string
ID of the role
-
name:
string
Name of the role
-
relativeTo:
object relativeTo
Organization in which the role applies. Present only if type is organizationalRole
-
repositoryId:
string
Repository id of the role
-
type:
string
Type of the role which can be organizationalRole or role
Nested Schema : associations
Type:
array
Associations of the role with the organization member
Show Source
Nested Schema : relativeTo
Type:
object
Organization in which the role applies. Present only if type is organizationalRole
Show Source
-
id:
string
Organization ID
Nested Schema : items
Type:
Show Source
object
- relatedItemId: string
-
type:
string
Type of the association.Possible values are - organization,global.
Example Response (application/json)
{
"total":1,
"totalResults":1,
"offset":0,
"limit":1,
"links":[
{
"rel":"self",
"href":"http://localhost:8080/ccstore/v1/organizations/or-100001/legalApprovers"
}
],
"sort":[
{
"property":"firstName",
"order":"asc"
}
],
"items":[
{
"lastName":"Dilliard",
"firstName":"Leota",
"roles":[
{
"associations":[
{
"relatedItemId":"or-100001",
"type":"organization"
}
],
"function":"buyer",
"relativeTo":{
"id":"or-100001"
},
"repositoryId":"100002",
"name":"Buyer",
"id":"100002",
"type":"organizationalRole"
},
{
"associations":[
{
"relatedItemId":"or-100001",
"type":"organization"
}
],
"repositoryId":"ora.legalApprover",
"name":"Legal Approver",
"id":"ora.legalApprover",
"type":"role"
}
],
"repositoryId":"bb-110006",
"id":"bb-110006",
"email":"leota@example.com",
"secondaryOrganizations":[
]
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|100070|Invalid Query Expression.|
|23039|If there was any internal error while getting the profile|
|10002|The value x for parameter 'y' is invalid. 'y' can be 'limit', 'offset' or 'sort'.
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code