getComments
get
/ccagent/v1/comments
Get Comments. Gets order comments from the repository by passing orderId and type(set as 'order').
Request
Supported Media Types
- application/json
Query Parameters
- orderId
-
Type:
stringRequired:trueOrder Id.- type
Type:stringRequired:trueType of comment. Value can be order/profile.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getComments_response
- items
-
Type:
arrayitemsAdditional Properties Allowed:array of agent comments
Nested Schema : items
Nested Schema : items
Type:
object- comment
-
Type:
stringComment associated with order. - creationDate
-
Type:
stringOrder comment creation date. - repositoryId
-
Type:
stringRepository Id.
Example application/json
{
"items":[
{
"repositoryId":"100002",
"comment":"Issue related to billing address",
"creationDate":"2015-03-25T10:10:02.000Z"
},
{
"repositoryId":"200001",
"comment":"Issue related to order number o30411 is resolved",
"creationDate":"2015-05-12T10:10:02.000Z"
}
]
}
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|
|------------------|------------------|
|28107|Specified order does not exist|
|200126|Invalid Input Parameter|
|200004|Invalid Order Id|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{"items": [
{
"repositoryId": "100002",
"comment": "Issue related to billing address",
"creationDate": "2015-03-25T10:10:02.000Z"
},
{
"repositoryId": "200001",
"comment": "Issue related to order number o30411 is resolved",
"creationDate": "2015-05-12T10:10:02.000Z"
}
]}