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: string
Required: true
Order Id.
type
Type: string
Required: true
Type 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
Nested Schema : items
Type: array
array of agent comments
Nested Schema : items
Type: object
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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

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"
  }
]}