getAppeasement
get
/ccagent/v1/appeasements/{id}
Get Appeasement. Gets a detailed appeasement information based on the appeasement ID provided.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID corresponding to the appeasement to be fetched.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getAppeasement_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):
array comments
Array of comments given on an appeasement.
-
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 creation.
-
profileId(optional):
string
Id of an registered user, to whom appeasement is given.
-
reason(optional):
object reason
Reason for the appeasement, among the configured appeasement reason in the system.
-
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":{
"readableDescription":"Incorrect Item Received",
"id":"incorrectItem"
},
"agentId":"service",
"notes":"Providing an appeasement of 20 USD which is 20% of the Order Total, according to the appeasement policy.",
"comments":[
{
"agentId":"service",
"comment":"Appeasement to be settled on priority. Valued customer.",
"id":100001,
"creationDate":"2020-03-20T04:56:13.935Z"
}
],
"orderId":"o1234",
"appeasementRefunds":[
{
"amount":20,
"id":"ar1234",
"state":"COMPLETE",
"type":"externalRefund"
}
],
"lastModifiedDate":"2020-03-20T05:15:05.645Z",
"type":{
"displayName":"Order",
"description":"Appeasement to be applied on a given order",
"id":"order"
},
"creationDate":"2020-03-20T04:56:13.935Z",
"profileId":"se-570031",
"id":"app1234",
"state":"SUBMITTED",
"originOfAppeasement":"external"
}
Nested Schema : appeasementRefunds
Type:
array
Array 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:
array
Array of comments given on an appeasement.
Show Source
-
Array of:
object items
Properties of the comments
Nested Schema : reason
Type:
object
Reason for the appeasement, among the configured appeasement reason in the system.
Show Source
-
id(optional):
string
Id of the appeasement reason.
-
readableDescription(optional):
string
Description of the appeasement reason.
Nested Schema : type
Type:
object
Type of appeasement, among the configured appeasement type in the system.
Show Source
-
description(optional):
string
Description of the appeasement type.
-
displayName(optional):
string
Name of the appeasement type.
-
id(optional):
string
Id of the appeasement type.
Nested Schema : items
Type:
object
Properties of the appeasement refund.
Show Source
-
amount(optional):
number
Appeasement refund amount issued to the customer.
-
currencyCode(optional):
string
Curency code in which the amount should be refunded. Required when refund is not related to a payment group.
-
id(optional):
string
Id of the Appeasement refund associated to an appeasement.
-
paymentGroupId(optional):
string
Payment group id of the refund type. Required for OOTB refunds.
-
state(optional):
string
Current state of the appeasement refund. It is among the predefined appeasement refund states.
-
type(optional):
string
Type of appeasement refund, among the predefined appeasement refund types.
Nested Schema : items
Type:
object
Properties of the comments
Show Source
-
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 while processing input request.|
|900002|No Appeasement found with given appeasement id|
|900004|An internal error occured.|
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:
array
An 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