listOrganizationRequests
get
/ccapp/v1/organizationRequests
List Organization Requests. This operation is used to get the collection of organization 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 organization request.
Request
Supported Media Types
- application/json
Query Parameters
-
limit(optional): string
This is the field to determine number of records to be fetched per REST call.
-
offset(optional): string
This field determines the offset/starting index from which data to be fetched.
-
q(optional): string
Query string built as per the SCIM standards that helps to search entered string across account properties like 'name'.
-
sort(optional): 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 : listOrganizationRequests_response
Type:
Show Source
object
-
items(optional):
array items
list of organizations request
-
limit(optional):
integer
Number of records to be fetched.
-
offset(optional):
integer
The offset provided.
-
total(optional):
integer
Total number of records present in database matching the searched string.
-
totalResults(optional):
integer
Total number of records present in database matching the searched string.
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
Id of the Organization request
-
name(optional):
string
Organization request name give by requester
-
organization(optional):
object organization
Organization
-
profile(optional):
object profile
Profile Object
-
status(optional):
string
Status of the request.
Nested Schema : organization
Type:
object
Organization
Show Source
-
id(optional):
string
Repository Id of organization
Nested Schema : profile
Type:
object
Profile Object
Show Source
-
id(optional):
string
Repository Id of profile
Example Response (application/json)
{
"total":1,
"totalResults":1,
"offset":0,
"limit":1,
"links":[
{
"rel":"self",
"href":"http://example.com:9080/ccadmin/v1/organizationRequests"
}
],
"items":[
{
"organization":{
"id":"100001"
},
"profile":{
"id":"100001"
},
"name":"Organization request name",
"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 organizations request list.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
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(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code