Refunds - Response

Please see the Legend to understand the conventions used to document each element and attribute. Note that for responses, the XML elements are documented in the order that they appear in the response.


🟥 <outREFUND>

Element TypeData Type
Parent-

This is the root element of the XML refund query input message and is required. This contains child elements which specify the particulars of the requested refund. The following attributes of the <inREFUND> element are defined:

Attributes: None


🟥 <CalcResult>

Element TypeData Type
DataText

If the calculation was completed successfully, then this element will contain the value Successful Calculation, and the Code attribute will hold a value of zero (0).

Otherwise, this element will contain a description of the problem encountered during the attempted computation. Please consult the attributes of this element for further information.

Attributes: 🔹Attribute, 🔸Code, 🔹Element, 🔹Mode

🔹 Attribute

Data TypeDefault
Textn/a

This attribute will be present only when the calculation was not completed successfully (i.e., the value of the Code attribute is a value other than zero (0)).

🔸 Code

Data TypeValues
Integer[0..31]

A value of zero (0) indicates a successful calculation, and the Mode, Element, and Attribute attributes will not be present. A value greater than zero indicates an error condition. Please consult Table 27.2 for the allowed values of this attribute and their meanings. Also, the Mode, Element, and Attribute attributes may hold useful information for tracking down the issue.

CodeDescription
0Refund calculation computed successfully.
1Unexpected system error.
2Unexpected SCEX error.
3XML input validation against the DTD has failed, XML input is invalid.
4Invalid payments per year specified.
5Scheduled number of payments must be greater than zero (0).
6Scheduled number of payments cannot be greater than the loan term.
7Specified attribute is not in the list of valid attributes for this element.
8Unknown coverage type specified.
9Unknown premium method specified.
10Invalid loan type specified.
11Invalid formula type specified.
12Payment date is before loan date.
13Refund date is before loan date.
14Term must be greater than zero (0).
15Amortization term must be greater than zero (0).
16Amortization term must be greater than or equal to term.
17Payment must be greater than zero (0).
18Balloon must be greater than or equal to zero (0).
19Premium cannot be less than zero (0).
20Coverage must be greater than zero (0).
21AH plan must be greater than or equal to one (1).
22Unknown element specified.
23Unknown attribute specified.
24All premiums are zero (0) - no refunds computed.
25Cannot load CL setup file.
26Cannot load AH setup file.
27Cannot load refund setup file.
28Zero (0) denominator in CL_CUNA_NonBalloon() routine.
29AH rule of anticipation - original term in months is zero (0).
30AH rule of anticipation - rate at original term is zero (0).
31Rule of anticipation method is not allowed for this product.

🔹 Element

Data TypeDefault
Textn/a

This attribute will be present only when the calculation was not completed successfully (i.e., the value of the Code attribute is a value other than zero (0)) and the value of the Mode attribute is ParseInput. If present, the value of this attribute informs the calling application the element of the XML input in which the XML parsing error occurred.

🔹 Mode

Data TypeValuesDefault
EnumParseInput, Calculate, LoadOutputParseInput

If the calculation was not completed successfully (i.e., the value of the Code attribute is a value other than zero (0)), then this attribute will be present. The value of this attribute informs the calling application the general area during which the error was encountered. The potential values for this attribute are:

  • ParseInput - Error encountered while parsing the XML input. The Element attribute will be present indicating the element in which the error occurred. The Attribute attribute also may be present, if the input parsing error relates to an attribute specified in the input XML.

  • Calculate - Error encountered while attempting to compute the refund. The Element and Attribute attributes will not be present.

  • LoadOutput — Error encountered while attempting to build and return the XML output. The Element and Attribute attributes will not be present.


🟦 <XMLDetail>[]

Element TypeData TypeDefault
DataTextNULL

The <XMLDetail> elements are messages passed back to the calling application which detail the status of the XML request. If the SCEX issues any warnings regarding unrecognized elements or attributes, then each warning message will be displayed in an <XMLDetail> element.

Attributes: None


🟥 <TotalRefund>

Element TypeData Type
DataCurrency

The value of this element is the computed decreasing credit life refund due to the borrower. This element will only be returned if the specified decreasing credit life premium is greater than zero.

Attributes: 🔸RemainingPmts

🔸 RemainingPmts

Data Type
Integer

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.


🟦 <CLRefund>

Element TypeData TypeDefault
DataCurrency0

The value of this element is the computed decreasing credit life refund due to the borrower. This element will only be returned if the specified decreasing credit life premium is greater than zero.

Attributes: 🔸RemainingPmts

🔸 RemainingPmts

Data Type
Integer

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.


<LLRefund>

Element TypeData TypeDefault
DataCurrency0

The value of this element is the computed level credit life refund due to the borrower. This element will only be returned if the specified level credit life premium is greater than zero.

Attributes: 🔸RemainingPmts 🔸RemainingPmts

🔹 Remaining

Data TypeDefault
Integer0

With single payment notes calibrated in days, the "Remaining" number of days of coverage after refund are reported in this attribute.

🔹 RemainingPmts

Data TypeDefault
Integer0

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.


🟦 <AHRefund>

Element TypeData TypeDefault
DataCurrency0

The value of this element is the computed disability refund due to the borrower. This element will only be returned if the specified disability premium is greater than zero.

Attributes: 🔸RemainingPmts

🔸 RemainingPmts

Data Type
Integer

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.


🟦 <IURefund>

Element TypeData TypeDefault
DataCurrency0

The value of this element is the computed involuntary unemployment refund due to the borrower. This element will only be returned if the specified involuntary unemployment premium is greater than zero.

Attributes: 🔸RemainingPmts

🔸 RemainingPmts

Data Type
Integer

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.


🟦 <PPRefund>

Element TypeData TypeDefault
DataCurrency0

The value of this element is the computed personal property refund due to the borrower. This element will only be returned if the specified personal property premium is greater than zero.

Attributes: 🔸RemainingPmts

🔸 RemainingPmts

Data Type
Integer

The value of this attribute is the computed term of coverage beyond the specified refund date, and is used in the computation of the refund amount.