getProfileRequest
get
/ccstore/v1/profileRequests/{id}
Get Profile Request. This operation is used to get the Profile request information of a customer from Oracle Commerce Cloud.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The ID of the requested Profile Request
Query Parameters
-
expand: string
Expand query param : currently used to expand profile and request Info.(Allowed Values: profile - profile static data, profileAll - profile static & dynamic data, requestAll - profileRequest static & dynamic data).
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getProfileRequest_response
Type:
Show Source
object
-
approverComments:
string
Profile request approver comments
-
id:
string
Id of Profile Request
-
organization:
object organization
Organization
-
profile:
object profile
Profile
-
requestedOrganizationID:
string
Requested Organization ID given by the requester.
-
requestedOrganizationName:
string
Requested Organization name given by the requester.
-
requesterComments:
string
Requester comments given at time of creating request
-
siteId:
string
Site captured during request creation
-
status:
string
Status of Profile Request
Nested Schema : organization
Type:
object
Organization
Show Source
-
id:
string
Repository Id of organization
Nested Schema : profile
Type:
object
Profile
Show Source
-
customerContactId:
string
The external customer contact id.
-
email:
string
emailid of profile
-
firstName:
string
first name of the profile
-
id:
string
Repository Id of the profile
-
lastName:
string
Last name of the profile
Example Response (application/json)
{
"approverComments":"Request is approved",
"requestedOrganizationName":null,
"profile":{
"id":"100001"
},
"requestedOrganizationID":null,
"id":100001,
"requesterComments":"None",
"status":"approved"
}
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|
|------------------|------------------|
|102000|If there was no profile request found with the given id|
|102001|If there was an internal error while processing the request.|
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