Refunds - Request

Please see the Legend to understand the conventions used to document each element and attribute. Note that for requests, the XML elements are documented in alphabetical order by parent element.


🟥 <inREFUND>

Element TypeData Type
Parent-

This is the root element of the XML refund request 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: 🔹Account, 🔹DataDirPath, 🔹ForceReload, 🔹LoanType, 🔹PPY

🔹 Account

Data TypeValuesDefault
Integer[1...9999]1

This attribute specifies which account should be used to compute the requested loan. Each account is numbered from 1 to 9,999, and each account corresponds to a set of setup files which define numerous settings which may affect the loan calculation, such as the accrual method, insurance methods and rates, etc. If this attribute is not specified, a default value of 1 will be used.

🔹 DataDirPath

Data TypeValuesDefault
TextSee belowSee below

If this attribute is set, the SCE will look for a data folder containing the setup files in the path specified. Thus, if the DataDirPath is set to C:\SCEX\, the SCE will look for the setup files in C:\SCEX\data.

If the calling application wishes to specify the data directory path in its entirety (e.g. the calling app does not want the SCE to append \data to the provided path), then simply terminate the specified DataDirPath with an asterisk (*). Thus, if the DataDirPath is set to C:\SCEX\bank1\*, the SCE will look for the setup files in C:\SCEX\bank1\.

If this attribute is not set, the SCE will attempt to locate the data folder in the default data directory path location, which can be retrieved using the <inVERSION> module query, and set via the SCE API.

This attribute is useful if you wish to use only a single installation of the SCE, but have many different setup file groupings. By specifying a different DataDirPath for each grouping, you can easily separate the groups from one another instead of grouping them all together in a single directory.

🔹 ForceReload

Data TypeValuesDefault
Booleantrue, false, 1, 0false

The SCE caches setup files previously used. This improves performance for subsequent loan requests using one of the cached accounts. However, if you need the SCE to reload the setup files for a given request (e.g. you just copied over new setup files), then you can set this attribute to true and the setup files will be forced to reload. If left at the default value of false, then setup files are only reloaded when the SCE notices that one of the setup files has been modified.

🔹 LoanType

Data TypeValuesDefault
Enumequal, balloon, spn, intonly, prinplus, irregequal

Different types of loans may require different refund calculations, depending upon the configured refund method for a given insurance type. If this attribute is not specified a value of equal will be assumed.

The allowed values of this attribute and their meanings are described in the table below:

Loan TypeDescription
equalEqual payment loan
balloonBalloon payment loan
spnSingle payment note
intonlyInterest only loan
prinplusFixed principal reduction loan, with optional interest only payments
irregIrregular payment loan with optional skipped payments

🔹 PPY

Data TypeValuesDefault
EnumSee belowmonthly

PPY is an abbreviation for payments per year, and as one might surmise, determines the payment frequency for the loan. The default value of monthly will result in a loan with 12 payments per year. If you require a loan with a payment frequency other than monthly, specify it using this attribute.

ValueTranslationDescription
1AnnualOnce Per Year
2SemiAnnualTwice Per year (every six months)
4QuarterlyFour per year (every three months)
6BimonthlySix per year (every two months)
12MonthlyTwelve per year (every month)
24SemimonthlyTwice Per Month*
26BiweeklyEvery two weeks
52WeeklyEvery week

* Semimonthly loans are characterized by making two payments per month on the same days. A common semimonthly schedule is to make payments every 1st and 16th of the month. Another common schedule is the 15th and the end of every month.


🟦 <AH>

Element TypeData Type
Empty-

If single premium disability was written on the original loan, then this element should be present to provide the necessary information to compute a disability refund. The element itself is empty, with all required data associated with the computed disability product specified using the following attributes of this element.

Attributes: 🔹CoverageType, 🔹Plan, 🔹Premium, 🔹ScheduledPmts

🔹 CoverageType

Data TypeValuesDefault
Enumsingle, jointsingle

The value of this attribute specifies whether the original decreasing life premium covered one or two borrowers.

🔹 Plan

Data TypeValuesDefault
Integer[0..19]0

If the specified account has been set up with multiple disability plans, then this attribute determines which plan number will be used. If no plan number is specified, the first plan (plan zero) will be used. To find out the number of available plans, use the <AHSetCount> element returned from an <inINPUT_TOOL> query.

🔹 Premium

Data TypeValuesDefault
Currency>= 00

The value of this attribute specifies the original decreasing life premium quoted with the original loan. If this attribute is not specified, a default value of zero (0) will be assumed, and no refund computed.

🔹 ScheduledPmts

Data TypeValuesDefault
Integer>= 00

Specify the original decreasing life term of coverage (in months) as the value of this attribute. If a decreasing life premium greater than zero is specified, then this attribute is also required, and no refund computed.


🟦 <AmortTerm>

Element TypeData TypeValuesDefault
DataInteger>= 00

To compute refunds for certain TruStage insurance products (specifically, those using refund formulas 7 and 8), the desired amortization term of the original loan is required.

Attributes: None


🟥 <Balloon>

Element TypeData TypeValues
DataCurrency> 0

This value of this element is the final payment of the original loan. If the final payment is the same value as the regular payment (see above), then simply specify the same value for this element as well.

Attributes: None


🟦 <CL>

Element TypeData Type
Empty-

If single premium decreasing credit life was written on the original loan, then this element should be present to provide the necessary information to compute a decreasing life refund. The element itself is empty, with all required data associated with the computed decreasing life product specified using the following attributes of this element.

Attributes: 🔹CoverageType 🔹Premium, 🔹PremiumMethod, 🔹ScheduledPmts,

🔹 CoverageType

Data TypeValuesDefault
Enumsingle, jointsingle

The value of this attribute specifies whether the original decreasing life premium covered one or two borrowers.

🔹 Premium

Data TypeValuesDefault
Currency>= 00

The value of this attribute specifies the original decreasing life premium quoted with the original loan. If this attribute is not specified, a default value of zero (0) will be assumed, and no refund computed.

🔹 PremiumMethod

Data TypeValuesDefault
Enumgross, netgross

If the specified Account has been configured to offer the option of net or gross coverage written on the original loan, then the value of this attribute should specify the type of coverage written on the original loan. If the specified Account allows for only one type of decreasing life coverage, then this attribute may be omitted.

🔹 ScheduledPmts

Data TypeValuesDefault
Integer>= 00

Specify the original decreasing life term of coverage (in months) as the value of this attribute. If a decreasing life premium greater than zero is specified, then this attribute is also required, and no refund computed.


🟦 <IntRate>

Element TypeData TypeValuesDefault
DataDecimal[-99.999...600]0

This element specifies the interest rate used in the calculation of the original loan. The interest rate is not always required, as some refund calculations ignore the original interest rate. However, since some refund calculations do require the interest rate, we recommend that you always include it with the XML input. The interest rate should be expressed as a percentage. For example, a loan computed with a rate of 6.125% would be specified as <IntRate>6.125</IntRate>.

Attributes: None


🟦 <IU>

Element TypeData Type
Empty-

If single premium involuntary unemployment was written on the original loan, then this element should be present to provide the necessary information to compute an involuntary unemployment refund. The element itself is empty, with all required data associated with the computed involuntary unemployment product specified using the following attributes of this element.

Attributes: 🔹Premium, 🔹ScheduledPmts

🔹 Premium

Data TypeValuesDefault
Currency>= 00

The value of this attribute specifies the original decreasing life premium quoted with the original loan. If this attribute is not specified, a default value of zero (0) will be assumed, and no refund computed.

🔹 ScheduledPmts

Data TypeValuesDefault
Integer>= 00

Specify the original decreasing life term of coverage (in months) as the value of this attribute. If a decreasing life premium greater than zero is specified, then this attribute is also required, and no refund computed.


🟦 <LL>

Element TypeData Type
Empty-

If single premium level credit life was written on the original loan, then this element should be present to provide the necessary information to compute a level life refund. The element itself is empty, with all required data associated with the computed level life product specified using the following attributes of this element.

Attributes: 🔹Premium

🔹 Premium

Data TypeValuesDefault
Currency>=00

The value of this attribute specifies the original level life premium quoted with the original loan. If this attribute is not specified, a default value of zero (0) will be assumed, and no refund computed.


🟥 <LoanDate>

Element TypeData TypeValues
DataDate>= 1900-01-01

This element contains the date on which the original loan amount was disbursed. All dates must be in the form of YYYY-MM-DD, and be 10 characters long. A loan date of June 6, 2015 would be specified as <LoanDate>2015-06-06</LoanDate>.

Attributes: None


🟥 <Payment>

Element TypeData TypeValues
DataCurrency> 0

This element should hold the computed regular payment of the original loan.

Attributes: None


🟦 <PmtDate>

Element TypeData TypeValuesDefault
DataDate>= <LoanDate>0

If the original loan was a single payment note (i.e. LoanType = "spn"), then the payment date of the single payment is required. For all other loan types, this element will be ignored. All dates must be in the form of YYYY-MM-DD, and be 10 characters long.

Attributes: None


🟦 <PP>

Element TypeData Type
Empty-

If single premium personal property was written on the original loan, then this element should be present to provide the necessary information to compute a personal property refund. The element itself is empty, with all required data associated with the computed personal property product specified using the following attributes of this element.

Attributes: 🔹Premium, 🔹ScheduledPmts

🔹 Premium

Data TypeValuesDefault
Currency>= 00

The value of this attribute specifies the original decreasing life premium quoted with the original loan. If this attribute is not specified, a default value of zero (0) will be assumed, and no refund computed.

🔹 ScheduledPmts

Data TypeValuesDefault
Integer>=00

Specify the original decreasing life term of coverage (in months) as the value of this attribute. If a decreasing life premium greater than zero is specified, then this attribute is also required, and no refund computed.


🟥 <RefundDate>

Element TypeData TypeValues
DataDate>= 1900-01-01

The value of this element contains the date on which the refund is to be computed. All dates must be in the form of YYYY-MM-DD, and be 10 characters long.

Attributes: None


🟥 <Term>

Element TypeData TypeValues
DataInteger> 0

The term indicates the number of payments that were originally scheduled to be made when the loan was written.

Attributes: None