getDispositionReasons

get

/ccagent/v1/merchant/dispositionReasons

Get Disposition Reasons. Lists the Disposition Reasons that can be given while receiving items against a exchange request

Request

Supported Media Types
  • application/json
Query Parameters
process
Type: string
Required: true
Process whether it is Return / Exchange

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getDispositionReasons_response
Nested Schema : items
Type: array
The list of all Disposition Reason for a Return Request
Nested Schema : items
Type: object
Example application/json

[
    {
        "displayKey":"acceptedWithRefund",
        "displayName":"Accepted With Refund"
    },
    {
        "displayKey":"rejectedWithRefund",
        "displayName":"Rejected With Refund"
    },
    {
        "displayKey":"rejectedWithoutRefund",
        "displayName":"Rejected Without Refund"
    }
]
Default Response
The error response
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:

[
  {
    "displayKey": "acceptedWithRefund",
    "displayName": "Accepted With Refund"
  },
  {
    "displayKey": "rejectedWithRefund",
    "displayName": "Rejected With Refund"
  },
  {
    "displayKey": "rejectedWithoutRefund",
    "displayName": "Rejected Without Refund"
  }
]