createAppeasement

post

/ccadmin/v1/appeasements

Create Appeasement. Creates a new appeasement.

Request

Supported Media Types
Body ()
Root Schema : createAppeasement_request
Type: object
Show Source
  • Id of the agent who is creating appeasement. It is an optional property.
  • appeasementRefunds
    Array of appeasement Refunds represents the list of payment instrument details that we want to use for giving the appeasement.
  • comments
    Array of comments given on an appeasement.
  • Date and timestamp when the appeseasement is created.
  • Appeasement ID of the appeasement to be created. By default, a system generated appeasement id will be considered, if not provided explicitly.
  • Notes to describe the appeasement.
  • Id of the order, to which appeasement is associated. OrderId is required only in case of certain appeaesement types which are configured to mandate order as required.
  • Origin of appeasement signifies the channel of appeasement creation. By default, it is "external".
  • Id of the user, to whom appeasement is given. It can be any valid string.
  • Reason to create appeasement, among the configured appeasement reason in the system.
  • Current state of the appeasement. It is among the predefined appeasement states. By default, it is "INCOMPLETE".
  • Type of appeasement, among the configured appeasement type in the system.
Example:
{
    "reason":"incorrectItem",
    "agentId":"service",
    "notes":"Providing an appeasement of 20 USD which is 20% of the Order Total, according to the appeasement policy.",
    "comments":[
        {
            "agentId":"AgentBob",
            "comment":"Appeasement to be settled on priority. Valued customer.",
            "creationDate":"2020-03-20T04:56:13.935Z"
        }
    ],
    "orderId":"o1234",
    "appeasementRefunds":[
        {
            "paymentGroupId":"pg1001",
            "refundType":"externalRefund",
            "amount":20,
            "id":"ar1234",
            "state":"COMPLETE",
            "currencyCode":"USD"
        }
    ],
    "profileId":"se-570031",
    "id":"app1234",
    "state":"SUBMITTED",
    "type":"order"
}
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
Nested Schema : comments
Type: array
Array of comments given on an appeasement.
Show Source
Nested Schema : items
Type: object
Properties of the appeasement refund.
Show Source
  • Appeasement refund amount to be given to the customer.
  • Currency code for the appeasement refund amount.
  • Id of the Appeasement refund to be created. By default, a system generated id will be considered, if not provided explicitly.
  • Payment group id associated to order, to which appeasement is to be issued. It is a required property for out-of-the-box refund type.
  • Type of appeasement refund, among the predefined appeasement refund types.
  • Current state of the appeasement refund. It is among the predefined appeasement refund states. By default, it is "INCOMPLETE".
Nested Schema : items
Type: object
Properties of the comments
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createAppeasement_response
Type: object
Show Source
Example:
{
    "reason":"incorrectItem",
    "agentId":"service",
    "notes":"Providing an appeasement of 20 USD which is 20% of the Order Total, according to the appeasement policy.",
    "comments":[
        {
            "agentId":"AgentBob",
            "comment":"Appeasement to be settled on priority. Valued customer.",
            "id":100001,
            "creationDate":"2020-03-20T04:56:13.935Z"
        }
    ],
    "orderId":"o1234",
    "appeasementRefunds":[
        {
            "paymentGroupId":"pg1001",
            "refundType":"externalRefund",
            "amount":20,
            "id":"ar1234",
            "state":"COMPLETE",
            "currencyCode":"USD"
        }
    ],
    "lastModifiedDate":"2020-03-20T05:15:05.645Z",
    "type":"order",
    "creationDate":"2020-03-20T04:56:13.935Z",
    "submittedDate":"2020-04-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
Nested Schema : comments
Type: array
Array of comments given on an appeasement.
Show Source
Nested Schema : items
Type: object
Properties of the appeasemen refund.
Show Source
Nested Schema : items
Type: object
Properties of the comments
Show Source

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.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top