getReturnStates

get

/ccagent/v1/merchant/returnStates

Get Return States. Lists the Order States when Return action will be allowed against orders

Request

There are no request parameters for this operation.

Response

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

[
    {
        "displayKey":"PENDING_CUSTOMER_ACTION",
        "displayName":"Approved"
    },
    {
        "displayKey":"COMPLETE",
        "displayName":"Complete"
    },
    {
        "displayKey":"FULL_RETURN",
        "displayName":"Full return"
    },
    {
        "displayKey":"PARTIAL_RETURN",
        "displayName":"Partial return"
    },
    {
        "displayKey":"PENDING_REFUND",
        "displayName":"Pending 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": "PENDING_CUSTOMER_ACTION",
    "displayName": "Approved"
  },
  {
    "displayKey": "COMPLETE",
    "displayName": "Complete"
  },
  {
    "displayKey": "FULL_RETURN",
    "displayName": "Full return"
  },
  {
    "displayKey": "PARTIAL_RETURN",
    "displayName": "Partial return"
  },
  {
    "displayKey": "PENDING_REFUND",
    "displayName": "Pending Refund"
  }
]