listProfileRequests
get
/ccagent/v1/profileRequests
List Profile Requests. This operation is used to get the collection of profile requests from Oracle Commerce Cloud. It can also be used to return the list on a searched string and in a sorted order against various properties of profile request.
Request
Supported Media Types
- application/json
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 profile request properties like 'requestedOrganizationName'.
-
sort: string
This field determines the sort order of the list to be fetched.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listProfileRequests_response
Type:
Show Source
object
-
items:
array items
list of profile request
-
limit:
integer
Number of records to be fetched.
-
offset:
integer
The offset provided.
-
total:
integer
Total number of records present in database matching the searched string.
-
totalResults:
integer
Total number of records present in database matching the searched string.
Nested Schema : items
Type:
Show Source
object
-
id:
string
Id of the Profile request
-
organization:
object organization
Organization
-
profile:
object profile
Profile Object
-
requestedOrganizationID:
string
Requested Organization ID given by requester
-
requestedOrganizationName:
string
Requested Organization name given by requester
-
site:
object site
Site
-
status:
string
Status of the request.
Nested Schema : organization
Type:
object
Organization
Show Source
-
id:
string
Repository Id of organization
Nested Schema : profile
Type:
object
Profile Object
Show Source
-
customerContactId:
string
The external customer contact id.
-
email:
string
Email of profile
-
firstName:
string
First Name of profile
-
id:
string
Repository Id of profile
-
lastName:
string
Last Name of profile
Nested Schema : site
Type:
object
Site
Show Source
-
id:
string
Repository Id of site
-
productionURL:
string
Production URL of site
-
siteName:
string
Name of ite
Example Response (application/json)
{
"total":1,
"totalResults":1,
"offset":0,
"limit":1,
"links":[
{
"rel":"self",
"href":"http://example.com:9080/ccagentui/v1/profileRequests"
}
],
"items":[
{
"requestedOrganizationName":"Oracle",
"organization":{
"id":"100001"
},
"profile":{
"firstName":"User",
"lastName":"Test",
"customerContactId":"CRMID_1",
"id":"100001",
"email":"user@example.com"
},
"requestedOrganizationID":null,
"id":100001,
"status":"approved"
}
],
"___etag___":"eyJ2ZXJzaW9uIjowLCJ1cmkiOiJvcmdhbml6YXRpb25SZXF1ZXN0cyIsImhhc2giOiJ4S1JsMHc9PSJ9"
}
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|
|------------------|------------------|
|85000|Invalid Query Expression.|
|50012|Invalid Sort options.|
|10002|The value x for parameter 'y' is invalid. 'y' can be 'limit', 'offset'.|
|100019|If there was any internal error while getting profile requests list.|
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