createAppeasement
post
                    /ccadmin/v1/appeasements
Create Appeasement. Creates a new appeasement.
                Request
Supported Media Types
                - application/json
Root Schema : createAppeasement_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            appeasementRefunds(optional): 
            array  appeasementRefunds
            
            Array of appeasement Refunds represents the list of payment instrument details that we want to use for giving the appeasement.
- 
            comments(optional): 
            array  comments
            
            Array of comments given on an appeasement.
- 
            id(optional): 
            string
            Appeasement ID of the appeasement to be submitted. Optional. Needed in case an existing appeasement needs to be submitted.
- 
            notes(optional): 
            string
            Notes to describe the appeasement.
- 
            orderId(optional): 
            string
            Id of the order in SUBMITTED or FULFILLED state, to which appeasement is given. Required for an order based appeasement.
- 
            profileId(optional): 
            string
            Id of an registered user, to whom appeasement is given.
- 
            reason(optional): 
            string
            Reason to create appeasement, among the configured appeasement reason in the system.
- 
            type(optional): 
            string
            Type of appeasement, among the configured appeasement type in the system.
Example:
    
    
{
    "reason":"itemArrivedDamaged",
    "notes":"Customer complained that the order has arrived damaged, and asked for a refund. Providing 15 USD.",
    "comments":[
        {
            "comment":"Appeasement to be settled on priority. Valued customer."
        }
    ],
    "damagedLineItemId":"ci123547",
    "appeasementRefunds":[
        {
            "paymentGroupId":1223434,
            "refundType":"externalRefund",
            "amount":5,
            "customerPreferredGiftCardId":"GC12345",
            "currencyCode":"USD"
        },
        {
            "paymentGroupId":1223434,
            "refundType":"creditCard",
            "amount":10,
            "customerPreferredGiftCardId":"GC12345",
            "currencyCode":"USD"
        }
    ],
    "orderId":"o10068",
    "profileId":"se-570031",
    "type":"order"
}Nested Schema : appeasementRefunds
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of appeasement Refunds represents the list of payment instrument details that we want to use for giving the appeasement.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            Properties of the appeasement refund.
Nested Schema : comments
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of comments given on an appeasement.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            Properties of the comments
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProperties of the appeasement refund.
    
    
    
    
        Show Source
        - 
            amount(optional): 
            number
            Appeasement refund amount to be given to the customer.
- 
            currencyCode(optional): 
            string
            Curency code in which the amount should be refunded
- 
            id(optional): 
            string
            Id of the Appeasement refund to be updated, in case an existing appeasement is being updated.
- 
            paymentGroupId(optional): 
            string
            Payment group id of the refund type
- 
            refundType(optional): 
            string
            Type of appeasement refund, among the predefined appeasement refund types.
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProperties of the comments
    
    
    
    
        Show Source
        - 
            comment: 
            string
            Comment text.
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : createAppeasement_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            agentId(optional): 
            string
            Id of the agent who created the appeasement.
- 
            appeasementRefunds(optional): 
            array  appeasementRefunds
            
            Array of appeasement Refunds represents the list of payment instrument details that we want to use for giving the appeasement.
- 
            comments(optional): 
            object  comments
            
            Properties of the comments
- 
            creationDate(optional): 
            string
            Date and timestamp when the appeseasement is created.
- 
            id(optional): 
            string
            Id of the appeasement.
- 
            lastModifiedDate(optional): 
            string
            Date and timestamp when the appeseasement is modified recently.
- 
            notes(optional): 
            string
            Notes to describe the appeasement.
- 
            orderId(optional): 
            string
            Id of the order in SUBMITTED or FULFILLED state, to which appeasement is given.
- 
            originOfAppeasement(optional): 
            string
            Origin of appeasement signifies the channel of appeasement created.
- 
            profileId(optional): 
            string
            Id of an registered user, to whom appeasement is given.
- 
            reason(optional): 
            object  reason
            
            Reason used for the appeasement. Detailed information
- 
            state(optional): 
            string
            Current state of the appeasement. It is among the predefined appeasement states.
- 
            type(optional): 
            object  type
            
            Type of appeasement, among the configured appeasement type in the system.
Example:
    
    
{
    "reason":"itemArrivedDamaged",
    "agentId":"service",
    "notes":"Customer complained that the order has arrived damaged, and asked for a refund. Providing 15 USD.",
    "comments":[
        {
            "agentId":"service",
            "comment":"Appeasement to be settled on priority. Valued customer.",
            "id":100001,
            "creationDate":"2020-03-20T04:56:13.935Z"
        }
    ],
    "orderId":"o10068",
    "damagedLineItemId":"ci123547",
    "lastModifiedDate":"2020-04-05T15:52:22.622Z",
    "appeasementRefunds":[
        {
            "paymentGroupId":123556,
            "refundType":"creditCard",
            "amount":5,
            "id":"3200006",
            "state":"INCOMPLETE",
            "currencyCode":"USD"
        },
        {
            "paymentGroupId":123456,
            "refundType":"externalRefund",
            "amount":10,
            "customerPreferredGiftCardId":null,
            "id":"3200007",
            "state":"INCOMPLETE",
            "currencyCode":"USD"
        }
    ],
    "submittedDate":"2020-04-05T15:52:22.622Z",
    "creationDate":"2020-04-05T15:52:22.622Z",
    "type":"order",
    "profileId":"se-570031",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagentui/v1/appeasements/app370003/update"
        }
    ],
    "state":"INCOMPLETE",
    "id":"app370003",
    "originOfAppeasement":"agent"
}Nested Schema : appeasementRefunds
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of appeasement Refunds represents the list of payment instrument details that we want to use for giving the appeasement.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            Properties of the appeasemen refund.
Nested Schema : reason
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectReason used for the appeasement. Detailed information
    
    
    
    
        Show Source
        - 
            key(optional): 
            string
            Key of the Appeasement reason
- 
            readableDescription(optional): 
            string
            Readable description of the appeasemen reason
Nested Schema : type
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectType of appeasement, among the configured appeasement type in the system.
    
    
    
    
        Show Source
        - 
            description(optional): 
            string
            Readable description of the appeasemen reason
- 
            displayName(optional): 
            string
            Display name of the appeasemen reason
- 
            key(optional): 
            string
            Key of the Appeasement reason
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProperties of the appeasemen refund.
    
    
    
    
        Show Source
        - 
            amount(optional): 
            number
            Appeasement refund amount issued to the customer.
- 
            currencyCode(optional): 
            string
            Currency code for the appeasement refund amount.
- 
            id(optional): 
            string
            Id of the Appeasement refund associated to an appeasement.
- 
            paymentGroupId(optional): 
            string
            Current state of the appeasement refund. It is among the predefined appeasement refund states.
- 
            refundType(optional): 
            string
            Type of appeasement refund, among the predefined appeasement refund types.
- 
            state(optional): 
            string
            Current state of the appeasement refund. It is among the predefined appeasement refund states.
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            agentId(optional): 
            string
            Agent who saved the comment.
- 
            comment(optional): 
            string
            Comment text.
- 
            creationDate(optional): 
            string
            Date and timestamp of the comment.
- 
            id(optional): 
            string
            Id of the comment associated to the appeasement.
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|
|------------------|------------------|
|900001|An internal error occurred.|
|900005|An internal error occured while processing the input request|
|900009|An error for appeasement id duplication.|
|13001|Input validation error.|
                
                
                    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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn 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