createComment

post

/ccagent/v1/comments

Create Comment. Creates an order comment in the repository by passing the orderId in the input.

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : createComment_request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createComment_response
Example application/json

{
    "repositoryId":"800022",
    "comment":"Issue related to billing address",
    "creationDate":"2014-06-24 17:37:01.883"
}
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| |------------------|------------------| |200001|Order Comment Submission Failed.| |200018|No Input Specified| |200017|Invalid Input Parameter| |200005|Invalid Order Comment| |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 Request:

{
  "orderId": "o50001",
  "comment": "Issue related to billing address"
}

Sample Response Payload returned by endpoint:

{
  "repositoryId": "800022",
  "comment": "Issue related to billing address",
  "creationDate": "2014-06-24 17:37:01.883"
}