calculateRemainingRefund

post

/ccagent/v1/returnRequests/{id}/calculateRemainingRefund

Endpoint to return suggested refund amount remaining in the price list group's currency as well as alternate currency in cases where allowAlternateCurrency flag at site level is true. Note that, this endpoint is just for suggesting remaining refund amount which need to be adjusted in refund methods

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : calculateRemainingRefund_request
Type: object
Show Source
Example:
{
    "primaryCurrencyRefundAmount":0,
    "secondaryCurrencyRefundAmount":0
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : calculateRemainingRefund_response
Type: object
Show Source
Example Response (application/json)
{
    "remainingRefundAmountInPrimaryCurrency":0,
    "minimumAmountInSecondaryCurrency":17.42,
    "minimumAmountInPrimaryCurrency":53,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagentui/v1/returnRequests/900001/calculateRemainingRefund"
        }
    ],
    "totalRefundAmount":53,
    "remainingRefundAmountInSecondaryCurrency":0
}

Default Response

The error response
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